Hi all,
I need to hide a row from the table based on a condition and all the suggestions I found says to use .presence = "hidden", but unfortunately only the line content is being hidden and not the entire row.
This is the JavaScript I'm using:
data.#pageSet[0].Page1.BasicData::initialize - (JavaScript, client)
if ( $record.V_FLAG.value != "X" ) {
this.resolveNode("Page1.BasicData.Table1.Line2").presence = "hidden";
}
I also tried the following alternatives:
if ( $record.V_FLAG.value != "X" ) {
this.resolveNode("Page1.BasicData.Table1.Line2.Cel1").presence = "hidden";
}
if ( $record.V_FLAG.value != "X" ) {
this.Table1.Line2.presence = "hidden";
}
if ( $record.V_FLAG.value != "X" ) {
this.Table1.Line2.Cel1.presence = "hidden";
}
I appreciate any help.
Solved! Go to Solution.
Views
Replies
Total Likes
@Magus069fair enough but from the description and the word "table" you cannot pinpoint things as everyone uses terms in their way.
If this is a XFA table it should be totally easy:
You don't even need all that flowed context stuff as long as the table stands on its own, has nothing following it which needs to move and does not exceed the page boundaries.
If that does not work for you then I can only guess what the problem may be:
Hi there,
it is hard to say why it behaves this way, and without the hierarchy it would be hard to explain and understand... have you tried hiding Table1?
I am not sure exactly what you mean by: hiding Line1 is hiding the content only and not the row.
Views
Replies
Total Likes
my guess: you have not placed your table in a flowed top-to-bottom context. In that case hidden would hide things but they cannot flow/collapse.
I created a table and make Line1 hidden on initialize
When Table1 is not Flowed then the wrong result:
Result with Table1 Flowed:
Views
Replies
Total Likes
Views
Replies
Total Likes
Views
Replies
Total Likes
Views
Replies
Total Likes
Views
Replies
Total Likes
@Magus069fair enough but from the description and the word "table" you cannot pinpoint things as everyone uses terms in their way.
If this is a XFA table it should be totally easy:
You don't even need all that flowed context stuff as long as the table stands on its own, has nothing following it which needs to move and does not exceed the page boundaries.
If that does not work for you then I can only guess what the problem may be:
Views
Replies
Total Likes
I tried to follow your example, but it didn't work for me. The element is not collapsing.
Before this.presence = "hidden"
After
Views
Replies
Total Likes
Views
Likes
Replies