Tabcontrol - Broken Rule Indicators


Author
Message
Guillermo Vilas
Guillermo Vilas
StrataFrame User (192 reputation)StrataFrame User (192 reputation)StrataFrame User (192 reputation)StrataFrame User (192 reputation)StrataFrame User (192 reputation)StrataFrame User (192 reputation)StrataFrame User (192 reputation)StrataFrame User (192 reputation)StrataFrame User (192 reputation)
Group: StrataFrame Users
Posts: 112, Visits: 2.3K
Thanks Geoff,

I´ll contact you

------------------------------------------------------------------------
I would like to change the world, but they don´t give me the source code.
MS Windows 7 Ultimate 64-Bit
Intel(R) Core(TM)2 Quad CPU Q9300 2.50 GHz
6.00 GB of RAM, NVIDIA GeForce 9800 GT

MacBook Pro i5 OSX Lion
Geoff Hirst
Geoff Hirst
StrataFrame User (219 reputation)StrataFrame User (219 reputation)StrataFrame User (219 reputation)StrataFrame User (219 reputation)StrataFrame User (219 reputation)StrataFrame User (219 reputation)StrataFrame User (219 reputation)StrataFrame User (219 reputation)StrataFrame User (219 reputation)
Group: Forum Members
Posts: 123, Visits: 3.5K
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.

Guillermo Vilas
Guillermo Vilas
StrataFrame User (192 reputation)StrataFrame User (192 reputation)StrataFrame User (192 reputation)StrataFrame User (192 reputation)StrataFrame User (192 reputation)StrataFrame User (192 reputation)StrataFrame User (192 reputation)StrataFrame User (192 reputation)StrataFrame User (192 reputation)
Group: StrataFrame Users
Posts: 112, Visits: 2.3K
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

------------------------------------------------------------------------
I would like to change the world, but they don´t give me the source code.
MS Windows 7 Ultimate 64-Bit
Intel(R) Core(TM)2 Quad CPU Q9300 2.50 GHz
6.00 GB of RAM, NVIDIA GeForce 9800 GT

MacBook Pro i5 OSX Lion
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
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

Geoff Hirst
Geoff Hirst
StrataFrame User (219 reputation)StrataFrame User (219 reputation)StrataFrame User (219 reputation)StrataFrame User (219 reputation)StrataFrame User (219 reputation)StrataFrame User (219 reputation)StrataFrame User (219 reputation)StrataFrame User (219 reputation)StrataFrame User (219 reputation)
Group: Forum Members
Posts: 123, Visits: 3.5K
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

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
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

Geoff Hirst
Geoff Hirst
StrataFrame User (219 reputation)StrataFrame User (219 reputation)StrataFrame User (219 reputation)StrataFrame User (219 reputation)StrataFrame User (219 reputation)StrataFrame User (219 reputation)StrataFrame User (219 reputation)StrataFrame User (219 reputation)StrataFrame User (219 reputation)
Group: Forum Members
Posts: 123, Visits: 3.5K
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

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