Ed Leafe wrote:
> On Nov 17, 2008, at 3:57 PM, Bob Sysero llc Dev wrote:
>
>   
>> What I want to do is store all the labels in groups in a SQLite
>> Database. When my application starts up my "main menuButton Window" I
>> want to have my menuManager read the database and create a dictionary
>> called menuButtonDetail that will have a list for each button
>> information [ID,GroupID,Caption,Color,DoAction,,]. I will also need a
>> dictionary called BusinessSelected and QuickAction that will contain a
>> list for the button order for BusinessSelection Button1 - Button4,  
>> with
>> a link to the menuButtonDetail ID, HideButton T/F. The QuickAction
>> Buttons will contain a the same list. All these dictionary will stay  
>> in
>> memory for the life of the main menuButton Window.
>>
>> I think what I need to do is use a Business Object that will contain  
>> my
>> menuButtonManager that will change the Buttons Dynamically on the Form
>> that was created using the ClassDesigner. The Business Object will not
>> directly read that database and change the Buttons on the form. What  
>> the
>> Business Object will do is load my Dictionaries and the Business  
>> Object
>> menuButtonManager will handle the Buttons on the form.
>>
>> From what I read and heard on the tutorials this is one of the
>> functions that the Business Object is design to do. I have no idea how
>> to do this with the ClassDesigner and the Business Object. First of  
>> all
>> am I going the right direction?
>>     
>
>       The logic to get the various groupings would be retrieved via a  
> business object, but the UI should do all the "changing" of UI  
> elements such as buttons. So let's say the user clicked the 'Customer'  
> button. That button should have code like this in its onHit method:
>
> self.Form.setMode("Customer")
>
>       The form will have a generic setMode() method that will accept a mode  
> name such as 'Time Clock' or 'Customer', and update your QuickButtons.  
> To do that, I'd create a method in the bizobj that would accept that  
> parameter, run the query to get the label info, etc., from the  
> database that matches that mode name, and return a list of button  
> names to the form. The form would then be responsible for setting the  
> Captions to these values.
>
>       I hope that gives you an idea on how to approach this. Let me know if  
> you need further help.
>
>
> -- Ed Leafe
That gives me a good starting point and I need to read more about the 
Business Objects and find how to interface the Business Object to the 
ClassDesigner Form that I created.

Thank you

Bob




_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://leafe.com/mailman/listinfo/dabo-users
Searchable Archives: http://leafe.com/archives/search/dabo-users
This message: http://leafe.com/archives/byMID/[EMAIL PROTECTED]

Reply via email to