Does brokenrulesalert work with wizardcontrol?


Author
Message
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
me.bo.CheckRulesOnRow(True). I used the designer to create the form.  Any suggestions?

We actually had another thread going on this very same topic...this logic has not changed in the SF framework, though you can add this functionaity very well.

The red InfoBox window is not tied into the BO, but rather the BaseForm.  If you were to call the form Save() then you would see the red error window.  However, the CheckRulesOnCurrentRow does not fire this.  It does, as you have already noticed, tie into the ErrorProvider.  This is by design.  However, we give you everything that you need to show this yourself through the BusinessRulesChecked event.  You will see that the event args give you all of the broken rule logic and count so that you could then call the ErrorBox method yourself through the InfoBox class.

Here is the other thread with this discussion: http://forum.strataframe.net/FindPost13658.aspx

Andria Jensen
Andria Jensen
StrataFrame User (406 reputation)StrataFrame User (406 reputation)StrataFrame User (406 reputation)StrataFrame User (406 reputation)StrataFrame User (406 reputation)StrataFrame User (406 reputation)StrataFrame User (406 reputation)StrataFrame User (406 reputation)StrataFrame User (406 reputation)
Group: Forum Members
Posts: 336, Visits: 497
I ran into this today as well.  I have a form which I want to do error checking manually, but still have the bound controls pop their error icons.  I call CheckRulesOnRow, and it returns correctly but I can't figure out how to make the icons come up for the controls which are in error.
Marcel Heitlager
Marcel Heitlager
StrataFrame User (202 reputation)StrataFrame User (202 reputation)StrataFrame User (202 reputation)StrataFrame User (202 reputation)StrataFrame User (202 reputation)StrataFrame User (202 reputation)StrataFrame User (202 reputation)StrataFrame User (202 reputation)StrataFrame User (202 reputation)
Group: StrataFrame Users
Posts: 84, Visits: 835
I get the errorprovider to point out the lines needing fixing, but no matter what I've done the error message box doesn't pop up.  I check errors manually when the next button is clicked using me.bo.CheckRulesOnRow(True). I used the designer to create the form.  Any suggestions?

Marcel

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