You’re going to want to do a combination of rules and events.
- Bind your button to a field (it doesn’t have to be real DB column)
- Add a row-update widget to your button click event that sets something like
TransView.Disable
to true. Add a second one after your function call that will set it back to false.
- Create a rule that checks the state of
TransView.Disable
and disable the column you bound your button to if true. This will auto reverse if false