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

Check in script if data merge has occured or not

Avatar

22-09-2008

Hi all,



I am using Designer 8.1 and i am looking for a way to figure out in script if a particular field's data merge has completed or not. Is it possible?

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

23-09-2008

If you code against the DocReady or FormReady event you can be sure that data murge is complete.

Avatar

23-09-2008

I forgot to mention that i am using form guides, do DocReady and FormReady fire for form guides?

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

23-09-2008

Yes they do

Avatar

07-10-2008

Are we sure it does after the data merge?? To test it, I placed a xfa.host.messageBox statement on Form Ready and the message popped up before the data was merged. Any clues??

Thanks for any 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

07-10-2008

The message box will appear and suspend the display of the PDF ..... but it is still working in the background.

Avatar

09-10-2008

Thanks for the reply Paul. If I try to print the form (xfa.host.print) on DocReady event, the form comes up blank. That is data merged is not showing up on form. If I do the print on DocClose, the data is showing up on the form. Any Ideas???

Thanks.

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

09-10-2008

I believe the data is there ....on the Doc Ready do an app.alert(fieldname.rawValue) if it comes up with the value from your data then you know it is there. If it comes up null or blank then you know it is not.



The print is not a valid test (IMHO).