11-04-2019 02:23 AM
Hi, I'm trying to don't display the input document in a document-suggestion component, using the [[document.uid]] property inside the query in the Repository.Query operation, but nuxeo doesn't receive this uid.
This is my code:
<nuxeo-document-suggestion operation="Document.Query"
input = "[[document]]"
params='{"query": "SELECT * FROM Item WHERE ecm:uuid != '[[document.uid]]'"}'
label="[[i18n('label.relation.pickDocument')]]"
value="{{path}}"
min-chars="0"
result-formatter="[[myFormatter]]"
selected-item="{{toDoc}}">
</nuxeo-document-suggestion>
If I insert the code instead of the document property the query works and the input document doesn't display. Furthermore, if I show [[document.uid]] in a normal div, nuxeo receive the id correctly.
11-04-2019 04:02 PM
Hello,
ecm:uuid
propertty, with !=
pageProvider
attribute to point to the previous page providernuxeo-page-provider
element<nuxeo-page-provider id="nxProvider" provider="<YOUR_PAGE_PROVIDER>" params="[[_computeParams(document)]]" enrichers="thumbnail, permissions" schemas="dublincore,common,uid" page-size="20" headers="{"X-NXfetch.document": "properties", "X-NXtranslate.directoryEntry": "label"}" auto=""></nuxeo-page-provider>
_computeParams: function (document) {
return document ? {system_uuid: this.document.uid} : {};
},
11-07-2019 03:36 AM
In the document suggestion element I have to declare page-provider = [[nxProvider]] right? It doesn't work
11-07-2019 09:33 AM
Try to add in the polymer section:
ready: function() {
this.nxProvider = this.$.nxProvider;
},
11-08-2019 02:57 AM
It happens the next error
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.