cancel
Showing results for 
Search instead for 
Did you mean: 

HOME_TAB action does not exist?

karl_harris_
Star Collaborator
Star Collaborator

Using the Change Tab automation action with HOME_TAB as the parameter I get the following error message; ERROR [org.nuxeo.ecm.platform.ui.web.api.TabActionsSelection] Cannot set current tab with id 'HOME_TAB': action does not exist.

The home tab works from the standard web screen.

Any ideas why I cant switch to Home from an automation action?

6 REPLIES 6

karl_harris_
Star Collaborator
Star Collaborator

Just tried MAIN_TABS

karl_harris_
Star Collaborator
Star Collaborator

Trying to you MultiNavTreeManager to get to HOME page from an automation chain but this Class does not seem to be available in CAP+DM!

Benjamin_Jalon1
Elite Collaborator
Elite Collaborator

This is normal as Change Tab change the tab of on the Default Category. I think there is no standard operation to do that, and would be great to improve the change tab action to have the possibility to specify the tab category we want the action.

Waiting that create an operation that takes the tab id and the category as parameter and simply do :

@Operation(id = ChangeTab2.ID, category = Constants.CAT_UI, requires = Constants.SEAM_CONTEXT, label = "Change Tab2", description = "Change the selected tab for the current document. Preserve the current input.")
    public class ChangeTab2 {

    public static final String ID = "Seam.ChangeTab2";

    @Context
    protected OperationContext ctx;

    @Param(name = "tab")
    protected String tab;

    @Param(name = "category", required = false)
    protected String category;

    @OperationMethod
    public void run() {
        if (category == null) {
           category = VIEW_ACTION_LIST;
        }

        OperationHelper.getWebActions().setCurrentTabId(category, tab, null);
    }
}

I hope this works.

https

Ben, thanks for the reply.

And I can see the following Actions

Getting started

Find what you came for

We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.