Add conditions to list displayed by Related List Action in Agent Workspace

Nico8
Kilo Contributor

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.

find_real_file.png

How can I achive that?

Thanks.

 

1 ACCEPTED SOLUTION

Maik Skoddow
Tera Patron
Tera Patron

Hi Nico,

you have to create an extension point.

First enter the name of the new extension point at Action Attribute "extensionPoint"

find_real_file.png

 

Then go to module "Scripted Extension Points" and open "global.RelatedListItemCandidateFilter":

find_real_file.png

 

At related links section click on "Create Implementation" to create a Script Include which will represent the extension:

find_real_file.png

 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:

find_real_file.png

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.

View solution in original post

7 REPLIES 7

Maik Skoddow
Tera Patron
Tera Patron

Hi Nico,

you have to create an extension point.

First enter the name of the new extension point at Action Attribute "extensionPoint"

find_real_file.png

 

Then go to module "Scripted Extension Points" and open "global.RelatedListItemCandidateFilter":

find_real_file.png

 

At related links section click on "Create Implementation" to create a Script Include which will represent the extension:

find_real_file.png

 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:

find_real_file.png

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.

Hi @Nico 

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

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

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