What is difference between GlideDialogForm,GlideDialogWindow,Glide Model

Rajyalakshmi
Tera Contributor

Hi Team,

 

i need to implement related link on the user profile when Servicenow support team clicks on the related link it should show results(servicenow  ,AAD integration current user details   )AAD integration result in window .

1 ACCEPTED SOLUTION

@Rajyalakshmi 

I already informed please use GlideAjax and get the response and then pass it to modal.

RESTMessageV2 is server side and GlideModal can be invoked only from client side.

If my response helped please mark it correct and close the thread so that it benefits future readers.

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader

View solution in original post

11 REPLIES 11

Ankur Bawiskar
Tera Patron
Tera Patron

@Rajyalakshmi 

GlideModal is latest class and is replacement to GlideDialogWindow and GlideWindow. It has lot more features when it comes to UI pages rendering compared to older class.

GlideModal - Client 

GlideDialogWindow is deprecated and not recommended to use.

If my response helped please mark it correct and close the thread so that it benefits future readers.

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader

@Rajyalakshmi 

Thank you for marking my response as helpful.

If my response helped please mark it correct and close the thread so that it benefits future readers.

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader

Hi @Ankur Bawiskar ,

 

Thank you quick help ,and saving my time to switch GlideModal class.

Could you please help me how i can get GlideModal class preferences (which i set in the UI action script) in the UI page ?

 

For example i have below script in my UI action.

 

var gm = new GlideModal('IDB User Response');//UI page -IDB User Response
//Sets the dialog title
gm.setTitle('IDB User Response');

 try {
 var r = new sn_ws.RESTMessageV2('XYZ''get');
 var response = r.execute();
 var responseBody = response.getBody();
 var httpStatus = response.getStatusCode();
}
catch(ex) {
 var message = ex.message;
}  
gm.setPreference('responseBody', responseBody);
gm.setPreference('httpStatus', httpStatus);

//Opens the dialog
gm.render();
}
 

Hi @Ankur Bawiskar ,

 

Thank you quick help ,and saving my time to switch GlideModal class.

Could you please help me how i can get GlideModal class preferences (which i set in the UI action script) in the UI page ?

 

For example i have below script in my UI action.

 

var gm = new GlideModal('IDB User Response');//UI page -IDB User Response
//Sets the dialog title
gm.setTitle('IDB User Response');

 try {
 var r = new sn_ws.RESTMessageV2('XYZ', 'get');
 var response = r.execute();
 var responseBody = response.getBody();
 var httpStatus = response.getStatusCode();
}
catch(ex) {
 var message = ex.message;
}  
gm.setPreference('responseBody', responseBody);
gm.setPreference('httpStatus', httpStatus);

//Opens the dialog
gm.render();
}