Toolbox (JS) or my app issue?

Hi,
I am using your Toolbox plugin for the first time. I do not know how to code in JS but these days AI can do enough work to start using it.
Anyway, I have this app where I managed to do the more complex XLS inquiry and calculation using JS in Toolbox and using app paramethers.
I am currently stoped at strange situation where I have a button in app that triggers the workflow that runs JS. In same workflow after JS and 2000 ms pause I Make changes to a database where three variables resulting from JS shall be stored. Thing is that first time I press this button (JS calc) nothing happens and next time I press it, numbers are stored in DB and shown to user as it suppose to do in the first place?
Can you give me some hint how to solve this?

Regards,
Aleš

Pass values from your script to a JavascriptToBubble element. Make sure that you have Triggers Event and Pass Values checked in its property editor settings.

When your script passes the value to the element it will trigger its event. Using this event will ensure that your script has run its course.

Check out Toolbox’s documentation for more details.


This part is done. Actually I have three variables that I pass this way back to app. Each has these setting. Anything else that I might do wrong?
Thanks,

Make sure that any actions requiring the processed values, run in the J2B Element’s trigger event WF or after the event has triggered.

This topic was automatically closed after 70 days. New replies are no longer allowed.