on 07-16-2008 2:31 PM
Hi,
how can I remove a page at runtime?
I have two pages.
Masterpage
Page1
Page2
Subform1 (printed with Page1)
Subform2(printed with Page2)
I want print page1 always but page2 when the fields on subform2 are nut null.
Can anyone help me? Points will be awarded.
Thanks
Hi Harman,
We are using Adobe LiveCycle Designer 8.0.
This is the hierarchy:
-PDF_DETAIL
-Masterseiten
-Seite1
-Seite2
-Kopfdaten
-Zusatzdaten
I write in Form:Ready Event of Seite1:
Seite2.presence =u201Dhiddenu201D;
But it doesnu2019t works. I tried it also with
PDF_DETAIL.Masterseiten.Seite2.presence = u201Chiddenu201D;
It is always the same problem. There is not method presence after enter Seite2. . When I write
Zusatzdaten.
in Form:Ready Event of Seite1 I get a list and there is the method presence and I can write
Zusatzdaten.presence = u201Chiddenu201D;
Regards
Vedat
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Vedat,
I donu2019t think you can hide a Master Page. In theory, Master Pages are not directly displayed to the Users, only Body Pages are displayed; so we canu2019t really hid the Master Pages. Each body page is built on top of a master page:
You can set the Master Page for a Body Page as following:
Select a body page (for example Zusatzdaten)
Then got Object > Pagination Tab.
Set the Place property to a specific master page.
Hope this helps,
Harman
Thanks Harman for your help but it doesn't works.
I can hidden fields but when I want hidden a Page it doesn't works.
I find out that when you write Page2.(dot) you get a list with methods.
I can't find in this list the method presence.
For fields and subforms exist the method presence but not when I write Page2.
Regards
Vedat
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Vedat,
That is strange, it works for me.
Please check the following:
Make sure your Body Page is actually named Page2 in the Hierarchy tab. (because by default, the pages are named something like u201C(untitled subform)(page1)u2026.u201D)
*We are using Adobe LiveCycle Designer 7.1
Hope this helps,
Harman
Hi Vedat,
Place the following code in the Form:Ready Event of Page1.
if (TextField1.rawValue == null){ \\Replace this IF statement with your condition.
Page2.presence = "hidden";
}
*Remember to set the Scripting language to JavaScript
Hope this helps,
Harman
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
89 | |
10 | |
9 | |
9 | |
9 | |
6 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.