Copy link to clipboard
Copied
Hi
I have implemented a script provider in my plugin who is called from a web application via JavaScript. This web application call the script only one time, but the HandleEvent in my plugin is called twice!
Any ideas what could be the reason?
Thanks for any hint
Hans
Copy link to clipboard
Copied
Trivial case: The first is the getter to retrieve your object from its parent.
Solution: dispatch on the given scriptID.
If you got that covered, you could still be targeting multiple objects.
// this will iterate all items
app.whateverCollection.everyItem().doSomething();
Dirk
Copy link to clipboard
Copied
Hi Dirk
Thanks a lot for your hint.
I find out the problem in my case. I had two main functions in my Javascript!!!
Thanks
Hans
Find more inspiration, events, and resources on the new Adobe Community
Explore Now