logo

NJP

Filter records in lightweight_glide_list UI Macro

Import · Sep 05, 2022 · article

There are often use cases where you want to use a glide_list in your UI pages.

From the UI page, we may call the built-in out of the box UI macro "lightweight_glide_list," which is available.

You can apply standard queries/filters to view restricted records from the glide list.

For this you need to specify the query as below

- specify your query inside the control_name attribute in below syntax

Output: I have filtered active users belonging to company=ACME South America. On sys_user table list it shows 37 records.

In the UI page when the UI macro for glide list is selected it shows the correct 37 user records.

image

UI Macro

image

Thanks for reading the blog and do provide your inputs/suggestions if any.

Hope you find this article helpful. Don’t forget to Mark it Helpful, Bookmark.Thanks,

Ankur Bawiskar

ServiceNow MVP 2022,2021,2020,2019,2018

Developer MVP 2021

My Articles & Blogs

View original source

https://www.servicenow.com/community/developer-blog/filter-records-in-lightweight-glide-list-ui-macro/ba-p/2277569