How to open a KB article in view mode in a new Glide dialog popup window?

mitzaka
Mega Guru

Hi SNC,

 

I did some customization on my Knowledge article form - I added an approver field, which is a reference field to the User table. Next to the field, I would like to add an icon, which when clicked should open a new Glide Dialog window in which I want to show only a specific KB article, but in View mode, as the regular end-user would see it.

 

I managed to make this open in a separate tab, but I prefer to have it open in a glide window on the same screen.

I checke this guru post: http://www.servicenowguru.com/system-ui/glidedialogwindow_popup_record_list/

However, I cannot figure out how to show in the glide window only the KB article as a result.

Any suggestions on that?

1 ACCEPTED SOLUTION

You can create a UI macro, which calls a UI page as per that link. Then you goto your reference field's dictionary and add this UI macro name in the ref_contribution


View solution in original post

7 REPLIES 7

harikrish_v
Mega Guru

Hi Dimitar,



I think what you are looking for is in here:- http://www.servicenowguru.com/system-ui/glidedialogwindow-terms-conditions-acceptance-page/



Thanks & Regards,


Hari


Interesting, so in my case if I want this to be triggered off a field icon, then what I should do - create a UI macro and have my KB article somewhere inside the new glide window code? From this article I get the feeling that I have to create a UI script and UI page, but I cannot fully understand how I will put this together to make it an attribute of a field.


Brad Tilton
ServiceNow Employee
ServiceNow Employee

In order to get an icon to show up next to the field you can take a look at the user_show_incidents ui macro and how is it called on the caller field on incident. You could copy that to do what you're looking for.


Reference Fields - ServiceNow Wiki



With that icon you can generate an onclick event will load a glidedialogwindow containing your ui page and pass it your search parameter.


You can create a UI macro, which calls a UI page as per that link. Then you goto your reference field's dictionary and add this UI macro name in the ref_contribution