Mobile app : Scripted action items

Varun30
Giga Expert

I am trying to use the fields from input screen in an action item script. I copied the same script in documentation (function WriteBackAction(parm_input, parm_variable, actionResult)

{

//other write-back inputs and variables here

actionResult.addAttachment("attach", "incident", gr.getUniqueValue()); //where "attach" is the input name from above screenshot, and "incident" is the table name

})(parm_input, parm_variable, actionResult);

 

But I get an error on my system logs - 

com.glide.script.RhinoEcmaError: "parm_input" is not defined. sys_sg_write_back_action_item.198ec43547d751903c2261f3636d431f : Line(1) column(0) ==> 1: (function WriteBackAction(parm_input, parm_variable, actionResult) {

2:

3: //other write-back inputs and variables here

4:

 

The input screen does not launch. Any help on this is much appreciated.

1 REPLY 1

Hemant19
Kilo Guru

Can You Share Screen Shot.