Expand my Community achievements bar.

Cannot change properties of subsequent header rows.

Avatar

Former Community Member

I have a table which has 2 different header rows (they have the exact same content). One is for the intitial page, the other is for subsequent pages. Depending on what is in the table, the header should change. Specifically, one subform should go visible and the other hidden. This is not happening. I know the code is being executed at the right time because the header on the initial page changes, but not the subsequent pages. Here's a code snippet:

var rows = xfa.resolveNodes("AcctInfo.Table.Chartfields.DataRow[*]");
var chk = false;
for (var i = 0; i < rows.length; i++) {
    chk |= rows.item(i).Fund.rawValue >= 30000 && rows.item(i).Fund.rawValue <= 39999;
}
if (chk) {
    this.access = "readOnly";
    InitialHeaderRow.Cell.OptionalFrameBig.presence = "hidden";
    InitialHeaderRow.Cell.OptionalFrameSmall.presence = "visible";
    rows = xfa.resolveNodes("AcctInfo.Table.Chartfields.SubsequentHeaderRow.[*]");
    for (var i = 0; i < rows.length; i++) {
        rows.item(i).Cell.OptionalFrameBig.presence = "hidden";
        rows.item(i).Cell.OptionalFrameSmall.presence = "visible";
    }
} else {
    InitialHeaderRow.Cell.OptionalFrameBig.presence = "visible";
    InitialHeaderRow.Cell.OptionalFrameSmall.presence = "hidden";
    rows = xfa.resolveNodes("AcctInfo.Table.Chartfields.SubsequentHeaderRow[*]");
    for (var i = 0; i < rows.length; i++) {
        rows.item(i).Cell.OptionalFrameBig.presence = "visible";
        rows.item(i).Cell.OptionalFrameSmall.presence = "hidden";
    }
    this.access = "open";
}
this.rawValue = chk;

0 Replies