Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Business rules for a child object
Message
General information
Forum:
Visual FoxPro
Category:
The Mere Mortals Framework
Miscellaneous
Thread ID:
00707119
Message ID:
00707313
Views:
28
Hi Bob.

You can always fire the business rules yourself calling the order item business object's CheckRules method then use the GetCount method to return the number of rules that were flagged. This is normally what you would want to do anyway since your child object would be row buffered and you wouldn't want to save any of them until the entire order is actually saved.

HTH

Dan

>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
Reply
Map
View

Click here to load this message in the networking platform