StrataFrame Forum

Broken Rule alert box does not show.

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

By George Nentidis - 1/29/2008

Here's another issue.

My form is a MicroFour.StrataFrame.UI.Windows.Forms.StandardForm.

The property AutoShowBrokenRulesAlert is (by default) true, but the alert does not show. I add the Broken rules in the BO, the little arrow of the build-in ErrorProvider shows fine, but the broken rules alert is not shown. I have searched the code and found that the property is only used by an event handler, when IsChildForm is true. Nevertheless, in your tutorial the alerts works fine, and the options are exactly the same as mine, and IsChildForm is false.

Any directions?

Thank you...

By StrataFrame Team - 1/30/2008

Try calling .Save() on the form instead of .Save() on the business object and see if that gets the alert to show.
By George Nentidis - 1/31/2008

This works. Thanks Ben.

By the way, how many database connections does the data layer need?

In my connection string I have enabled connection pooling with maximum pool size of 1, and I get an exception from time to time of a timeout, because the pool has no more available connections. What is a safe number?

Thank you again...

By StrataFrame Team - 1/31/2008

I think the default number of connections is fine... we've never had any problem with the defaults.  In fact, I don't think we ever even set any of the pooling settings within the connection string.  Off the top of my head, I would say that 3-5 would be plenty.  I've never seen one of our clients even use more than 4.