On Oct 4, 2009, at 4:47 PM, Emanuele Gesuato wrote:
> I'm sorry but i haven't understood a particular.
>
> In my dForm i use the dbConnection for instatiating the bizObj.
> See here http://pastebin.com/m36f0228a in add_business method.
>
> If i use your way to load the form the form gets loaded but in the
> add_business the dbConnection isn't found because it is not yet
> initialized. I see that the db connections gets initialized in
> app.setup during _initDB but i have to set MainFormClass *before*
> app.setup.
> So i don't know how to manage to resolve these dependancies ..
When you create the bizobj in your form, just do:
cxn = self.Application.getConnectionByName("my_connection")
biz = MyBizobjClass(cxn)
-- Ed Leafe
_______________________________________________
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]