debug UI Action script
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-25-2016 02:52 AM
Hi , Is it possible to check what is wrong in Ui script ,Is there anyway to debug it or any command which write the details ( incorrect command ) in javascript log
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-25-2016 03:01 AM
Hi,
If the UI Action will run in the server, you can use gs.log("") in order to write in the log. Also, if you enable "Debug Log" module, you will be the messages in the bottom of the screen while they are being generated.
If the UI Action will be in the Client Side, you can do an alert() command, or, you can try with console.log() and to see the messages in the Browser Developer Tools.
Best Regards
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-25-2016 03:07 AM
you can check the code using
ctrl+shift+Alt+j
you will get one editor
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-26-2016 09:41 AM
You can always use Scripts - background (only available with elevated security admin privileges)
Generate your code in there to test, using gs.print to display results. Note that this is segregated so you cannot use "current."
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-26-2016 11:59 AM
I agree with Wade, This is something I always do when trying to figure out how to do the code.
//Göran