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


Author
Message
Alex M. Lana
Alex M. Lana
StrataFrame Beginner (40 reputation)StrataFrame Beginner (40 reputation)StrataFrame Beginner (40 reputation)StrataFrame Beginner (40 reputation)StrataFrame Beginner (40 reputation)StrataFrame Beginner (40 reputation)StrataFrame Beginner (40 reputation)StrataFrame Beginner (40 reputation)StrataFrame Beginner (40 reputation)
Group: Forum Members
Posts: 20, Visits: 264
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
Trent Taylor
Trent Taylor
StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)
Group: StrataFrame Developers
Posts: 6.6K, Visits: 6.9K
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.

Alex M. Lana
Alex M. Lana
StrataFrame Beginner (40 reputation)StrataFrame Beginner (40 reputation)StrataFrame Beginner (40 reputation)StrataFrame Beginner (40 reputation)StrataFrame Beginner (40 reputation)StrataFrame Beginner (40 reputation)StrataFrame Beginner (40 reputation)StrataFrame Beginner (40 reputation)StrataFrame Beginner (40 reputation)
Group: Forum Members
Posts: 20, Visits: 264
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
GO

Merge Selected

Merge into selected topic...



Merge into merge target...



Merge into a specific topic ID...




Similar Topics

Reading This Topic

Login

Explore
Messages
Mentions
Search