11-25-2013 11:53 AM
HI guys !
I've played around with custom tabs and their enablements and I wonder if there is a way to enable a tab only if the document path does not start with a given path.
which is the perfect negation for the existing parameter "Document path starts with".
Any idea ?
I've try to set an EL expression for the tab enablement such as :
#{not fn:startsWith(currentDocument.ecm.pathAsString, '/default-domain/workspaces/myWorkspace/')}
it doesn't work, I'm not sure about the 'fn:startsWith' call... is there a doc of available function for EL expressions in this context ? and is this a good approach for this problem ?
11-27-2013 06:28 AM
You can try to put this in the Custom EL Expression field:
#{!currentDocument.getPathAsString().startsWith("/default-domain/workspaces/myWorkspace/")}
11-27-2013 06:28 AM
You can try to put this in the Custom EL Expression field:
#{!currentDocument.getPathAsString().startsWith("/default-domain/workspaces/myWorkspace/")}
11-27-2013 07:37 AM
Works perfectly after adding the # at the beginning of the EL Expression 😉 thanks!
11-27-2013 09:36 AM
It was there but @aescaffre formatted his answer badly. I edited it.
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.