Refreshing a Section List in Creatio

If you need to refresh a section list in Creatio at any point there are a few methods you can use. Any section that inherits from BaseSectionV2, which is really any section with a list, will have a built in method to refresh the data displayed in the section. All you need to use is the following:

this.updateSection();

That method will check to see if the section is in List or Dashboard mode. If in dashboard mode, the analytics view will be refreshed. If in List mode, both the list grid and the summaries will be refreshed.

Additionally, you can send this as a message via the sandbox as well if you need to refresh the section list from outside of the context of the section code. To do so, simply send a message as follows, where moduleName is the name of the section module:

this.sandbox.publish("UpdateSection", null, [moduleName + "_UpdateSection"]);

If for any reason, you only want to refresh a part of the section, such as the summaries, the list, or the dashboards individually, you can use the following:

To refresh the list only:

this.reloadGridData();

To refresh the summaries only:

this.reloadSummaryModule();

To refresh the section header only:

this.updateSectionHeader();

To refresh the currently displayed section edit page header only:

this.updateCardHeader();

To refresh the dashboards only:

this.loadAnalyticsDataView();

Note, you can also check if the user is viewing the dashboards view or not by checking:

if (this.getActiveViewName() === "AnalyticsDataView") {
    // is viewing the dashboards
}
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) and Creatio (bpm'online) news and product updates!

You have Successfully Subscribed!