cancel
Showing results for 
Search instead for 
Did you mean: 

List Box mobile deselect all option?

xjhacking
Contributor
0 Kudos

Hi guys,

I'm using a List Box component for my mobile Design Studio application to enable multiple selection to filter a data source. This all works very well, and in the Mobile app the user can select multiple options from the list box by tapping. It is also possible to deselect options by tapping them again, at least until one selection remains. It seem like it is not possible to deselect all options.

Am I missing something here, or maybe a property somewhere has to be set? If I run the application in my Mac browser, I can just use CTRL-click to deselect everything. Just like I can use CTRL-click to make multiple selections.

Would be pretty nasty if the deselect all option isn't built in for mobile purposes, as I have to add another button to achieve this using a script...

Thanks,

Xavier

Accepted Solutions (1)

Accepted Solutions (1)

xjhacking
Contributor
0 Kudos

Okay I decided to try the sap.m option and here the Listbox component looks a bit different. It has a select/deselect checkbox for each value, so I don't need a deselect all option anymore. Also, it enables scrolling in mobile, which also didn’t' work with the 'old' Listbox component.

/Xavier

Answers (2)

Answers (2)

Former Member
0 Kudos

Hi Xavier,

Yes ! You're right ! This option for mobile purposes have not been built in for the LIST BOX component.. And even in 1.6 we didn't have any improvement regd this functionality in List Box Component. So you'll have to use scripts, but you need not use Scripts in another button, but use the script in the List Box - On Select .. Refer my Blog on this, whose link has been shared by Tammy in the above Comment. That would help your scenario perfectly !

Thanks

Gowtham S

TammyPowlas
Active Contributor
0 Kudos

I am not connected where I could try this right now, but you may need to resort to script, as Gowtham explains here