com.glide.script.RhinoEcmaError: "getTypeChoices" is not defined

rajeswari6
Tera Contributor

Script Include:


        getDisplayChoices:function(value) {
       
                    var result =[];
            var legal =new GlideRecord('custome_table');
            //legal.addEncodedQuery('u_segment=OH^u_active=true^u_type=Type');
       
            legal.addQuery('u_segment','=',value);
            // legal.addQuery('u_type','=','Type');
            legal.query();
            while(legal.next()) {
               result.push(legal.u_name);
               gs.log('Choices '+result);
    // result +=legal.u_name.toString();
       
            }
           return   'sys_idIN'+result;
     

    },
Reference Qualifer :javascript:new getTypeChoices().getDisplayChoices(current.variables.segment);
 
Scope of the catalog varaible and script include and reference qualifier is same. using the different scope for the catalog item. Still getting the error as not defined the getTypeChoices
2 REPLIES 2

Zach Koch
Giga Sage
Giga Sage

Unless you didn't copy your SI correctly, I don't see the getTypeChoices() method in your post, only getDisplayChoices()

If this information helped resolve your issue, please remember to mark response correct and thumbs up to help future community members on this information, thanks!

rajeswari6
Tera Contributor

Script name is correct still getting the error in the script. Even scope of the script includes and variables is same