\r\n```\r\n\r\nBUT my troubles are not over because my docId param is empty, which makes sense because my document is not created yet, and all its properties are empty.\r\n\r\ndocument.id or document.path both return a null value, and I have no idea how to get the parent's ref (that's my ultimate goal). If you have ANY idea please feel free to share.\r\n\r\nHave a good day !\r\n", "htmlContent" : "

Ok, I think that I managed to solve this on my own (I don't even know why I still post stuff here, I never get any answer).

\n
    \n
  1. The searchTerm parameter is automatically passed to the operation's parameters, so no need to include it in the “params” field of the widget.
  2. \n
  3. Things mess up when passing the parameters directly as a string representation of a javascript object. You should first create a javascript object in the Polymer script, then pass this object to the widget. Here's the fixed code :
  4. \n
\n

The widget :

\n
<nuxeo-document-suggestion  value=\"{{document.properties.mfs:documents}}\"\n                            label=\"[[i18n('manufacturing_summary.documents')]]\"\n                            multiple=\"true\"\n                            min-chars=\"0\"\n                            role=\"widget\"\n                            placeholder=\"[[i18n('dublincoreEdit.directorySuggestion.placeholder')]]\"\n                            operation=\"SearchDocuments\"\n                            params=\"[[params]]\"\n></nuxeo-document-suggestion>\n
\n

The script :

\n
<script>\n    Polymer({\n        is: 'nuxeo-manufacturing_summary-create-layout',\n        behaviors: [Nuxeo.LayoutBehavior],\n        properties: {\n            /**\n             * @doctype manufacturing_summary\n             */\n            document: Object,\n\n            params: {\n                type: Object,\n                value: {\"doctype\": \"hwp_document\", \"docId\": document.id}\n            },\n        },\n    });\n</script>\n
\n

BUT my troubles are not over because my docId param is empty, which makes sense because my document is not created yet, and all its properties are empty.

\n

document.id or document.path both return a null value, and I have no idea how to get the parent's ref (that's my ultimate goal). If you have ANY idea please feel free to share.

\n

Have a good day !

" } ] }; Versioning.getActiveVersion = function() { var versions = this.versions; for (var i=0,len=versions.length;i

Select a revision to compare with:
Side by side diff