cancel
Showing results for 
Search instead for 
Did you mean: 

Re:Retrieval of data from checked checkbox

Former Member
0 Kudos

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

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi,

Hope the link below will help you to resolve your problem:

[;

thanks & regards,

Manoj

Answers (2)

Answers (2)

Former Member
0 Kudos

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

Former Member
0 Kudos

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>);

}

}