Easy to Create, Easy to Change - Easy to use!


SubformAsModalDialogue


Started by George Washington
Search
You will need to Sign In to be able to add or comment on the forum!

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.

Written by George Washington 05/02/15 at 10:49:08

Re:SubformAsModalDialogue

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) 

Written by DataEase 05/02/15 at 11:23:26