Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Business rules for a child object
Message
From
02/10/2002 19:06:40
Jason Mesches
Ocean Systems Engineering Corporation
Carlsbad, California, United States
 
General information
Forum:
Visual FoxPro
Category:
The Mere Mortals Framework
Miscellaneous
Thread ID:
00707119
Message ID:
00707157
Views:
19
Bob,

Do you have the Order Item BizObj's cBizRules property set to your business rules class? If so, it should be firing when the OK button is pushed.

From what you're describing, it sounds as if you have the Order BizObj pointing to the rules class instead of the Order Item BizObj.

Hope that helps,
---J

>I have a classic order entry form using MMF. I have an order business object and an order item business object which is a child object of the order object. I have a business rule defined for the order item business object which checks for proper quantity in stock for the order item.
>
>I have an items tab on the order form which uses the clistobjedit class so I can add multiple line items per order.
>
>However, it appears the business rule for the order item doesn't fire when I add the item, but when I save the parent object.
>
>How can I get the the business rule for the item to fire when the 'OK' button is pressed on the clistobjedit form that adds or edits the line item??
>
>Thanks in advance for any help.
>
>
>Bob F.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform