cancel
Showing results for 
Search instead for 
Did you mean: 

sapui5 sap.m.Select 2 columns does not work

VictorHo
Participant
0 Kudos

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>

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member

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.