Get sysparm value from URL in a list control
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-12-2017 12:35 AM
I have a list control for that I want to customize so if a specific sysparm(sysparm_nonew) appears in the url, I want to hide the new button.
But I can't find how get get the sysparm_nonew from the url. I tried "gs.action.getGlideURI().getMap().get('sysparm_nonew')" but will only return null no matter if I got sysparm_nonew=true eller not in the URL.
Any ideas?
//Göran
- Labels:
-
Scripting and Coding
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-13-2017 06:12 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-13-2017 03:08 PM
Thanks,
But that only for related lists
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-10-2020 12:54 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-18-2023 02:54 AM
I found the easiest way to do this by referencing to all comments on this post.
Scenario: I want the New Button to be visible every list except where sysparm_element = u_venue_name where u_venue_name is the backend value of my field which is a reference field to cmn_location_table
1. Identify the parameter from the reference list URL :
For ex: sysparm_element = u_venue_name in my case
2. Configure the list control for the same by clicking on column
3. The Omit new button and Omit new condition work in a cohesive manner:
RP is OOTB utility.
Please mark this helpful if this resolves your issue.