on 06-18-2010 11:44 AM
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?
Hi Nikhil.
i got it...Thank You
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Nikhil,
Thanks for the reply.
If we use Select All as you said, can we do internationalization for this value.
Thanks,
Madhavi.T
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
//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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
96 | |
11 | |
11 | |
10 | |
9 | |
7 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.