
You’ll often want to know in your page code if the page is in add mode or edit mode. This is useful to perform only certain action in cases where the record is being added vs edited.
To know if the page is in add mode, you’ll also likely want to check if the page is in copy mode. Bpm’online has the ability for a user to copy a record to make a new one. This is also likely something you’d want to consider as “add” mode in many cases.
Checking if the Page is in Add Mode
// add mode if (this.isAddMode()) { // do something } // OR to also include if is in copy mode if (this.isAddMode() || this.isCopyMode()) { // do something }
Checking if the Page is in Edit Mode
if (this.isEditMode()) { // do something }
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!