- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-12-2021 01:20 AM
Hi,
I've created an "Add" button for a related list in Agent Workspace that display all Locations.
However I need only to display Locations type Country.
How can I achive that?
Thanks.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-14-2021 03:00 AM
Hi Nico,
you have to create an extension point.
First enter the name of the new extension point at Action Attribute "extensionPoint"
Then go to module "Scripted Extension Points" and open "global.RelatedListItemCandidateFilter":
At related links section click on "Create Implementation" to create a Script Include which will represent the extension:
You can name the Script Include as you like. Important are
- Accessible from = "All application Scopes"
- check at line 9 for "MY_EXTENSION"
- business logic for filtering the given records for selection
After opening selection dialog again you can see that the country column is prefiltered:
Kind regards
Maik
If my answer replied your question please mark appropriate response as correct so that the question will appear as resolved for other users who may have a similar question in the future.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-14-2021 03:00 AM
Hi Nico,
you have to create an extension point.
First enter the name of the new extension point at Action Attribute "extensionPoint"
Then go to module "Scripted Extension Points" and open "global.RelatedListItemCandidateFilter":
At related links section click on "Create Implementation" to create a Script Include which will represent the extension:
You can name the Script Include as you like. Important are
- Accessible from = "All application Scopes"
- check at line 9 for "MY_EXTENSION"
- business logic for filtering the given records for selection
After opening selection dialog again you can see that the country column is prefiltered:
Kind regards
Maik
If my answer replied your question please mark appropriate response as correct so that the question will appear as resolved for other users who may have a similar question in the future.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-15-2021 09:51 PM
Hi
Did my reply answer your question?
If so, please mark the appropriate response as "correct" so that the question will appear as resolved for other users who may have a similar question in the future.
If not, please tell me what you are still missing!
Many thanks & kind regards
Maik
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-17-2021 03:28 AM
Yeah, It worked. Thank you very much!
Just one more question. I have several related lists that need filtering. Can I handle them all from the same Script, or do I need to create one for each list?
Best regards.
Nicolás
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-17-2021 03:41 AM
The behavior is bound to the Action itself and the respective record has more configurations than just the script. If all configurations fit your needs for all related lists then it is okay, and you have no additional work.
Kind regards
Maik