Hi;
I develop an edit page with planty of details
It happens that after page loaded a detail is empty even it has data
After page reloaded the detail get data.
if i use this.updateDetila method on EntityInitialzed event it solve the problem?
Regards
Tomek
Like
Hello,
You can resolve this by forcing the detail to refresh after the main record is initialized. To do this, please add the following code to your edit page schema:
onEntityInitialized: function() { this.callParent(arguments); this.updateDetail({ detail: "YourDetailName", reloadAll: true }); }
Replace "YourDetailName" with the internal name of your detail.
Please make sure to call this.callParent(arguments) before this.updateDetail(...). This ensures that the base initialization logic runs first, and only after that the detail is refreshed correctly, otherwise the system might not yet have the necessary context for loading related data.
Adding reloadAll: true ensures the detail reloads with all required filters and parameters. Without this parameter, the method may trigger an unfiltered database query, which can lead to slow performance or UI freezing when the detail contains many records.
This ensures the detail refreshes and displays its data right after the page loads.
More information about configuring details:
Creatio Academy Detail overview