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

Thank you for response , <g:evaluate>

 

implemented glide model render in UI action .

please refer below UI action and UI page scripts .

UI action:

/Client-side 'onclick' function

function showTest {

    var gm = new GlideModal("test",false,1000);

   

    var getIDB = new GlideAjax('test1');

    getIDB.addParam('sysparm_name', 'test2');

    getIDB.addParam('sysparm_userEmpNumber', g_form.getValue('employee_number'));

    getIDB.getXML(getIDBUserDetails);

    function getIDBUserDetails(response) {

        //hideSpinner();

        var answer = response.responseXML.documentElement.getAttribute("answer");

        console.log("Adding"+answer);

       gm.setTitle("User Details");

       gm.setPreference('answerJson1', answer );

       gm.render();

}

   

}

 

UI page HTML:

<?xml version="1.0" encoding="utf-8" ?>

<j:jelly trim="false" xmlns:j="jelly:core" xmlns:g="glide" xmlns:j2="null" xmlns:g2="null">

<g:ui_form>

<g:evaluate>

var idbResponse="${RP.getWindowProperties().get('answerJson1')}"

idbResponse =  new GlideStringUtil().unEscapeHTML(idbResponse);

</g:evaluate>

<table width="10">

<tbody>

<tr id="description_row" valign="top">

<td colspan="2">$[idbResponse]</td>

</tr>

 

</tbody>

</table>

</g:ui_form>

</j:jelly>

GlideFather
Tera Patron

Hi @Rajyalakshmi,
please refer to Mark's comment (the accepted solution) in this thread:
https://www.servicenow.com/community/developer-forum/glidedialogform-and-glidedialogwindow-in-ui-act...

It could be helpful source

———
/* If my response wasn’t a total disaster ↙️ drop a Kudos or Accept as Solution ↘️ Cheers! */