
SubformAsModalDialogue
Hi there,
I have implemented a subform as the example in the subject. It works fine, but I need to refine the result. I use as "menu" a form with buttons: each button is a specific function user can activate. I use the modal dialogue to let user input values, when required to execute the function e.g. when I have to create a report and I need starting - end dates. Now buttons underneath the dialogue "window" are active: how could I "deactivate" them all together?
Regards.
A form in DFW is a object hierarchy so if you disable the parent object, all children will be disabled too.
The main parent object for a Record is the first Record1 so if you disable that you will disable all controls in the form.
SetState("Record1",2) or in 8.5 SetState("Record1","Disable") (both will work in 8.5).
This will disable your Subform (dialogue too) so you need to enable that again by doing
SetState("SubFormName",3)