Discussions
accessing script parameters...
In the 2007 release, it looks like the following no longer works for accessing script parameters???
if (custscript_case_debug == 'T')
nlapiLogExecution ('DEBUG', 'Debug mode is turned on');
Now the following must be used:
var value = nlapiGetContext().getSetting('SCRIPT', 'custscript_case_debug');
if (value == 'T') {
nlapiLogExecution ('DEBUG', 'Debug mode is turned on');
I still see script parameters being accessed the old way in the docs/guides, so I am assuming I was not doing something wrong to begin with.
If this change is intentional (and I do like this new way much better), shouldnt there be a time where both ways work in order to update all scripts that are currenly in production???