Hi Community,
On Case Edit Page when saving a record, it is going back to the previous screen, how can we forced it to stay on the current edit page after saving the record.
Like
You need to override the save method on the edit page and set isSilent to true in the config. Add this code to the edit page:
save: function(config) { config = config || {}; config.isSilent = true; this.callParent([config]); }
Ryan
Dear Harish,
In order to open next case without going back to the section page please consider using the following code:
save : function(config){
config = config || {};
config.isSilent = true;
this.callParent([config]);
// get the primaryId of the next case
var primaryId = "57286774-E71A-4530-BB60-B2E514FA535F";
// go to another edit page
var requestUrl = "CardModuleV2/CasePage/edit/" + primaryId;
this.sandbox.publish("PushHistoryState", {
hash : requestUrl
});
}
Please find an example of using this code in the article by the link below:
https://academy.creatio.com/documents/technic-sdk/7-15/how-add-button-section
Best regards,
Norton