Uploaded image for project: 'Nuxeo Studio'
  1. Nuxeo Studio
  2. NXS-5379

Fix missing readonly mode on nuxeo-file when generating layouts for multi property

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 3.20.0
    • Component/s: Designer

      Description

      Steps to reproduce:

      • Define a document type with a multivalued complex field with 2 subfields:
        file: Blob
        name: String
      • Go to designer
      • Generate the create layout for this new doc type
      • See generated layout for the complex multivalued field:
            <nuxeo-data-table role="widget" label="Complex" items="{{document.properties.test:complex}}" orderable="true" editable="true">
              <nuxeo-data-table-column name="String">
                <template>
                  [[item.string]]
                </template>
              </nuxeo-data-table-column>
        
              <nuxeo-data-table-column name="Blob">
                <template>
                  <nuxeo-file role="widget" value="[[item.blob]]"></nuxeo-file>
                </template>
              </nuxeo-data-table-column>
        
              <nuxeo-data-table-form>
                <template>
                  <nuxeo-input value="{{item.string}}" label="String" type="text"></nuxeo-input>
                  <nuxeo-file value="{{item.blob}}"></nuxeo-file>
                </template>
              </nuxeo-data-table-form>
            </nuxeo-data-table>
        

        KO.

      In

            <nuxeo-data-table-column name="Blob">
              <template>
                <nuxeo-file role="widget" value="[[item.blob]]"></nuxeo-file>
              </template>
            </nuxeo-data-table-column>
      

      the nuxeo-file widget should have the readonly attribute. Indeed the user is supposed to open the table form/dialog to edit the blob. Side effects is people think they can do inline editing for multi complex props but it is not (even never been) supported by our nuxeo-data-table.

        Attachments

          Issue Links

            Activity

              People

              • Votes:
                0 Vote for this issue
                Watchers:
                4 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, 15 minutes
                  4h 15m

                    PagerDuty

                    Error rendering 'com.pagerduty.jira-server-plugin:PagerDuty'. Please contact your Jira administrators.