--
You received this message because you are subscribed to the Google Groups "CommandFusion Software" group.
To unsubscribe from this group and stop receiving emails from it, send an email to commandfusio...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
Hi and Thank's Jarrod!I made a scriptfile called Power_script.js and put this in it:
{"createddate":"2014-01-13T21:42:52","power":2835.0}
You first need to understand where the error actually is...ie. Do you know if the button press is even calling the function you defined?
Let's start from the start.
I assume you have this script in a file in the same folder as the gui (say called main.js) added the script to the gui using Script Manager as per here? http://www.commandfusion.com/wiki2/software/gui-designer/script-manager
If so, add some debugging output to the script using cf.log and cf.logobject to see what is happening (http://www.commandfusion.com/docs/scripting/util.html#cF.log) and post script and debug.
Once you know where the issue is (ie. not calling script at all, error in json response, error in cf.request etc) I suggest you post the full script (eg. main.js) to pastebin and post a link here so we can see it.
cheers.