Hi all,
i want to enable/disbale a button on a from based on Enum value. but activate method was already used on the form. can someone please provide some information how to achieve this?
Hi all,
i want to enable/disbale a button on a from based on Enum value. but activate method was already used on the form. can someone please provide some information how to achieve this?
hi,
you can always use form datasource active method for this logic and if you want to use this logic based on some specific condition then you can write your logic at the end of this method, means after all system's logic write your logic.
Hi,
Maybe you need merge the logic to the same method. Hope this can help you.
Active method is used by other condition on the form.
What do you mean by already used?
If the button's enable/disable property is tied to a different condition, you need to review the code and combine the conditions.
Hi Nara Sheshu,
where is this enum stored? Is it in the table that is shown on the form? If yes, then indeed the active method of the form data source is the correct place for triggering your code.
What do you mean by "activate method was already used on the form"?
Quite often there's a method called "updateDesign" on the form, and this method is called from the active method of the form data source. I recommend to do this - then the code is easy to read and maintain, and you don't clutter the active method with a lot of code.
André Arnaud de Cal...
294,261
Super User 2025 Season 1
Martin Dráb
233,009
Most Valuable Professional
nmaenpaa
101,158
Moderator