- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-12-2024 07:00 AM
Hey All,
I have been stuck with a problem for a few days now and have decided to reach out to the community for some guidance. Here it is:
In the Issues form (sn_grc_issue), I created two Reference fields:
1. u_entity: Entity table - sn_grc_profile.
2. u_risks: Risk Register table - sn_risk_risk.
Required behaviour: I need the Risks list to be filtered based on the Entity selected in the 'u_entity' field.
Here is what I have done so far, but it doesn't work:
Reference qualifier:
Business Rule:
BR Script:
Also tried a Client Script:
Code:
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-12-2024 07:53 AM
A reference qualifier is the way to go. 'profile' is the name of the column on the risk table that is a reference to the entity table, and current. refers to the field on the current form/table that is a reference to the profile table so your reference qualifier should instead be
"profile=" + current.u_entity
following the javascript colon (:)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-12-2024 07:53 AM
A reference qualifier is the way to go. 'profile' is the name of the column on the risk table that is a reference to the entity table, and current. refers to the field on the current form/table that is a reference to the profile table so your reference qualifier should instead be
"profile=" + current.u_entity
following the javascript colon (:)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-17-2024 05:04 AM
Thank you Brad. I very much overcomplicated a simple solution.
Here is what I came up with that worked as well: 'profile.applies_to=' +current.u_department_organization;