Want to display list collector based on company
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-22-2023 12:20 AM
Hi Team,
I have 2 variables requested for(reference) and services(list collector). I want to match user company from requested for with Services table we have field with list collector companies. If any service contains requested for user company, it should show under services(list collector). Trying with script include and reference qualifier. please suggest.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-22-2023 12:28 AM
@Ash41 In your reference qualifier
javascript: 'company='+current.requested_for.company;
Here I have assumed that you have a company field on the Services table which you are referring on the list collector field.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-22-2023 12:41 AM
Actually we had this it works fine, but we have another condition as well to combine upon this.
Service table we have company groups which contains companies as well we need to match that as well.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-22-2023 12:47 AM
For that you will have to create a script include and based on the query return the sys_ids of the companies.
In the reference qualifier you can write.
javascript: 'sys_idIN'+ new <name of your script include>.<method name in script include>();
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-22-2023 01:13 AM
I need a script include for users company based services to popluate
