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

nuxeo-data-table shows an empty row when a new value is added in a multivalued property

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Duplicate
    • Affects Version/s: 2.1.3
    • Fix Version/s: None
    • Component/s: UI

      Description

      Steps to reproduce:

      • Create a custom schema in Studio
        • name type Multivalued
          codDependencia String Yes
          codMacro String Yes
          codigo Directory No
          codMacro String No
      • 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 role="widget" 
                              items="{{document.properties.Sector:codDependencia}}" 
                              orderable="true" 
                              editable="true" 
                              size="0">
              <nuxeo-data-table-column name="Cod Dependencia">
                <template>
                  [[item]]
                </template>
              </nuxeo-data-table-column>
        
              <nuxeo-data-table-form>
                <template>
                  <nuxeo-input value="{{item}}" 
                               label="Cod Dependencia" 
                               type="text" maxlength="4" 
                               required="true"></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 to the multivalued property an empty row is added (See screenshots)

      NOTE: * Nuxeo 9.3 used in this test

        Attachments

          Issue Links

            Activity

              People

              • Votes:
                0 Vote for this issue
                Watchers:
                1 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 - 10 minutes
                  10m