cancel
Showing results for 
Search instead for 
Did you mean: 

Using page providers in Web UI

Sergey_Zakharen
Champ on-the-rise
Champ on-the-rise

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:

PP Definition

Then I've added this PageProvider to the view layout of a document:

View Layout Configuration

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 ?

3 REPLIES 3

Guillaume_Renar
Star Contributor
Star Contributor

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}'.

Thank you grenard, you save my day second time in a row!

Hello,

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.