Unable to hide subform in table cell dynamically
Dear Friends,
i have a requirement where i need to make a subform in table row(cell) visible/invisible dynamically.
My Code:
data.#subform[0].#subform[2].#subform[3].GT_TABLE.DATA[0].#subform[1].#subform[2]::initialize - (JavaScript, client)
var length = xfa.resolveNodes("data.#subform[0].#subform[2].#subform[3].GT_TABLE.DATA").length;
//var fields = xfa.form.subform.table.row.all;
xfa.host.messageBox("Hi");
for (var i=0; i<=length; i++ )
{
xfa.host.messageBox("Hi");
if ( xfa.resolveNode("data.#subform[0].#subform[2].#subform[3].GT_TABLE.DATA["+ i +"].#subform[1].#subform[2].TextField1").rawValue == "X"){
this.presence = "hidden";
}else{
this.presence = "visible";
}
}
Problem 1. if the subform is hidden first row, it is hidden in all rows of table, where conditionally it should get visible/invisible.
2. xfa.host.messageBox("Hi"); is not working, i have tried these as well none of the below is working for debugging purpose:
data.#pageSet[0].Page1.CurrentPage::initialize - (JavaScript, client)
xfa.host.messageBox("welcome","Error",3,0);
$host.messageBox("Welcome");
xfa.host.messageBox("Test");
app.alert("click");

