Prevent Navigating Back to a Parent Page when a Child Page is Saved in Creatio (formerly bpm’online)

In bpm’online, you might have noticed, that often you’ll create some child record and upon saving, you’re returned to the parent page. For example, you’re looking at an account page, you click the “+” button on the case detail to add a case for the account, the case page opens to fill out the case details, and when you save you are returned to the account. This behavior makes sense, but there might be certain sections when you don’t want it to work this way. You might want the user to stay, and not return to the parent page when you save.

This behavior can be changed. To do this, we’ll override the save method on our page code. We can intercept and change the page’s config before passing it off to the base page’s save method. The setting in the config we need to change is called “isSilent” and we simply need to set this to true to not use this out of the box behavior for our page.

// override save on page
save: function(config) {
    //modify isSilent
    config = Ext.apply(config || {}, {
        isSilent: true
    });
    //now call the parent save method and provide config
    this.callParent([config]);
}

That is it, now the user will no longer navigate back to the parent when the page is saved.

ABOUT THE AUTHOR

Ryan Farley

Ryan Farley is the Director of Development for Customer FX and creator of slxdeveloper.com. He's been blogging regularly about SalesLogix, now Infor CRM, since 2001 and believes in sharing with the community. His new passion for CRM is Creatio, formerly bpm'online. He loves C#, Javascript, web development, open source, and Linux. He also loves his hobby as an amateur filmmaker.

Submit a Comment

Your email address will not be published. Required fields are marked *

Subscribe To Our Newsletter

Join our mailing list to receive the latest Infor CRM (Saleslogix) news and product updates!

You have Successfully Subscribed!