Uploaded image for project: 'Nuxeo Elements'
  1. Nuxeo Elements
  2. ELEMENTS-491

nuxeo-data-table not managing multivalued strings properly

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Blocker
    • Resolution: Duplicate
    • Affects Version/s: 1.0.1
    • Fix Version/s: QualifiedToSchedule
    • Component/s: UI

      Description

      Steps to reproduce:

      • Create a custom schema in Studio
        name type Multivalued
        codigo String Yes
      • Associate the schema with a document type
      • Generate the view layout for the document type in View Designer
      • This code is generated:
            <nuxeo-data-table items="{{document.properties.telcofactura_schema:codigo}}" orderable="true" editable="true" role="widget" size="0">
        
              <nuxeo-data-table-column name="Codigo">
                <template>
                  [[item]]
                </template>
              </nuxeo-data-table-column>
        
              <nuxeo-data-table-form>
                <template>
                  <nuxeo-input value="{{item}}" label="Codigo" type="text"></nuxeo-input>
                </template>
              </nuxeo-data-table-form>
            </nuxeo-data-table>
        
      • Save changes
      • Deploy on your instance
      • Create a new document

      When you try to add a new value nothing happens. This error is shown in the browser console:

      elements.html:39069 Uncaught TypeError: Cannot read property 'length' of undefined
          at HTMLElement._createEntry (elements.html:39069)
          at handler (elements.html:3614)
          at HTMLElement.decorated (elements.html:7571)
          at HTMLElement.fire (elements.html:4391)
          at Object.fire (elements.html:3963)
          at Object.forward (elements.html:4260)
          at Object.click (elements.html:4245)
          at HTMLElement.handleNative (elements.html:3853)
      

      NOTE: * Nuxeo 8.10, 9.2 and 9.3 used in this test

        Attachments

          Issue Links

            Activity

              People

              • Votes:
                8 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0 minutes
                  0m
                  Logged:
                  Time Spent - 5 minutes
                  5m