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

View Designer: use selected-item(s) on top of value for suggestion widgets

    XMLWordPrintable

    Details

    • Type: Task
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 73.0
    • Fix Version/s: 73.14
    • Component/s: Designer
    • Release Notes Description:
      Hide

      Newly generated code will be compatible with HF05+. People using HF04 or less will have problems with complex multivalued fields that are using suggestion widgets if using this generated code unless they upgrade to HF05+.

      Existing will not be touched and will keep working for people using HF04 and less (but they won't benefit from the latest features).

      Show
      Newly generated code will be compatible with HF05+. People using HF04 or less will have problems with complex multivalued fields that are using suggestion widgets if using this generated code unless they upgrade to HF05+. Existing will not be touched and will keep working for people using HF04 and less (but they won't benefit from the latest features).
    • Backlog priority:
      800
    • Browser:
    • Sprint:
      NOS 10.2.4, NOS 10.2.5
    • Story Points:
      2

      Description

      In order to fix NXP-24471, the view desginer should generate

      • multiple
            <nuxeo-directory-suggestion role="widget" label="[[i18n('label.dublincore.subjects')]]"
                                        directory-name="l10nsubjects"
                                        name="subjects"
                                        selected-items="{{document.properties.dc:subjects}}"
                                        multiple="true"
                                        dbl10n="true"
                                        placeholder="[[i18n('dublincoreEdit.directorySuggestion.placeholder')]]"
                                        min-chars="0">
            </nuxeo-directory-suggestion>
        

        or for single value

            <nuxeo-directory-suggestion role="widget" label="[[i18n('label.dublincore.coverage')]]"
                                        directory-name="l10ncoverage"
                                        name="coverage"
                                        selected-item="{{document.properties.dc:coverage}}"
                                        dbl10n="true"
                                        placeholder="[[i18n('dublincoreEdit.directorySuggestion.placeholder')]]"
                                        min-chars="0">
            </nuxeo-directory-suggestion>
        

        in document's layouts

      This is also true for nuxeo-directory-suggestion, nuxeo-user-suggestion and nuxeo-document-suggestion.

      TP >= 9.10-HF05

      TODO

      • For new d&d, generate code as described above
      • For existing, when TP is 9.10 and old pattern is detected, add a validation warning:

        Since LTS 2017 HF05, code generation has changed for suggestion elements. Your code will keep working, but we recommend replacing these elements using drag and drop to benefit from the latest updates if you are using HF05 or newer.

        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 - 0 minutes
                  0m
                  Remaining:
                  Remaining Estimate - 0 minutes
                  0m
                  Logged:
                  Time Spent - 1 day, 2 hours
                  1d 2h

                    PagerDuty

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