Quantcast
Channel: SCN: Message List
Viewing all articles
Browse latest Browse all 8065

Re: Select All / Deselect All action for itemListBox

$
0
0

Hi Christ,

 

Yes, itemListBox in WDa is not having option for select all/deselect all

 

Note: There is an event OnLeadSelect which triggers on select of any item on list box but when you set property "multipleSelection" to true the the event will never trigger

 

 

If your requirement is to select all and deselect all items in the list box on any button action , you need to process corresponding to that

 

add 2 new items say : Select all & Deselect all to the context node at index 1 & 2

 

Example:

Node contains the data as below

 

1. Select All

2. Deselect All

3. item1

4. item2

5. item3

6. item4

7. item5

 

 

When user selects item  "Select All" and clicks on display button.

 

Now get the selected elements from node using method ( IF_WD_CONTEXT_NODE)~GET_SELECTED_ELEMENTS and

If selected item contains "Select all" then consider all items from index 3 onwards for your processing.

 

When user selects item "Deselect All" , Refresh the node

 

     

Regards,

Rama


Viewing all articles
Browse latest Browse all 8065

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>