Script type dictionary entry
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-04-2012 06:12 AM
Hi,
Has anybody used dictionary entry of "script" type. If yes, Please tell me how do i use this dictionary entry?. How can we execute the code written in this dictionary entry?.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-26-2013 08:03 AM
Hi JC,
great stuff! I hope the Evaluator does something like preventing infinite loops etc.?
I found somewhere in the code a with two additional parameters.
var e = new Packages.com.glide.script.Evaluator();
var answer = e.evaluateString('gs.getUserName()', '2', true);
Do you know their purpose?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-26-2013 07:49 PM
Thanks James, I never really knew this! I was searching all over for this.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-26-2013 08:28 AM
Evaluator won't do anything about loops. It just evaluates the String it's passed. Any loop would presumably be mitigated by transaction cancellation or transaction quotas (where a transaction isn't allowed to run more than a specific amount of time).
I don't know what those two lines are really meant to do, especially with those additional parameters.