on 05-29-2017 9:41 AM
Dear experts,
According to Explored and API documentation of SAPUI5, I find the control sap.m.select can display items in 2 columns like this example in Explored:
However, when I tried in my app, it does not work. I've tried may way but it didn't work out. Did anyone who have done tried to display 2 collumns of Select? Could you please share if there is some missing point?
Here is my XML testing file:
<mvc:View controllerName="Test.controller.App" xmlns:core="sap.ui.core" xmlns:html="http://www.w3.org/1999/xhtml"
xmlns:mvc="sap.ui.core.mvc" xmlns="sap.m">
<App>
<pages>
<Page title="{i18n>title}">
<content>
<Input id='inp' submit='onSubmit'/>
<Select showSecondaryValues="true">
<core:ListItem additionalText="test desc" key="id" text="testfield"/>
</Select>
</content>
</Page>
</pages>
</App>
</mvc:View>
The sample code you've provided does work. The secondary values appears only in the drop down list though, not in the selected item. You should also check your UI5 version as this property is available only from 1.40.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
88 | |
10 | |
10 | |
9 | |
7 | |
7 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.