StrataFrame Forum

Child BO Broken Rules not being checked or even fired on Parent BO save event.

http://forum.strataframe.net/Topic14571.aspx

By Alex M. Lana - 2/27/2008

Greetings,



I have tried to workaround this issue with no success.



Situation:

1 Maintenance Form

-- 1 Master BO

----2 or more Child BOs



Symptom:

The rules on child BOs are not being checked.



Example Case:

-- ProjectBO

---- TasksBO (TasksBO.prj_pk <-> ProjectBO.prj_pk)

------ SubTasksBO (SubTasksBO.prj_pk <-> TasksBO.prj_pk)



On debug the check rules event on child BO is not being executed. I even tried to force it using a workaround:

private void ProjectBO_CheckRulesOnCurrentRow(CheckRulesEventArgs e)

{

TasksBO.CheckRulesOnRow(true);

}


The child BO rule is executed, but does not break saving routine and does not navigate to the broken rules' fileds and put red arrows.





This issue is critical for us since we are using several master/detail forms with lots of Parent/Child BO relationships.

Thanks,



Alex Lana
By Trent L. Taylor - 2/27/2008

Alex,

We have some forms that may go as 4 tiers deep and have a dozen or more BOs in a single dialog, so this is a very basic and core function of the framework.  If you can send me a quick sample that reproduces your behavior, I would be more than happy to take a look at it to see where you code is failing.  This would probably be MUCH faster than bantering back and forth on the forum since this is such a basic function of the framework.

Trying to check the rules of another BO through a parent event could be your issue.  This is not how the framework was designed.  And I could see this being a potential point of failure depending on the TaskBO declaration and instance location.  If it is an internal property to the parent, then you would probably be OK...but if this is an external instance, then you could have some other issues.

By Alex M. Lana - 2/27/2008

Thanks Trent.

Angela will be posting a quick sample here reproducing the issue using the Northwind DB.

We are using SF -> Binding Source -> XtraGrid



Alex Lana