Edit default filter on List control is not getting applied

Harish74
Tera Expert

Hi, I'm trying to put filter on the related records of Demand table that needs to be added for a program.

When the user clicks on Edit button, the default filter should auto-applied, which is not happening currently.

Harish74_0-1685264671770.pngHarish74_1-1685264753376.png

 

Harish74_2-1685264844184.png

If you observe the list control record, I used Active=True as filter, but when I click on Edit button it shows some OOB filter. Please help me to override/modify that filter.

 

4 REPLIES 4

Adith Sanjay
Mega Sage

Hi Harish74

It was a bit quite challenging and I was able to replicate & solve the issue. 

I have made the UI Action - edit (active - false) for dmn_demand table

image.png

then added the default filter in the table(sys_ui_related_list_entry) for dmn_demand as shown below
image.png

now reload the pm_program record and click the edit button in the related list of demandimage.png

Please hit the thumbs up button and mark as solution it would be helpful for me. Thanks a lot!

I updated the filter in the "Edit..." Ui action script itself. It worked.

what condition you added in script can you please tell

Community Alums
Not applicable

Hi @Radhika Goel 

if(parent.active==false){
answer = true; //Hide the button

}else answer=false; // Show the button