The problem is with the context of the hide calculation
the delete button can't see all the records this way it only sees the currently active record
so you have two solutions
-either you make a calculation field in the parent table that counts the YES' on the child table, and use that field in the hide calculation
CalcX > 0 for the inactive button and CalcX = 0 for the acive
-or if you have no parent table, use a summery field or SQL to fetch and count the YES' and continue as the first method
can you send me something I can see?
I can't use it, however, thanks, man
because I have two buttons when I mark two records and I un mark one of them I see my red button and this is wrong because I have one marked record
when I mark one record I must see White button when all records are un mark
I must see the red button.
now I mark two records and I un mark one of them, so I have one mark record
but I see the red button and this is false I must see White button.
do you want I translate that layout to English then send it to you?
No need to translate just send me the file I'll fix it, because I have English filemaker version the data is irrelevant.
1 of 1 people found this helpful
I fixed it, this is what I did
I added MarkCount field in the table Moshtari and set it as a summery to count Mark
and adjusted the hide calculation accordingly