StrataFrame Forum

Broken Rules Question

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

By Tim Dol - 10/10/2007

I have a business object that has a few standard broken rules. I then programatically add some extra broken rules depending on the form.  This works fine however with child forms the broken rules remain intact on the calling form so I need to remove the additional rules after I'm done with my child form.

Is there a way to restore the default broken rules or do I have to manually remove them from the broken rules collection.

Thanks

Tim

By Tim Dol - 10/10/2007

Sorry... I meant required fields and not broken rules...It's been a long day.

Tim

By StrataFrame Team - 10/11/2007

There isn't anything that will revert to the original set of broken rules, but you could create a new business object of that type, clear the required fields from the BO you're working with and then copy over the rules from the new, temp business object.  Then, just dispose of that temp business object and your other will be back to its original required fields.