- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-04-2018 12:57 PM
Hi Community,
My use case requires me to build a custom UI page with a field that can act like a reference field in for all the table names in servicenow. Is this possible?, if it is kindly point me in the right direction. Any help is much appreciated.
Thanks!
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-05-2018 07:42 AM
Hi Jim,
Thank you very much for taking time to respond, this solution worked but this is not a look up for the name of tables rather it is a look up for users.
<g2:ui_reference id="user_picker"
name="table_picker"
table="sys_db_object"
columns_search="false"
order_by="name"
show_popup="false" />
I made the following changes to get the list of tables.
Thanks for the solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-04-2018 01:05 PM
The "g2:ui_reference" tag should help you out:
<g2:ui_reference id="user_picker"
name="user_picker"
table="sys_user"
columns_search="false"
order_by="name"
show_popup="false" />
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-05-2018 07:42 AM
Hi Jim,
Thank you very much for taking time to respond, this solution worked but this is not a look up for the name of tables rather it is a look up for users.
<g2:ui_reference id="user_picker"
name="table_picker"
table="sys_db_object"
columns_search="false"
order_by="name"
show_popup="false" />
I made the following changes to get the list of tables.
Thanks for the solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-05-2018 07:49 AM
Right. I was not thinking of the table name when I responded, just the tag and elements you would need to get the reference field.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-05-2018 10:11 AM
Thanks Jim, you have gave me 99.99% of the answer, all I had to do was point it to the table.