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

Fix nuxeo-data-table element in edit mode to set multi-valued field

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 1.0.1, 1.1.2
    • Fix Version/s: 1.0.2, 2.1.3
    • Component/s: UI

      Description

      Define a schema myschema with a multi-valued String field emailAddress
      and the following code to edit this field in the new Web UI

          <nuxeo-data-table role="widget" items="{{document.properties.myschema:emailAddress}}" orderable="true" editable="true" id="emailAddressDataTable" style="height: 350px !important;">
            <nuxeo-data-table-column name="Email Addresses">
              <template>
                <div role="widget">[[item]]</div>
              </template>
            </nuxeo-data-table-column>
      
            <nuxeo-data-table-form>
              <template>
                <nuxeo-input value="{{item}}" label="Email Address" type="text" maxlength="100" pattern="[a-zA-Z0-9]+@nuxeo.com"></nuxeo-input>
              </template>
            </nuxeo-data-table-form>
          </nuxeo-data-table>
      

      It is impossible to set the fields:

      • the display is incorrect
      • at least the first value is not stored

        Attachments

          Issue Links

            Activity

              People

              • Votes:
                0 Vote for this issue
                Watchers:
                3 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 - 4 hours
                  4h