Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Child Form / Rule Events
Message
From
09/01/2003 10:30:33
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
CodeMine
Title:
Child Form / Rule Events
Miscellaneous
Thread ID:
00739796
Message ID:
00739796
Views:
47
I have a child form based on frmDataChildCustom. On that form, I have a pageframe with 3 pages. The first page of which has a checkbox and several fields that can either be edited or not depending on the state of the checkbox.

The parent form, based on frmDataManagerFormCustom, has a cmDataManager object and a cmRule object on it.

In the checkbox AfterChange event, I am simply doing a thisform.refresh() like in the Pizza example. I wanted to put the code to enable or disable those fields in the rule classes IsEditAllowedRule() event. I am finding that this event is not firing in this case. I also tried to put the code in the rule class IsEditAllowed() event. It's not firing either. The only way I am able to get the correct funtionality is to put the code in the cmDataManager's IsEditAllowed() event.

As I am trying to seperate the data rules totally from the UI interface rules, I thought that the appropriate place would be in the rule events since I am working on strictly data editing. One field controling wether or not another can be edited.

I guess my real question is, why aren't these rule events firing? Am I wrong in my assumption that they should be or do I have to do something special in code to make them fire?

Thanks for any help.
Next
Reply
Map
View

Click here to load this message in the networking platform