01-17-2018 12:49 PM
Hello,
A newbie question: how can I pass parameters to NXQL request of a Page Provider via WebUI Designer ?
I'm trying to create a customized content view for a Folderish document. I created a Page Provider in Nuxeo Studio Modeler as follows:
Then I've added this PageProvider to the view layout of a document:
Apparently the "Query Parameters" field from Modeler is ignored in WebUI. So what I've tried was to pass a parameter from Layout configuration (I've put [[document.properties.ecm:uuid]] in the params field), but as you can see on the screenshot - I can't access ecm properties of the file from Designer.
Any suggestions on what I should do ?
01-17-2018 01:03 PM
You must forget about Query Parameters
(`#{currentDocument} is a JSF notion).
Remove ecm:parentId = ?
clause from the filter.
Define a predicate on system:parentId
with =
operator (It should result in something like ecm:parentId = (system_parentId)
. Your page provider will now have a system_parentId
named parameter.
Then client side, you can set this named parameter '{"system_parentId" : document.uid}'
.
01-17-2018 01:09 PM
Thank you grenard, you save my day second time in a row!
01-18-2018 09:44 AM
Hello,
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.