on 01-29-2008 6:12 AM
Hi,
I have created Checkbox group but i was unable to retrieve data from the checkbox which was checked.
Please help me to resolve this issue
From,
Durga Rao
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
Use the following
for (int x=0; x< wdContext.nodeTest().size(); x++)
{
if( wdContext.nodeTest().isMultiSelected(x) )
// Selected Element
IWDNodeElement nodeElement = wdContext.nodeTest().getElementAt(x);
nodeElement.setAttributeValue("<Your Attribute> ", <Value>);
//Ex setting value for attribute called Name
nodeElement.setAttributeValue("Name", "Test");
}
Regards
Ayyapparaj
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You can get the selected values of check box group as follows :
int val= wdcontext.nodenodename().size();
for(int i=val;i>0;i--)
{
if(wdcontext.nodename.ismultiselected())
{ WDNodeElement nodeElement = wdContext.nodenodename().getElementAt(i);
nodeElement.setAttributeValue("<Your Attribute> ", <Value>);
}
}
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
87 | |
10 | |
10 | |
9 | |
7 | |
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.