Skip to Content
0

sapui5 sap.m.Select 2 columns does not work

May 29, 2017 at 08:41 AM

24

avatar image

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>
10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

1 Answer

Ravikran Marella May 29, 2017 at 10:32 AM
2

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.

Share
10 |10000 characters needed characters left characters exceeded