Refresh the document TAB

Hello I created a studio project,i use a button to add a facet to a document.   When the document has the facet a tab that must appears   , The problem that,   when I clik on the button and I give my document a facet the tab is not displayed, I must go back (parent) and return to the document to see the new tab. in my chain associate with my button ,I just put a user interface > refresh but it does not work.

0 votes

1 answers

2485 views

ANSWER



hello,

I think the UI Refresh operation could be improved to add the reset of document tabs. Now you have to add an operation in your chain to force this reset. Add a Run Script op with this code:

org.nuxeo.ecm.automation.jsf.OperationHelper.getWebActions().resetTabList();

Cheers, Thierry

1 votes