cancel
Showing results for 
Search instead for 
Did you mean: 

'select all' in the dropdown

Former Member
0 Kudos

Hi,

I have a requirement where i need to display the dynamic values in the dropdown. Along with the data i should have 'select all' option in the dropdown.

How can i get the select all value in the dropdown along with the database values?

Accepted Solutions (0)

Answers (3)

Answers (3)

Former Member
0 Kudos

Hi Nikhil.

i got it...Thank You

Former Member
0 Kudos

Hi Nikhil,

Thanks for the reply.

If we use Select All as you said, can we do internationalization for this value.

Thanks,

Madhavi.T

nikhil_bose
Active Contributor
0 Kudos

Hi Madhavi,

This will not do internationalization. But you can create a message in the Message Pool and use same for assigning value for "Select All"

Create a Message in Message Pool as type of TEXT.


String value = wdComponentAPI.getTextAccessor().getText(IMessage<comp>.<Messsage>));

cheers,

Nikhil

nikhil_bose
Active Contributor
0 Kudos

//Add 'Select All' default entry
wdContext.nodeDroplist().createAndAddDroplistElement().setValue("Select All");
// 'Select All' is  added before database values are populated in the list
while( rs.next()){
     wdContext.nodeDroplist().createAndAddDroplistElement().setValue( rs.getString( "Country"));
}

regards,

nikhil