New Posts New Posts RSS Feed: New user question
  FAQ FAQ  Forum Search   Calendar   Register Register  Login Login

New user question

 Post Reply Post Reply
Author
thamaluk View Drop Down
Newbie
Newbie
Avatar

Joined: 12-Oct-2007
Posts: 10
Post Options Post Options   Quote thamaluk Quote  Post ReplyReply Direct Link To This Post Topic: New user question
    Posted: 12-Oct-2007 at 10:22am
I am new to DevForce and CAB and have some questions about Cabana.
 
If I just look at the SalesOrder project I have the following questions
 
How does the search grid get populated ?
 
How/Where does the detail tabs get created ?
 
How/Where does the details grids get created and populated?
 
 
Back to Top
Linguinut View Drop Down
Senior Member
Senior Member
Avatar

Joined: 14-Jun-2007
Location: United States
Posts: 394
Post Options Post Options   Quote Linguinut Quote  Post ReplyReply Direct Link To This Post Posted: 12-Oct-2007 at 12:49pm
thamaluk!!  Welcome!!
 
It is great that others are getting involved with the DF/CAB project.
 
Take a look at the docs that come in the download...lots of great information in there.  It will get your feet wet.
 
Quick answers:
1)  The search grid is populated by a GridBuilder.  These are quite easy to construct.
 
2)  The controller creates the tab content.
 
3)  Detail grids are often simple views created to slip into the tab content from #2.
 
Hope this helps.
Bill
Back to Top
Bill Jensen View Drop Down
IdeaBlade
IdeaBlade
Avatar

Joined: 31-Jul-2007
Location: United States
Posts: 229
Post Options Post Options   Quote Bill Jensen Quote  Post ReplyReply Direct Link To This Post Posted: 15-Oct-2007 at 9:57am
Thanks, Bill for contributing to this.  Here are a few additional comments:
 
1.  If you're interested in CAB and Cabana (Dan and Bill, this goes for you too!), we highly recommend that you acquire and read David Platt's book, available here:
 
 
It's not as complete as we'd like but it's a good introduction and helps solidify many concepts.  It's only twenty bucks.
 
How does the search grid get populated ?
 
Bill is correct.  When the page controller creates the view, it gets the prototype GridBuilder from the GridBuilder service and passes it to the presenter in the view context.   
 
How/Where does the detail tabs get created ?
 
As Bill says, the page controller adds TabViewControllers for the views to appear on tabs to its TabViewControllers collection.  On Show(), the page controller's base class creates the tabs and uses the TabViewControllers to actually populate them with views.
 
How/Where does the details grids get created and populated?
 
By their TabViewControllers.  GridView's use custom tab view controllers (The DotNetGridView wizard generates one for you).  ControlView's can use GeneralTabViewController<viewtype>.
 
In keeping with CAB's runtime composition philosophy, composite views are always composed by code in controller classes.  Just remember that in Cabana, much of the processing has often been factored into base classes.
 
Bill J.
Back to Top
 Post Reply Post Reply

Forum Jump Forum Permissions View Drop Down