Creating a table of contents

Avatar

20-10-2008

I was wondering if somebody could help with building a table of contents. The page number functionality is present in the library which I drag and drop onto the master page. Now if I could grab that page number value into a text field on the corresponding page that would be very helpful.



Could somebody please provide me with that script.



Thanks,

Dripto

Replies

Avatar

Avatar
Boost 500
Level 10
pguerett
Level 10

Likes

612 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

612 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

20-10-2008

You shouldl be able to get the page that an object is on by using the xfa.layout.page(Fieldname);

Avatar

20-10-2008

Thanks Paul.



I tried your script and failed. Here is the scenario: I have a text field called partOne that resides in a subform called part1 which in turn resides in a subform called rfqDetail.



And in my contents page I created a field to capture the page number and the initialize script that I included in it was:



this.rawValue = xfa.layout.page(rfqDetail.part1.partOne);



However, all I keep getting is a "-1" value in the text field in the contents page. Any ideas as to what I am doing wrong?



Thanks again for your help.

Avatar

Avatar
Boost 500
Level 10
pguerett
Level 10

Likes

612 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

612 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

20-10-2008

Try it with just the fieldname - partOne