Child BO Broken Rules not being checked or even fired on Parent BO save event.
 
Home My Account Forum Try It! Buy It!
About Contact Us Site Map
StrataFrame Forum
Home      Members   Calendar   Who's On
Welcome Guest ( Login | Register )
      



Child BO Broken Rules not being checked or...Expand / Collapse
Author
Message
Posted 02/27/2008 11:31:45 AM


StrataFrame Beginner

StrataFrame BeginnerStrataFrame BeginnerStrataFrame BeginnerStrataFrame BeginnerStrataFrame BeginnerStrataFrame BeginnerStrataFrame BeginnerStrataFrame Beginner

Group: StrataFrame Users
Last Login: 05/02/2008 10:42:28 AM
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
Post #14571
Posted 02/27/2008 11:56:26 AM


StrataFrame Developer

StrataFrame Developer

Group: StrataFrame Developers
Last Login: Yesterday @ 9:36:54 PM
Posts: 4,200, Visits: 4,251
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.

Post #14573
Posted 02/27/2008 12:23:44 PM


StrataFrame Beginner

StrataFrame BeginnerStrataFrame BeginnerStrataFrame BeginnerStrataFrame BeginnerStrataFrame BeginnerStrataFrame BeginnerStrataFrame BeginnerStrataFrame Beginner

Group: StrataFrame Users
Last Login: 05/02/2008 10:42:28 AM
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
Post #14574
« Prev Topic | Next Topic »


Reading This TopicExpand / Collapse
Active Users: 0 (0 guests, 0 members, 0 anonymous members)
No members currently viewing this topic.
Forum Moderators: Ben Chase, Trent L. Taylor, Steve L. Taylor

PermissionsExpand / Collapse

All times are GMT -6:00, Time now is 1:20am

Powered By InstantForum.NET v4.1.4 © 2008
Execution: 0.125. 10 queries. Compression Enabled.
Site Map - Home - My Account - Forum - About Us - Contact Us - Try It - Buy It

Microsoft, Visual Studio, and the Visual Studio logo are trademarks or registered trademarks of Microsoft Corporation in the United States and/or other countries.