
The default behavior for adding a record to an editable detail in Creatio is for a new row to be added to the list that the user can then edit inline. However, what if you still want to use an edit page for adding records, but still keep the detail editable to edit values inline in the list?
To do this, you’ll need to override the openCardByMode in the detail schema, so instead of the default behavior of a row getting added to the detail, the edit page for the detail is opened instead. The code to do this will look like the following:
openCardByMode: function() { var cardState = this.get("CardState"); var editPageUId = this.get("EditPageUId"); var primaryValueUId = this.get("PrimaryValueUId"); this.openCard(cardState, editPageUId, primaryValueUId); }
Now, the detail will still be editable and when the add button is clicked, the edit page will be opened to add the record, just like the normal behavior for non-editable details.
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!