I really need the Validation Rules for the child BO to work.

I really need the Validation Rules for the child BO to work.

Old forum URL: forums.lhotka.net/forums/t/2088.aspx


tseveryn posted on Saturday, January 06, 2007

Hi,

I need a little bit of help.

I have a parent object that has collection of children, therefore we are talking about 3 BOs:

             - parent root BO

            - child collection BO

            - child BO                   

 

Child collection is bound to the DataGridView on the form for the parent root BO. There’s ‘AddChild’ button on the form, that opens dialog box for adding brand new child.

 

I have implemented several Validation Rules for the child BO, however for some reason they’re NOT being activated.

 

Please note that child BO is NOT switchable BO, and does not point to any other root BO.

 

I really need the Validation Rules for the child BO to work. What do I miss?

 

Thank you very much,

TS

skagen00 replied on Saturday, January 06, 2007

When creating the new child, are you checking rules or anything to establish broken rules such as required fields, etc? To indicate that the child is not immediately valid?

xal replied on Sunday, January 07, 2007

It's very common to forget calling ValidationRules.CheckRules() inside the DataPortal_Create() method. See if that's the case.

Andrés

Copyright (c) Marimer LLC