How to open a sidebar tab through an action outside the sidebar ?

jaikishan1
ServiceNow Employee
ServiceNow Employee

We have a implemented a sidebar on one our our UI builder page which is initially collapsed. We want to open the sidebar through an action on the page but not the sidebar tabs. 
We are invoking a client script which loads the tab's viewport and another script which expands the sidebar.

The problem we are facing is when the sidebar is expanded through the action, the viewport is not not being loaded even though the script is executed.
Upon debugging, we observed that the event "UXF_TAB_SET#TAB_COLLAPSED" is not being invoked at all which I think may be cause of the issue.
If we select a tab from the sidebar, there are 2 events invoked which are "UXF_TAB_SET#TAB_SELECTED" and "UXF_TAB_SET#TAB_COLLAPSED". The same scripts are bound to "UXF_TAB_SET#TAB_SELECTED" event on the sidebar and in this case, the sidebar is loading the viewport as well. 

Can anyone please help with this problem at hand ?

Please mark this as helpful if it solves your query.

Regards,
Jai
0 REPLIES 0