08-21-2012 04:39 PM
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?
08-21-2012 06:16 PM
Just tried MAIN_TABS
08-27-2012 05:37 PM
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!
08-30-2012 10:33 AM
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.
08-30-2012 10:37 AM
https
08-30-2012 06:20 PM
Ben, thanks for the reply.
08-30-2012 06:22 PM
And I can see the following Actions
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.