This topic is locked
[SOLVED]

Hide fields on printer paged..problems with PDF

3/16/2022 3:53:05 PM
PHPRunner General questions
M
Mauipm author

Hi all,
I open a printer page by a custom button, and I set some group of fields (let me say "g1" to "g10") HIDDEN based on some SESSION variable values (with $pageObject->hideField in "before display" event of printer page)
There is one IF condition for each group to decide about "hidden"
Everything works fine with the printer page.
The problem occurs when I open the PDF file from the printer page: every group of fields is not visible.
Is there a way to avoid it?

Thanks for your suggestions

M
Mauipm author 3/17/2022

I found the reason! A code transaction reset the session variables before the opening of PDF.
Now it works fine.
My apologize for the inconvenience