
If you need to redirect the user to a specific page from your client-side code in bpm’online, there are a few options. The first is to publish the “PushHistoryState” message and supply the location/url as the hash for that message. For an example of this, the code below will navigate to the Contact section:
this.sandbox.publish("PushHistoryState", {hash: "SectionModuleV2/ContactSectionV2"});
The “hash” parameter provided is what appears after the ViewModule.aspx# in the url when you view the page in your browser. This also works for navigating to a specific record in a section. For example, to navigate to a specific contact, we just supply the url including the contact’d ID, like this:
this.sandbox.publish("PushHistoryState", {hash: "CardModuleV2/ContactPageV2/edit/c4ed336c-3e9b-40fe-8b82-5632476472b4"});
Again, the hash is just everything that appears in the url after the ViewModule.aspx#.
You can also simply use window.location.assign (or just window.location) and pass the relative or full url. Using this method will also add this to the browser history as well. Of course, using this method, you can’t just include the hash, like the examples above, it needs to be either a complete or relative url. For example:
window.location.assign("ViewModule.aspx#CardModuleV2/ContactPageV2/edit/c4ed336c-3e9b-40fe-8b82-5632476472b4");
Subscribe To Our Newsletter
Join our mailing list to receive the latest Infor CRM (Saleslogix) and Creatio (bpm'online) news and product updates!
You have Successfully Subscribed!