StrataFrame Forum

Tabcontrol - Broken Rule Indicators

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

By Geoff Hirst - 5/26/2008

Guys,

Is there a general method you recommend when using a tab control to select the tab page that has controls that are indicating broken business rules?

Due to screen real-estate issues I have had to use a tab control on a form and it's possible for the user to enter data on several tabs, then save, but then they might see the red notification box about rules being broken, but not know which tab to look at.

thanks in advance

Geoff Hirst

By Trent L. Taylor - 5/26/2008

You might take a look at this post I responded to the other day to give you an idea of how we address this.  We allow our end-users to view all broken rules...then when they click the link it will automatically navigate to the field in question regardless of page tabs, etc.

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

By Geoff Hirst - 5/27/2008

Thanks Trent,

I now have a routine that pretty much does exactly what I want, even though I am iterating through the tablpages and the controls on each tabpage. It works fine, whether it's the most efficient is another matter.

What I do like though is in your example, is your interface for the broken rules viewer, you don't happen to have an example lying around that I can pillage do you? BigGrin

Thanks for the help anyhow,

best

Geoff

By Trent L. Taylor - 5/28/2008

Actually it is a pretty simple things to create.

  1. Just create a user control that has a link label, standard label, and an image on it.  The line at the bottom is a ThemedGroupBox with no title, ThemeSupport set to Colors Only, and then the style set to HeaderLineOnly. 
  2. In the constructor of the user control class to show the broken rule, supply all of the information that you need (including the broken rule itself so you can return it or deal with it if the user clicks the link.
  3. Then create a dialog, throw on a FlowLayoutPanel, and write a method to enumerate your broken rules and add them to the FlowLayoutPanel
  4. And that is pretty much it
By Guillermo Vilas - 9/23/2008

Hello Geoff and Trent,

I´m facing this problem too, Is there a way to cycle through collection of ChildBO´s broken rules to find the offending one and then populating the Custom BrokenRules Dialog?



Thanks for your help in advance



Regards

Guillermo
By Geoff Hirst - 9/24/2008

Hi Guillermo,

Now I created a form, that would work for forms with or without a tab control (or in my case the developer express XtraTabControl).

I am sure my solution will be not as elegant as what Trent discusses, but it works and looks ok. I am more than happy to send you the form and calling code, so that you may at least get an idea of how to progress. Please see my profile for contact details.

thanks

Geoff.

By Guillermo Vilas - 9/24/2008

Thanks Geoff,

I´ll contact you