how to make reports record button disabled?

how to make reports record button disabled?

Greetings

i'm looking for a way to make buttons of records that has certain status disabled, something similar to what the creator's quotation management does, but i can't find the scripts that achieve this purpose there..how can i do this?