on 2019 Oct 15 9:05 AM
Sap Web IDE comprises of several features and plugins.
With the help of Annotation Modeler tool there is possibility to add or modify annotations in UI project.
Is there a possibility with the help of Annotation Modeler tool to make UI.DataField, which looks in edit mode not as text field (input), but as dropdown (select with several options) on Fiori Object Page?
Request clarification before answering.
hi Valerjans,
As far as i Know, I don't think its possible using the Annotation modeller.
However in order to display any field as drop down , you will have to modify the metadata of your entity so that the field(property) hasthe additional features in metadata like sap:filter-restriction="single-value"(Single Value Selection on UI) and sap:value-list="fixed-values" (Display as Dropdown)
Sample property below :
<Property Name="DELKZ" Type="Edm.String" Nullable="false" MaxLength="1" sap:filter-restriction="single-value"
sap:label="Display Deleted Task Lists" sap:creatable="false" sap:updatable="false" sap:sortable="false" sap:value-list="fixed-values"/>
Thanks,
Vaibhav
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Please refer the following URL for Enabling Annotations in XSODATA service and adding specific annotations to properties.
Also please refer to the following thread where they mention that
Annotate your value help CDS view with
@ObjectModel.resultSet.sizeCategory:#XS
This will automatically create the fixed-values metadata annotation and shows a dropdown in Fiori Elements.
https://answers.sap.com/questions/252804/fixed-value-list-with-cds-annotations.html
Thanks,
Vaibhav
User | Count |
---|---|
58 | |
10 | |
8 | |
8 | |
6 | |
6 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.