StrataFrame Forum
Home      Members   Calendar   Who's On
Welcome Guest ( Login | Register )
      



Broken Rules ProblemExpand / Collapse
Author
Message
Posted 01/25/2007 9:26:42 AM
StrataFrame User

StrataFrame UserStrataFrame UserStrataFrame UserStrataFrame UserStrataFrame UserStrataFrame UserStrataFrame UserStrataFrame User

Group: StrataFrame Users
Last Login: 2 days ago @ 12:38:37 PM
Posts: 308, Visits: 1,229
I have a application which uses a child form to edit BO fields.  On the business object I have added some broken rules logic.  When I save the business object, I can see the broken rules logic is executing properly, and it does add the broken rule, however the application doesn't navigate to the broken rule.  (Warnings do not appear on the screen). 

The 'AutoNavigateToFirstBrokenRule' property on both business objects = True and the data is NOT saved.  Any Ideas's... 

I have other applications working fine using the same logic, but for some reason this particular program is not stopping to show broken rules.

Thanks

Tim

Post #6212
Posted 01/25/2007 10:09:25 AM


StrataFrame Developer

StrataFrame Developer

Group: StrataFrame Developers
Last Login: Yesterday @ 10:38:53 PM
Posts: 2,683, Visits: 1,883
It's most likely a configuration issue, or an issue with the IsChildForm property being set on the child form.  When we use the ChildFormDialog, it is generally because we want to be able to edit a child record and return from the form without saving the record.  However, you want to test the business logic before the form closes.  So, we generally call the CheckRulesOnRow() method and test the return value to return from the form. 

So, if you manually call CheckRulesOnRow(), does the error provider display the broken rules?


www.bungie.net
Post #6218
Posted 01/25/2007 10:34:43 AM
StrataFrame User

StrataFrame UserStrataFrame UserStrataFrame UserStrataFrame UserStrataFrame UserStrataFrame UserStrataFrame UserStrataFrame User

Group: StrataFrame Users
Last Login: 2 days ago @ 12:38:37 PM
Posts: 308, Visits: 1,229
Yes, if I manually check CheckRulesOnRow(True), the broken rules do display beside the appropriate field, but I do not get the error information window, but if I just call Save(), I do not get the broken rules.


Tim

Post #6227
Posted 01/25/2007 10:57:38 AM


StrataFrame Developer

StrataFrame Developer

Group: StrataFrame Developers
Last Login: Yesterday @ 4:58:13 AM
Posts: 4,379, Visits: 4,421
At the moment, this is correct.  There was an issue a while back with multiple handlers be managed and when this change was made the CheckRulesOnCurrentRow stopped showing the red error window.  This is something that is on the "to-look-at" list.
Post #6231
« 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:38am

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.