Need help on UI Page - Client Script
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-09-2024 02:15 AM
In ServiceNow Loaner Asset order - HAM, Whenever we click on Reclaim Button, One Dialogue window will appear and ask for details about the Asset return.
In the "Stockroom" field, as per the OOTB it is showing all the Stockroom available.
But, as per my requirement, I have to limit the Stockrooms based upon the Requested_for Country.
If Requested_for Country = Internationa/india, Then what ever stockrooms available in India, Those Stockroom should only visible when I click on the Magnifier glass of "Stockroom".
How can we limit that.
UI Action Script:
UI Page Script:
The above code executed till here[ g_form.addInfoMessage("This is Ok3"); ]
Im confused on stocklookup.setAttributes().
Any help in this particular area will be appreciated or any alternative solution also acceptable.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-09-2024 04:13 AM
What is the code behind that Stockroom field? Are you using <g:ui_reference> tag for it?
Blog: https://sys.properties | Telegram: https://t.me/sys_properties | LinkedIn: https://www.linkedin.com/in/slava-savitsky/
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-09-2024 09:17 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-24-2024 06:21 AM
In the code of your UI Page, you can pass an additional "query" parameter to the "ui_reference" macro to specify a filter for the reference lookup list:
<g:ui_reference name="stockroom" id="stockroomId" table="alm_stockroom" query="location=LOCATION_SYS_ID" />
Blog: https://sys.properties | Telegram: https://t.me/sys_properties | LinkedIn: https://www.linkedin.com/in/slava-savitsky/