
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 }
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!