Trying to Customize the Inherent Assesment UI Page for Domain Separated
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-13-2023 02:14 AM
Hi Team,
Currently I am working on a requirement where customer wants to hide some fields on the OOTB UI Page (Name of the UI Page: advanced_assessment) like Qualitative Score, Qualitative weight and other fields. I knew this layout is generated through UI page (UI Page componenet is not domain separated ). As we are in domain separated instance, I cannot simply go and hide the below html section in UI page as it would impact other customer instance as well.
I am trying to hide based on the domain value adjusted with the current record. But I could not able to get current record sys id in the UI Page. Right now, OOTB they are not calling this UI page from any UI action. even if I use RP.getParameterValue('sys_id') it returns the UI page sysid and not the current advanced risk assessment record sysid.
Any idea is appreciated.
Thanks in Advance.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-13-2023 06:04 AM
I don't think you can pass value from UI macro to UI page
Approach I shared above i.e. to fetch URL in ui page inside g:evaluate tag you can get sysId
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-13-2023 11:27 PM
Hi @Ankur Bawiskar,
Could you please share me the hint to get the sys_id inside g:evaluate. I already tried the same but no luck and I am getting UI page sysid and not record sysid.
Thanks in advance.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-15-2023 08:49 AM
Hi Prakash
There is UI script "sn_risk_advanced.AdvancedAssessment" where the angular controller is defined in which we fetch data related to this assessment. In the same API you can get the domain value as well and set to angular scope. Once it it is set to angular scope you can use it in the UI page and hide the data accordingly using ng-show.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-15-2023 10:39 PM
Hi Satya,
I am not familiar with Angular. Could you please give me piece of code hint where and how to add.
Thanks.