-
Type: Bug
-
Status: Resolved
-
Priority: Minor
-
Resolution: Fixed
-
Affects Version/s: 9.10
-
Component/s: Web UI
-
Release Notes Summary:Directory entries are displayed with their label when added to a data table in the Web UI.
-
Backlog priority:700
-
Browser:
-
Upgrade notes:
-
Sprint:nxGang Sprint 10.1.6, nxGang Sprint 10.2.2
-
Story Points:3
Consider a schema with a multivalued complex field defined with a Directory field and a String field
<xs:element name="edition" type="nxs:book_editionListType"/> <xs:complexType name="book_editionListType"> <xs:sequence> <xs:element name="item" type="nxs:book_editionType" minOccurs="0" maxOccurs="unbounded"/> </xs:sequence> </xs:complexType> <xs:complexType name="book_editionType"> <xs:sequence> <xs:element name="year" type="xs:string"/> <xs:element name="editor"> <xs:simpleType> <xs:restriction base="xs:string" ref:resolver="directoryResolver" ref:directory="editors"/> </xs:simpleType> </xs:element> </xs:sequence> </xs:complexType>
The code below is used to add a value to this complex field and is based on a nuxeo-data-table element.
<nuxeo-data-table items="{{document.properties.book:edition}}" page-size="40" editable="" empty-label="noResults"> <nuxeo-data-table-column name="[[i18n('editions')]]" flex="150"> <template>[[formatDirectory(item.editor)]]</template> </nuxeo-data-table-column> <nuxeo-data-table-column name="[[i18n('name')]]" flex="150"> <template>[[item.year]]</template> </nuxeo-data-table-column> <nuxeo-data-table-form> <template> <nuxeo-directory-suggestion dbl10n="" required="" class="col-12" min-chars="0" directory-name="editors" value="{{item.editor}}"> </nuxeo-directory-suggestion> <nuxeo-input value="{{item.year}}"> </nuxeo-input> </template> </nuxeo-data-table-form> </nuxeo-data-table>
After adding the new value to the data table, the directory value is not formatted: it displays the key instead of the label, whereas the other values (previously added) are correctly displayed.
Please look at the 2 attached screenshots which highlight the bug.
- depends on
-
NXJS-135 Prevent Converting circular structure to JSON when POST or PUT on a document with cycling references
- Open
-
NXP-24743 Stop obscuring errors occurring at document creation or edition in Web UI
- Resolved
-
ELEMENTS-619 Suggestion widgets should be able to be initialized through selected-item attribute
- Resolved
-
NXP-24520 Make sure SuggestDirectoryEntries.java return directory entries that can be PUT/POST through restful API
- Resolved
- is related to
-
NXS-4795 Use a single attribute for suggestion elements
- Resolved
-
NXP-29180 Choose to display the label with directory in drop-down list in data table
- Resolved
- is required by
-
NXS-4655 View Designer: use selected-item(s) on top of value for suggestion widgets
- Resolved