I've created a few Actions using Action Studio. For most, the simple variable binding works fine. However, I'm trying to create a list of variable names similar to the CSV File Iterator ( actually it is almost identical, except it splits a variable value into separate fields ).
I'm using JavaScript and trying to assign function objects to the OnClick property. e.g.:
Where FBButtonAdd is a button and FBListBoxVariables is a list of items.
Nothing appears to happen when the button is clicked. Adding break points in the debugger didn't seem to help either.
I tried using other variable names, but they caused the debugger to appear when using anything other than OnClick.
There is probably an easy explanation, probably dealing with my inexperience with Windows GUI scripting and applying Web scripting to something different.
You cannot do what you are attempting to do, because the scripts are not held in memory (the action properties dialog is not a web page!). Also, the controls are windows controls, so you can’t hook into them using the same techniques used in a browser.
Each event is a separate script that is executed as needed. The proper way to create the scripts is in action studio, right click on the button and select the OnClick event, you will then be presented with the script editor. Having said that, we found a bug in Action Studio today which I introduced recently in a change to reduce the resources used by FB. This build has the fix and if you are writing actions I recommend installing it :