Button onClick, not functioning
Greetings.
I have a button defined as such
var execBtn = appWindow.add('button',undefined,'Export');
I then click on it thusly:
execBtn.onClick = function(){
someFunction();
}
The code in someFunction() runs fine outside of the button but will not execute when wrapped within the button. I triple checked that variables passed to someFunction were either global or defined within the scope of the button click itself. Not sure why it will not run. Is there some other way to do this like onButtonDown or something?
I appreciate the community's time and any assistance you can provide.
