Action Behavior Only if this condition is true not working

I'm tryng to show the action button ADD only when the Status column is equal to "1-Ativo".

SteelbrasDev_0-1720553962087.png

When I click on the test button, it even shows Yes or No on the correct rows, but when I access the application, the button simply does not appear in any case.

SteelbrasDev_1-1720554014942.png

SteelbrasDev_2-1720554034600.png

 

 


All tables are enabled to add, update and delete. And the slices have the actions.

Can someone help me?

Solved Solved
0 10 997
1 ACCEPTED SOLUTION

Ahh ok. This is a common ask. The solution is to create a slice on that child table that is read-only. You then create a new VC on the parent table that is a copy of the existing "Related..." REF_ROWS VC, except that the new one should point to the slice instead of the base table. Make sure to change it in both the column config as well as the REF_ROWS expression. You then set opposing show_if conditions for the 2 VCs so that the original shows when [status]<>"1 Ativo", and the new one shows when [status]="1 ativo".

View solution in original post

10 REPLIES 10
Top Labels in this Space