Hide/Unhide Rows in Dynamic Table in LiveCycle
I have an expanding table. I have an Add Row button below the table and a Checkbox at the end of each row that will hide that row. I need a button that will Show All Hidden Rows and another button to Hide All Hidden Rows. This is working only on the first row of the table and not on any additional rows that have been added. Any help is greatly appreciated.
How do I attach a sample file on this forum?
This is the code I used to Hide Row Checkbox (on the Click event placed at the end of each row):
if (form1.Subform1.TableA.Row1.CheckBox1.rawValue == 1)
{
form1.Subform1.TableA.Row1.presence = "hidden";
}
else
if (form1.Subform1.TableA.Row1.CheckBox1.rawValue == 0)
{
form1.Subform1.TableA.Row1.presence = "visible";
}
Here is the code for the Show All Hidden Rows button (on the Click event):
this.resolveNode("TableA.Row1").presence = "visible";
Here is the code for the Hide All Hidden Rows button (on the Click event):
if (form1.Subform1.TableA.Row1.CheckBox1.rawValue == 1)
{
form1.Subform1.TableA.Row1.presence = "hidden";
}
else
if (form1.Subform1.TableA.Row1.CheckBox1.rawValue == 0)
{
form1.Subform1.TableA.Row1.presence = "visible";
}