Hi,
I'm trying to wrap my head around a requirement where I need to prevent a user from collapsing the Tab once a certain condition is hit.
Now, I hit a condition and display a message using Xrm.Utility.alertDialog(). But after that, the tab goes ahead and collapses. Is there a way to stop this from happening?
Even I tried to expand the same tab in the callback of the above mentioned dialog box:
Xrm.Page.ui.tabs.get(data).setDisplayState("expanded");
The above doesn't work because the tab is collapsed only after my entire code has finished executing?
Any suggestions?