What exactly is this doing?
# suitescript
c
What exactly is this doing?
b
c
So the user entered a script param into a record and this is reading that?
Maybe not - reading script param docs now
So it's a param that the user can create on the deployment record.
b
Its usually a field on the script deploymeny
c
What's the purpose?
b
If you want a field specific to a script, thats what you use
c
Allowing you to modify script execution without editting code.. I usually see that done via custom fields on recods but i guess this has *'some'*use
b
Uncommonly you can also make it company level
I havent seen the user level one yet
c
One year of SS2 and this is the first time I've seen this used
I'm finding that code from NS PS seems to be pretty messy / written quickly
what a great day - learnt something completely new. I see the value in script params now but it's adding complexity.
Thanks for the link!
Seems that the error is coming from some crap code in an NS PS module that is linked too from the UserEventScript
I'm not going to modify the module code, I'll come up with something in the usereventscript to mitigate calling the module function with bad data. I assume that's the best way to go as NS PS may come back one day and not expect their modules to have been edited.
a
@Craig Just as an additional note I’ve had great results using the current script parameters in Mass Updates. Having a selectable script parameter allowed me to just make one script that updated the specific fields, and gave my users controls to set those fields to what they wanted.
c
Yeah I can see the benefit - there's a lot of code here that does that based on a value in a custom record but I can see the value of doing that with a script param.
e
I use them to determine what search will be used for getInputData in M/R's so that different criteria can be selected without having to modify any code.
c
I feel like I just found a hammer and now everything is a nail - I'm going to find ways to use this 🙂
😂 1