com.glide.script.RhinoEcmaError: "getTypeChoices" is not defined
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-13-2024 12:24 AM
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

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-13-2024 06:32 AM
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!
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-13-2024 11:20 PM
Script name is correct still getting the error in the script. Even scope of the script includes and variables is same