Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

Handle event of a script provider is called twice

Explorer ,
Feb 03, 2010 Feb 03, 2010

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

TOPICS
SDK
486
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Mentor ,
Feb 03, 2010 Feb 03, 2010

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

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Explorer ,
Feb 23, 2010 Feb 23, 2010
LATEST

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

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines