Hi everyone,
I have created a custom Card page with a subform, and both are editable. The subform currently shows the standard New and Delete action buttons.
Here’s what I want to achieve:
Currently, I’ve added validation in the OnInsert(), OnModify(), and OnDelete() triggers based on the Card page’s Activate Boolean.
However, since the InsertAllowed and ModifyAllowed properties only accept true or false values (and not variables), I don’t think this can be controlled dynamically through AL code.
Is there a recommended approach or best practice to handle this kind of behavior?
Thanks in advance!