PanelManager and the Form's Error Provider Behavior


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
No problem Smile
fansanitis
fansanitis
StrataFrame Novice (53 reputation)StrataFrame Novice (53 reputation)StrataFrame Novice (53 reputation)StrataFrame Novice (53 reputation)StrataFrame Novice (53 reputation)StrataFrame Novice (53 reputation)StrataFrame Novice (53 reputation)StrataFrame Novice (53 reputation)StrataFrame Novice (53 reputation)
Group: Forum Members
Posts: 45, Visits: 103
I added calls to the InfoBox class after all unsuccessful BO.Save() method calls.  Thanks!!
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
Is there something else I'm missing?

The red InfoBox that appears is plumbed in through the BaseForm logic...I beleive.  So if you are calling the MyBO.Save() instead, then this may not appear.  However, if you call the forms Save() then you will probably see the message.  In any case, you can show this message yourself very easily as all of the values are given to you int he BusinessRulesChecked event.  So if you have he need, you can show this window yourself very easily by just calling the InfoBox class directly.

fansanitis
fansanitis
StrataFrame Novice (53 reputation)StrataFrame Novice (53 reputation)StrataFrame Novice (53 reputation)StrataFrame Novice (53 reputation)StrataFrame Novice (53 reputation)StrataFrame Novice (53 reputation)StrataFrame Novice (53 reputation)StrataFrame Novice (53 reputation)StrataFrame Novice (53 reputation)
Group: Forum Members
Posts: 45, Visits: 103
I have a standard SF form that has a PanelManager and ThemedLinkMenu control.  The ThemedLinkMenu control is used to navigate to different Pages on the PanelManager.  Each Page has its own custom toolstrip for editing, saving, navigation, etc.  When a save is performed, the ErrorProvider pops up an icon (with associated tooltip) next to each field in error but the Broken Rules Infobox does not appear.  The form's AutoShowBrokenRulesAlert is set to True.  Is there something else I'm missing?

THanks!!

Greg McGuffey
Greg McGuffey
Strategic Support Team Member (3.3K reputation)
Group: Forum Members
Posts: 2K, Visits: 6.6K
I'm assuming that by "error provider" you mean the SF broken rules error provider. The error provider doesn't know or care if the control is visible. The default behavior of the SF broken rules is to show an info message (red message that scrolls up from lower left corner of form) indicating that there are broken rules and setup the error provider (if you configured it that way) to show the icon and setting the error message that is shown as the tooltip on that icon. It also clears the errors when they are fixed (I believe during a save or undo).



If you want to show a summary of those broken rules or activate the panel with the first broken rule, you'll need to handle the BusinessRulesChecked event on the BO and manage that yourself.
fansanitis
fansanitis
StrataFrame Novice (53 reputation)StrataFrame Novice (53 reputation)StrataFrame Novice (53 reputation)StrataFrame Novice (53 reputation)StrataFrame Novice (53 reputation)StrataFrame Novice (53 reputation)StrataFrame Novice (53 reputation)StrataFrame Novice (53 reputation)StrataFrame Novice (53 reputation)
Group: Forum Members
Posts: 45, Visits: 103
I have table with a large number of columns that I'm NOT allowed to modify.  The columns can be categorized by patient, procedure, diagnosis, etc.  Rather than try and jam all the columns onto a single maintenance form I wanted to create a form that uses a panel manager with a page for each "category" of data.  I'd use a themedlinkmenu for navigation between the category page.  Before I design the form I have some questions on how the error provider will behave. 

When a Save is performed, how will the error provider which is defined at the form level react?  Will it show only the errors on the current (visible) page?  What if there are no errors on the current page but there are on other non-visible pages?

Thanks!!

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