- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-23-2018 09:56 AM
We have a value on change requests that is hidden. I wanted to know if there is a easy way to identify all the values on that table without going into each UI Policy to see what actions are below it? TIA
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-23-2018 10:17 AM
Hi Wendy,
I believe the table you need is sys_ui_policy_action (sys_ui_policy_action.list in navigator)
Something like one of these would return all UI Policy Actions on the change_request table.
{your instance}/nav_to.do?uri=/sys_ui_policy_action_list.do%3Fsysparm_query%3Dui_policy.table%253Dchange_request%26sysparm_first_row%3D1%26sysparm_view%3D
or
{your instance}/nav_to.do?uri=/sys_ui_policy_action_list.do%3Fsysparm_first_row%3D1%26sysparm_query%3Dtable%253Dchange_request%26sysparm_view%3D
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-23-2018 10:40 AM
How do you know UI Policy is Hiding the value?
some times we can hide using Client scripts as well...
Thanks,
Rajashekhar Mushke
Rising star : 2022 - 2024
Community Leader -2018
Connect me on LinkedIn : Rajashekhar Mushke
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-23-2018 10:42 AM
Any way you can use UI Policy Debugger, Please follow below procedure:
Debugging UI Policies
There are different strategies for debugging UI Policy Scripts, UI Policy Actions, and UI Policy conditions.
Debugging UI Policy Scripts
Debug UI Policy Scripts using the same strategies discussed earlier in this module:
- JavaScript Log and jslog()
- Field Watcher
- Try/Catch
- Debugging tools built into web browsers (browser dependent)
Debugging UI Policy Actions
Use the Field Watcher to debug UI Policy Actions. Note that the Short description field value appears in the log.
Debugging UI Policy Conditions
Follow these steps to enable UI Policy debugging:
- In the main ServiceNow browser window, use the Application Navigator to open System Diagnostics > Session Debug > Debug UI Policies. This modules executes a script which turns on logging for UI Policies.
- Open the JavaScript Log and Field Watcher.
- Open the form of interest and force the UI Policy you are debugging to execute by changing field values as necessary to meet the UI Policy condition.
- Examine the debugging information in the JavaScript Log.
Note these points in the debugging information:
- The Short description value for the UI Policy and table name.
- The statement of the condition(s) and result of evaluating that line of the condition.
- The overall value returned by the condition.
- UI Policy Actions setting field attributes.
When you are done debugging, use the Application Navigator to open System Diagnostics > Session Debug > Disable UI Policies Debug.
Please Refer:
Thanks,
Rajashekhar Mushke
Rising star : 2022 - 2024
Community Leader -2018
Connect me on LinkedIn : Rajashekhar Mushke
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-26-2018 06:06 AM
Hello Peterson,
Any update on this?
Would you mind please close this thread, then only this will be helpful for other community user.
thanks in advance.....!!!
If I have answered your question, please mark my response as correct so that others with the same question in the future can find it quickly and that it gets removed from the Unanswered list.
If you are viewing this from the community inbox you will not see the correct answer button. If so, please review How to Mark Answers Correct From Inbox View
Thanks,
Rajashekhar Mushke
Rising star : 2022 - 2024
Community Leader -2018
Connect me on LinkedIn : Rajashekhar Mushke
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-26-2018 06:09 AM
It was not answered that was for "Catalog Policy Actions" not ones on Change Requests. Sorry it has not been answered.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-26-2018 06:11 AM
are you able to debug UI Policy?
Thanks,
Rajashekhar Mushke
Rising star : 2022 - 2024
Community Leader -2018
Connect me on LinkedIn : Rajashekhar Mushke