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

Message box in function returning a list is deleting the list created...(Dialog box)

Avatar

Avatar
Springboard
MVP
Magus069
MVP

Likes

143 likes

Total Posts

1,072 posts

Correct Reply

155 solutions
Top badges earned
Springboard
Validate 1
Ignite 3
Ignite 1
Establish
View profile

Avatar
Springboard
MVP
Magus069
MVP

Likes

143 likes

Total Posts

1,072 posts

Correct Reply

155 solutions
Top badges earned
Springboard
Validate 1
Ignite 3
Ignite 1
Establish
View profile
Magus069
MVP

13-10-2015

Hi there,

I am working with a complex dialog, its purpose is to manage a section within the PDF.

I am using a "mclv" object within the dialog box to represent some data entered in the PDF to be able to manage the outcome in another section.

I have created a function which creates the list object based on a previous section within the PDF, the function works perfectly fine.

But I have a small issue, the function used to create the list object for the dialog box is making a verification with the old list created before, if any,

and if it is anyhow different from the old list I need to alert the user that the list has been modified and if there was any changes applied for the outcome it will be reset and needs to be recreated.

But when poping that message box, all lists are deleted and nothing is displayed in the "mclv" objects.

if I remove the message box, the lists are all fine...

Is there anyone that have encountered something like this before? if yes, any solution to this issue?

Accepted Solutions (1)

Accepted Solutions (1)

Avatar

Avatar
Springboard
MVP
Magus069
MVP

Likes

143 likes

Total Posts

1,072 posts

Correct Reply

155 solutions
Top badges earned
Springboard
Validate 1
Ignite 3
Ignite 1
Establish
View profile

Avatar
Springboard
MVP
Magus069
MVP

Likes

143 likes

Total Posts

1,072 posts

Correct Reply

155 solutions
Top badges earned
Springboard
Validate 1
Ignite 3
Ignite 1
Establish
View profile
Magus069
MVP

13-10-2015

I've asked my question a little too fast, I've already found a work around

But I still don't understand why it's behaving like this tho...

I've just thought how to work around this issue.

if anyone encountered this issue can use this solution:

Answers (2)

Answers (2)

Avatar

Avatar
Springboard
MVP
Magus069
MVP

Likes

143 likes

Total Posts

1,072 posts

Correct Reply

155 solutions
Top badges earned
Springboard
Validate 1
Ignite 3
Ignite 1
Establish
View profile

Avatar
Springboard
MVP
Magus069
MVP

Likes

143 likes

Total Posts

1,072 posts

Correct Reply

155 solutions
Top badges earned
Springboard
Validate 1
Ignite 3
Ignite 1
Establish
View profile
Magus069
MVP

16-10-2015

Thanks for answering,

I unchecked the "Enforce Script Scoping Rules" and unfortunately it doesn't fix the problem..

It would have been one good reason for its behaviour but that's not quite it..

Thanks for trying. After further analysis, I will not be keeping this dialog.

I'll be using another method for what I'm trying to do, but thanks for the help!

Avatar

Avatar
Boost 50
MVP
_Bruce_Robertson
MVP

Likes

269 likes

Total Posts

1,782 posts

Correct Reply

372 solutions
Top badges earned
Boost 50
Boost 5
Boost 3
Boost 250
Boost 25
View profile

Avatar
Boost 50
MVP
_Bruce_Robertson
MVP

Likes

269 likes

Total Posts

1,782 posts

Correct Reply

372 solutions
Top badges earned
Boost 50
Boost 5
Boost 3
Boost 250
Boost 25
View profile
_Bruce_Robertson
MVP

13-10-2015

Hi,

A complete stab in the dark, but could this be related to "Enforce Strict Scoping Rules".  Do you get the same thing happening if you remove <?acrobat JavaScript strictScoping?> from the XML Source?

Having Strict Scoping set can cause the garbage collection to be more aggressive.

Regards

Bruce