How to bind the correctly function in the nuxeo-data-table-form?

Hi I have the next code,

When I used the property selection-formatter=“[[_getDocTitle]]“ of nuxeo-document-suggestion in the nuxeo-data-table-column the function works fine BUT when I used the same property in nuxeo-data-table-form the function not working (the function not execute).

I can't see any error in the console, How to bind the correctly function in the nuxeo-data-table-form?

I need disabled link of document because when I open document in edit mode (opened popup for add more document in table) then I clic on the link refer document and the pop up with the information the other document in edit mode too.

<nuxeo-data-table role="widget" label="Respuesta Interna" items="{{document.properties.doc_base:fileList}}" orderable="false" editable="true" name="fileList">
  <nuxeo-data-table-column name="Respuesta">
    <template>
        <nuxeo-document-suggestion role="widget" value="[[item.fileInterno]]" readonly="true" multiple="true" name="fileInterno" page-provider="FILTER_DEMO_PP" selection-formatter="[[_getDocTitle]]" ></nuxeo-document-suggestion>
    </template>
</nuxeo-data-table-column>

<nuxeo-data-table-form>
    <template>
        <nuxeo-document-suggestion value="{{item.fileInterno}}" label="Respuesta" multiple="true" name="fileInterno" page-provider="FILTER_DEMO_PP" required="true" selection-formatter="[[_getDocTitle]]"
></nuxeo-document-suggestion>
    </template>
</nuxeo-data-table-form>
</nuxeo-data-table>

// JAVASCRIPT

_getDocTitle: function (doc){
                return doc.title;
            },

Regards!! Thank you!

0 votes

0 answers

926 views

ANSWER