on 02-25-2008 11:20 AM
hai all,
iam using checkbox group and iam adding the node elements at run time.I need to get the text values of the selected checkboxes.but the first value is set for all checkboxes.how to get them individually.
Thanks n Regards
Sharanya.R
Hi Sharanya,
If u have mapped ur checkbox value to any particular attribute in the context, set it to null at the starting... This may help u..
Regards,
Sayan Ghosh
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
can you post the code how the check box is populated?
Regards
Ayyapparaj
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
hi ayyapparaj,
for (int i = 0; i < 4; i++)
{
IPrivateCheckdynauiView.IProtectionsElement e = wdContext.nodeProtections().createProtectionsElement();
wdContext.nodeProtections().addElement(e);
e.setText("protections" + i);
}
now the checkbox is created with text protections0..... protections3 displayed next to them.
the user may select one among the checkbox or may chose 3 or 4.I need the checkbox values that the user has selected and send those values to next view.please help me doing that.
Thanks n Regards
Sharanya.R
Hi,
Use the following code
// change the node names to that of yours
for(int x=0; x<wdContext.nodeOrders().size(); x++)
{
if ( wdContext.nodeOrders().isMultiSelected(x) )
{
IWDNodeElement nodeElement = wdContext.nodeOrders().getElementAt(x);
// Following Line will return you the selected ones.
nodeElement.getAttributeValue("Your attributeName");
}
}
Regards
Ayyapparaj
User | Count |
---|---|
93 | |
10 | |
10 | |
9 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.