- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-26-2020 02:57 AM
Hello Community,
I have some specific filters that I need to apply to these 3 workflows:
1. New Computer
2. New Peripheral
3. New Consumable
All 3 of these workflows interact with Assets on the RITM table. On RITM form there is a related list called "Assets" where we tie the assets to the RITMs.
When I click on the Asset RL and click Edit to assign an asset to this RITM I want some specific filters to appear there:
I know how to make all of the filters completely hidden but that's not what I am trying to achieve. I want the top 2 filters to be set as "read only" so no-one can edit them, and the bottom one I only want the Asset Manager to be able to change it.
Anyone knows how I can achieve this?
Thanks in advance.
Solved! Go to Solution.
- Labels:
-
User Interface (UI)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-30-2020 02:44 PM
If you restrict the filter to roles, the filter will be read only for everyone except users with that specified role.
If you want to completely restrict the filter, the way I did it in this specific case was went into the "Edit..." UI Action for the Asset related list and added "uri.set('jvar_no_filter', 'true');" to the script of it. This hid the whole filter from the Slushbucket window, and then I just used a fixed query ex.
uri.set('sysparm_query',model_category=' + scriptInclude + '^stockroom.sys_idIN' + scriptInclude2 + '^install_status=6^substatus=available');

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-26-2020 09:41 AM
You can restrict list filter with fixed queries.
In your case, you can build fixed query for asset related list with state and substate fields.
Check below for fixed queries.
Regards,
Sachin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-27-2020 12:16 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-26-2020 10:41 AM
Hi,
Please go through below link it will help you.
Regards
Nikhil
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-30-2020 02:44 PM
If you restrict the filter to roles, the filter will be read only for everyone except users with that specified role.
If you want to completely restrict the filter, the way I did it in this specific case was went into the "Edit..." UI Action for the Asset related list and added "uri.set('jvar_no_filter', 'true');" to the script of it. This hid the whole filter from the Slushbucket window, and then I just used a fixed query ex.
uri.set('sysparm_query',model_category=' + scriptInclude + '^stockroom.sys_idIN' + scriptInclude2 + '^install_status=6^substatus=available');