Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
BedrockMission!

Learn More

View all

Sign in to view all badges

Setting current page problem.

Avatar

Avatar
Level 2
dylan_vr
Level 2

Likes

0 likes

Total Posts

24 posts

Correct Reply

0 solutions
View profile

Avatar
Level 2
dylan_vr
Level 2

Likes

0 likes

Total Posts

24 posts

Correct Reply

0 solutions
View profile
dylan_vr
Level 2

15-09-2008


Replies

Avatar

Avatar
Level 2
dylan_vr
Level 2

Likes

0 likes

Total Posts

24 posts

Correct Reply

0 solutions
View profile

Avatar
Level 2
dylan_vr
Level 2

Likes

0 likes

Total Posts

24 posts

Correct Reply

0 solutions
View profile
dylan_vr
Level 2

15-09-2008

Hi



I have a number of subforms that span across 30+ pages who's presence is "hidden" I then show them on the click of a button.What's also ment to happen is as I click and show the subforms the pdf's current page must be 1. Its seems to me that when the code executes for xfa.host.currentPage however page 1 doesn't exist because the subforms are still being shown so the pdf's page is not set to the second page. Can anybody help?



Thanks

Avatar

Avatar
Boost 500
Level 10
pguerett
Level 10

Likes

611 likes

Total Posts

7,689 posts

Correct Reply

692 solutions
Top badges earned
Boost 500
Boost 50
Boost 5
Boost 3
Boost 250
View profile

Avatar
Boost 500
Level 10
pguerett
Level 10

Likes

611 likes

Total Posts

7,689 posts

Correct Reply

692 solutions
Top badges earned
Boost 500
Boost 50
Boost 5
Boost 3
Boost 250
View profile
pguerett
Level 10

15-09-2008

As you are only showing one page the currentPage is page 1. All other pages are hidden and are not part of the form until they are visible. The product is working as it was intended.



You could put your own page numbers on the form and not rely on a programatic way of resolving pages. As I make page 2 visible then it will say page 2.

Avatar

Avatar
Level 2
dylan_vr
Level 2

Likes

0 likes

Total Posts

24 posts

Correct Reply

0 solutions
View profile

Avatar
Level 2
dylan_vr
Level 2

Likes

0 likes

Total Posts

24 posts

Correct Reply

0 solutions
View profile
dylan_vr
Level 2

15-09-2008

Hi Paul



Thanks for the reply. I only need to set the current page to 1 after all the subforms have been set to visible which is where the problem comes I call currentPage right after setting all the subforms to visible but it doesn't change to the second page.

Avatar

Avatar
Boost 500
Level 10
pguerett
Level 10

Likes

611 likes

Total Posts

7,689 posts

Correct Reply

692 solutions
Top badges earned
Boost 500
Boost 50
Boost 5
Boost 3
Boost 250
View profile

Avatar
Boost 500
Level 10
pguerett
Level 10

Likes

611 likes

Total Posts

7,689 posts

Correct Reply

692 solutions
Top badges earned
Boost 500
Boost 50
Boost 5
Boost 3
Boost 250
View profile
pguerett
Level 10

15-09-2008

The pages are still part if the template dom as the objects are created. They are not part of the layout dom as they are marked as hidden. The currentPage looks at the layout dom to set its currentPage.