\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).
\nThe 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
\nThe 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
\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.
\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.
\nHave a good day !
" } ] }; Versioning.getActiveVersion = function() { var versions = this.versions; for (var i=0,len=versions.length;i