Refreshing a Specific Row Only in a Section List in Creatio

Along the lines of my last article on refreshing a section list, if you want to refresh only a specific row in a section list in Creatio, you can do so as long as you have the record primary Id value. For example, if I have a process that updates some row or rows, I can refresh only those rows once the process is done – instead of refreshing the entire list. To refresh a specific row, you’d use the following code:

// note: updatedId contains the primary Id for the row I am reloading
this.loadGridDataRecord(updatedId);

Note, this also allows you to include a callback to execute after the row has been reloaded. If needed, you can use that like this:

// note: updatedId contains the primary Id for the row I am reloading
this.loadGridDataRecord(updatedId, function() {
    // get updated row data if needed
    var updatedItem = this.get("GridData").find(updatedId);
    // now you can access values using updatedItem.get("UsrMyColumn") etc
});

This can also be sent via a sandbox message as follows:

this.sandbox.publish("ReloadSectionRow", updatedId, [this.sandbox.id]);
Want content like this delivered to your inbox? Sign up for our newsletter!
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 *