How to create a Glide list field in ui page

sandhyahr
Tera Contributor

hi all,

I have   creating sites from (uipage) content management ,in that i have a reference filed   ,which i need to change it to glidelist field ,.?

1 ACCEPTED SOLUTION

Ankur Bawiskar
Tera Patron
Tera Patron

Hi Sandhya,



You can use below code snippet in UI Page HTML Section.



<g:macro_invoke macro= "lightweight_glide_list" id="change_subsystem" name="change_subsystem" control_name="myListCollector" reference="core_company" can_write="true" />



It looks like this. You can remove the selected value from glide list as well.


ui-page.JPG



It invokes macro for glide list which is provided by servicenow.


reference attribute specifies to which table it should refer to. Here it refers to "core_company" table



Mark Correct if this solves your issue and also hit Like and Helpful if you find my response worthy based on the impact.


Thanks


Ankur


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

View solution in original post

8 REPLIES 8

Ankur Bawiskar
Tera Patron
Tera Patron

Hi Sandhya,



You can use below code snippet in UI Page HTML Section.



<g:macro_invoke macro= "lightweight_glide_list" id="change_subsystem" name="change_subsystem" control_name="myListCollector" reference="core_company" can_write="true" />



It looks like this. You can remove the selected value from glide list as well.


ui-page.JPG



It invokes macro for glide list which is provided by servicenow.


reference attribute specifies to which table it should refer to. Here it refers to "core_company" table



Mark Correct if this solves your issue and also hit Like and Helpful if you find my response worthy based on the impact.


Thanks


Ankur


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

Hi Ankur Bawiskar



Thank you so much for the reply ,script which you have posted exactly suites my requirements ,but can you tell me how to change   those icons in the glidelist,i want to change those icons into normal standard looking icons,


find_real_file.png


Hi Sandhya,



Can you open a new thread with this question "how to change icons for glide list".


Also mention the new question's url in this reply so that i can comment on the new question


Also if possible please mark my earlier answer as helpful.


In mean time I can try searching for the icon question.



Thanks


Ankur


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

Hi   ankur


i have posted question as a new post ,this is the link "how to change icons for glide list in ui page. " ..