
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-12-2019 01:18 PM
I have a requirement to only show locations based on the affected users company. How can I achieve this? I have a location filed and an affected user filed. Location is a reference to cmn_location and affected user is a reference to sys_user.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-12-2019 01:31 PM
BTW, Location has a company reference out of the box so something similar should work:
javascript:'companyCONTAINS' + current.variables.u_affected_user.company

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-12-2019 01:27 PM
With the assumption that the location has the company tied to it, you can add the follow ref qual on the variable:
javascript:'u_companyCONTAINS' + current.variables.u_affected_user.company
where u_company is whatever field is the company field on your location table.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-12-2019 01:31 PM
BTW, Location has a company reference out of the box so something similar should work:
javascript:'companyCONTAINS' + current.variables.u_affected_user.company
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-12-2019 02:03 PM
wow I was over analyzing this in my head. Much simpler that I thought it would be.