Hi All,
I am facing an issue in a requirement.
We have 3 header rows and then a body row, where these three header rows(with different number of fields )should always be an overflow leader to the body row.
Based on Form calc Script, I have to hide the second header row,
I have used positioned subform for header rows and table data had the above subform has overflow leader. But now I have to hide the second header row if a value in a field in that row is blank. So that the third row takes its place.
With positioned subform this hiding was not possible (since with Java script/Formcalc) it was still leaving blank space
So I created a table with three header rows and one body row and wrote the script as below in the Row2. It works fine on first page and it got hidden and there was no blank space between Row1 and Row3. But from second page onwards, the script was just hiding the text in Row2 header, but blank space for second row is still appearing.
I have tried using formCalc as well as JavaScript
For JavaScript:
if(this.rawValue == null)
{
this.presence = "hidden";
}
For FormCalc:
if ( not HasValue($)) then
$.presence = "hidden"
endif
It is working fine in first page, hidden field is being occupied by subsequent header line.
But second page onwards it's not working as expected, field is being hidden but the space is there.
Please suggest how can I achieve this.
Thank you for your replies in advance !
Request clarification before answering.
Hi Dolly,
as per my understanding of your requirement.
you would like to print one table with 3 header and one body. 1st and 3rd header will be visible on every page if it flow to next page but 2nd header will be visible or invisible based on some value.
while you are using 3 different header row in next page if you are hiding based on condition then some blank space are printing.
to avoid this i will suggest you to create one header row inside that create one subform inside that subform again create 3 subform for your header. now you can make 2nd subform based on your value. it it will be invisible then blank space will not print.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I did that only , it worked on first page only. Not from second page onwards. Issue I have been facing is from second page onwards. First page was always working fine.
Now I am trying to send the three header rows in table from the code. If I want to hide something, I won't send that row in the internal table. So I am going to handle it from the driver program now.
| User | Count |
|---|---|
| 5 | |
| 4 | |
| 4 | |
| 3 | |
| 2 | |
| 2 | |
| 2 | |
| 2 | |
| 2 | |
| 2 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.