Skip to Content

sapui5 sap.m.Select 2 columns does not work

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>
Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

1 Answer

  • avatar image
    Former Member
    May 29, 2017 at 10:32 AM

    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.

    Add comment
    10|10000 characters needed characters exceeded