Skip to main content
Solved

How filter tasks in Project task selector

  • Dec 4, 2023 4:22 PM UTC
  • 1 reply
  • 167 views
  • Translate All

param2022
Jr Varsity II
Forum|alt.badge.img

I am trying to filter the results of ProjectTaskAttribute for one particular screen. I need to show only tasks which contain a particular string.

 

Any leads on how that can be achieved.

 

Thanks

Best answer by aaghaei

create a graph extension for the business logic you want to modify

create a CacheAttached event handler for the task field you want to filter and add a PXRestrictor attribute to the field properties using MergeMethod = Merge

add the desired condition to the restrictor attribute Where parameter.

 

you can find plenty of examples in the community or Acumatica’s source code

View original

1 reply

aaghaei
Captain II
Forum|alt.badge.img+11
  • Captain II
  • Answer
  • Dec 5, 2023 2:01 AM UTC

create a graph extension for the business logic you want to modify

create a CacheAttached event handler for the task field you want to filter and add a PXRestrictor attribute to the field properties using MergeMethod = Merge

add the desired condition to the restrictor attribute Where parameter.

 

you can find plenty of examples in the community or Acumatica’s source code

Translate