Welcome to Community Week 2025! Join us to learn, connect, and be recognized as we celebrate the spirit of Community and the power of AI. Get the details  

Error MessageAbstractAjaxProcessor undefined, maybe missing global qualifier

Aswartha
Mega Contributor

Hi Team,

i have developed on Application, in that i have one requirement i.e.. i have created 3 fields on  the form

1)Select Term

2)Long Description

3)Short Description

if we select Term in the Form then, Long Description & short Description fields will be automatically populate.

for that i have developed Script include & Glide Ajax but It showing error like Error MessageAbstractAjaxProcessor undefined, maybe missing global qualifier

Script Include.

var Term_details = Class.create();
Term_details.prototype = Object.extendsObject(AbstractAjaxProcessor, {

data: function()
{
var a =[];
var b = this.getParameter('sysparm_asset');

var gr = new GlideRecord('x_445906_your_data_igc_terms');
gr.addQuery('sys_id', b);
gr.query();
while(gr.next())
{
a.push(gr.long_description);
a.push(gr.short_description);
return a.toString();
}
},

type: 'Term_details'
});

GLIDE AJAX

 

function onChange(control, oldValue, newValue, isLoading) {
if (isLoading || newValue == '') {
return;
}

var x = g_form.getValue('select_term');

alert(x);


var ga = new GlideAjax('Term_details');
ga.addParam('sysparm_name', 'data');
ga.addParam('sysparm_asset', x);
ga.getXML(callback);

function callback(response) {
var a = response.responseXML.documentElement.getAttribute("answer");
var b = a.split(',');
alert(b);

g_form.setValue('long_description', b[0]);
g_form.setValue('short_description', b[1]);
}

}

 

 

please let me know if anyone knows.

Thank you,

Aswartha

 

 

 

 

 

 

1 ACCEPTED SOLUTION

you are missing global.

 

var Term_details = Class.create();
Term_details.prototype = Object.extendsObject(global.AbstractAjaxProcessor, {

data: function()
{
var a =[];
var b = this.getParameter('sysparm_asset');

var gr = new GlideRecord('x_445906_your_data_igc_terms');
gr.addQuery('sys_id', b);
gr.query();
while(gr.next())
{
a.push(gr.long_description);
a.push(gr.short_description);
return a.toString();
}
},

type: 'Term_details'
});

View solution in original post

4 REPLIES 4

Tanaji Patil
Tera Guru

Instead of just the script include name in following line

var ga = new GlideAjax('Term_details');

could you please try the API name of your script include. Should look like this-

var ga = new GlideAjax('x_xxxx_xx.Term_details');

 

-Tanaji

Please mark reply correct/helpful if applicable

Hi Tanaji,

i am tried with that tanaji, but again i am facing same issue.

Thank you.

you are missing global.

 

var Term_details = Class.create();
Term_details.prototype = Object.extendsObject(global.AbstractAjaxProcessor, {

data: function()
{
var a =[];
var b = this.getParameter('sysparm_asset');

var gr = new GlideRecord('x_445906_your_data_igc_terms');
gr.addQuery('sys_id', b);
gr.query();
while(gr.next())
{
a.push(gr.long_description);
a.push(gr.short_description);
return a.toString();
}
},

type: 'Term_details'
});

Tq Harsha, it's working.