Module arguments with script include

ejaram
Kilo Expert

Hello,

I'm trying to make a couple of modules accept a script include in the arguments for a List of Records to set a reference qualifier. The issue I have is I cannot seem to get the arguments to set the reference qualifier.

When I put in the script include call: javascript:u_getSelfService(argument) it will not return anything. It is a quite simple script include below:

function u_getSelfService(getACT) {

  var actIS = "active=" + getACT;

  var filterString = "";

  filterString += actIS + "^sys_class_name=sc_req_item"; //Req Item

  gs.log("FilterString is: " + filterString);

  return filterString;

}

Any ideas? Are arguments not capable of using a script include? I tried using a background script to make sure the script include is returning what it is supposed to, and it is returning what it is supposed to. After running the list of records, it is not even outputting the log statement which makes me think it is not even running the function.

The script include is client callable also.

6 REPLIES 6

Artemis15
Kilo Guru

Hi Evan,



Could you please paste the log output, so that I can help you.



-


Cheers.


Akash Rajput


Laurie Marlowe1
Kilo Sage

Try the following:



javascript:new u_getSelfService("true");




Thanks,




Laurie