cancel
Showing results for 
Search instead for 
Did you mean: 

Table with checkbox

Former Member
0 Kudos

Hi Experts,

In my requirement is I have table with check box and one submit button

column1 | column 2 | ..... column 5

under column1 having check box

IF i select the checkbox and after clicking the button how can i remove the entire column into the table.... please help its very urgent..

Regards,

P.Manivannan.

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi,

Create a context attribute of type WDVisibility.

Initially set the value to WDVisibility.VISIBLE

Map this attribute to the visible property of the table.

Once as per your requirement, once the user select the checkbox and click submit make this property to WDVisibility.NONE.

Regards

Ayyapparaj

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi,

Under the table node, create one attribute of type boolean and bind it to the checked property of checkbox cell editor.

Now, on click on the submit button just loop through the node and check for selected checkbox and remove that row

for(int i=0; i<wdContext.node<nodename>().size().i++)

{

IPrivate<viewname>.I<nodename>Element ele = wdContext.node<nodename>().getElementAt(i);

if(ele.get<attribute for checkbox of type boolean>() == true)

{

wdContext.node<nodename>().removeElementAt(i);

}

}

Regards,

Murtuza

Former Member
0 Kudos

Hi All,

Thanks for ur replies. i got a solution

Regards,

P.Manivannan

Former Member
0 Kudos

Hi All,

solved

Regards,

P.Manivannan