Hi All,
How do I make the section dashboard open/expanded by default?
Please suggest.
Thank you.
Like
3 comments
06:58 Nov 03, 2022
Anitha P,
1. First count the number of tasks/activities that are in open status (completed, cancelled or others based on the need).
2. Then pass the count through the message from edit page OnEntityInitialized.
3. Receive the count value in BaseActionsDashboard and then use the below method to open/close the container tab in section action dashboard.
messages: { "applicationIDMessage": { "mode": Terrasoft.MessageMode.PTP, "direction": Terrasoft.MessageDirectionType.PUBLISH }, }, attributes: {}, methods: { initTabPanelCollapsed: function() { this.callParent(arguments); var count = this.sandbox.publish("applicationIDMessage", null, "applicationIDMessage"); this.console.log("Current Count:" + count); if(count === 0){ this.set("TabPanelCollapsed", true); } else{ this.set("TabPanelCollapsed", false); } },
BR,
Bhoobalan Palanivelu.
Show all comments