cancel
Showing results for 
Search instead for 
Did you mean: 

Regarding CheckBoxGroup

Former Member
0 Kudos

I have a problem about checkBoxGroup

I have taken context nodesport& contextattr sport under sport node.

In first screen i hve taken 6 items of checkboxes

and i want to display selected checkboxes into 2nd screen of a table.

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

Hi Hazrath,

You create your node for checkBox Group (nodesport) in Component control and drag that node in two views.

Selected Check box value is stored in corresponding attributes. It is located in Component control so you can get the values for that attributes and bind that value to the corresponding table column.

Regards,

Balaji P.J

former_member751941
Active Contributor
0 Kudos

Hi Gurram,

1> In First Page :

NodeFirst

|------firstAttr1

|------firstAttr2

|-----isChecked(type Boolean)[is mapped in the checked property of the table]

2> In SecondPage :

NodeNext

|------nextAttr1

|------nextAttr2

Inside the action of the button try.

int n = wdContext.node NodeFirst().size();

for(int i = 0; i< n; i++)

{

if(wdContext.nodeNodeFirst().get NodeFirstElementAt(i).getIsChecked())

{

IPrivate><Put View Name>.INodeNextElement elm = wdContext.createNodeNextElement();

elm. setNextAttr1(wdContext.nodeNodeFirst().getNodeFirstElementAt(i).getFirstAttr1());

elm.setNextAttr2(wdContext.nodeNodeFirst().getNodeFirstElementAt(i).getFirstAttr2());

wdContext.nodeNodeNext().addElement(elm);

}

}

Regards,

Mithu