General information
Title:
Child Form / Rule Events
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
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only