cancel
Showing results for 
Search instead for 
Did you mean: 

Selectall in value help in sapui5

0 Kudos

Need: Select all checkbox in ValueHelp(F4):

  1. I am using MultiInput control for valuehelp and user wants that on one single click all customer should get auto select. (Customer: 560 number)
  2. MultiComboBox gives the same functionality that Multi input gives but with "Selectall" checkbox, but in MultiComboBox only 200 customers can be visible and not more than that but we have to show more than 200 customer. So this will not work in our scenario.
  3. After giving Selectall checkbox, If user filter some customer and then clicks on Selectall checkbox then all filtered customers will get auto select or all customers will get autoselect.
  4. Same we have to do for Material in which there are more than 13k and for MRP- Controller in which there are 35 number of data in it.

Accepted Solutions (0)

Answers (1)

Answers (1)

leonikussmaul
Product and Topic Expert
Product and Topic Expert
0 Kudos

Hi Sarvesh,

You can add a sap.m.CheckBox control to the dialog or popover. Add a change event listener to the checkbox control, which will trigger the selection of all items in the MultiInput control when the checkbox is checked.

To select all items, you can use the setSelectedItems() method of the MultiInput control and pass an array of all the items from your JSON Model to the method.

0 Kudos

Hi Leoni,

I had tried your approach but as user clicks on valuehelp, valuehelp gets displayed and we can't acess anyother button till the time we closed valuehelp. I have used fragment using that approach I have accomplish the requirement.

Thanks for your support