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

Can't call ScriptObject function after xfa.host.importData()

Avatar

Avatar
Level 1
LuckyLuke
Level 1

Likes

0 likes

Total Posts

8 posts

Correct Reply

0 solutions
View profile

Avatar
Level 1
LuckyLuke
Level 1

Likes

0 likes

Total Posts

8 posts

Correct Reply

0 solutions
View profile
LuckyLuke
Level 1

10-02-2021

I have a button with a click event in which I first call a function from the ScriptObject Helper, the subsequently I perform the importData() command and after that is done I do a recall of the same function in the ScriptObject helper.

The first call works,

then the dialog to import xml data works and gets imported

but then the new call fails with error that the Helper does not exists.

See screenshots.

Screenshot 2021-02-10 at 16.55.56.pngScreenshot 2021-02-10 at 16.56.19.png

Can somebody explain and maybe give a solution?

I want to hide the Import button after a successful import.

Thnx in advance!

View Entire Topic

Avatar

Avatar
Coach
MVP
radzmar
MVP

Likes

394 likes

Total Posts

2,686 posts

Correct Reply

490 solutions
Top badges earned
Coach
Ignite 3
Ignite 1
Validate 1
Give Back 50
View profile

Avatar
Coach
MVP
radzmar
MVP

Likes

394 likes

Total Posts

2,686 posts

Correct Reply

490 solutions
Top badges earned
Coach
Ignite 3
Ignite 1
Validate 1
Give Back 50
View profile
radzmar
MVP

10-02-2021

It's because the import executes a remerge of the imported data with the template into a new form. It's like a start over.