On Oct 4, 2009, at 12:37 PM, Emanuele Gesuato wrote:
> If i do as you write it works but i want do enable dbConnection when
> it start.
If the cnxml file is in the db directory, it will be read in. If your
form's bizobj uses that connection, it will automatically be opened.
> So i tried doing:
> app.setup()
> app.dbConnection = app.getConnectionByName('Connection_1')
> app.MainFormClass = app.ui.ListinoArticoli
> app.start()
>
> but in this way i got an empty form. Why ?
Because you set MainFormClass *after* the app had already been
launched (that's what setup() does; start() merely starts the UI event
loop). The recommended way is to pass the MainFormClass in the app
constructor:
app = dabo.dApp(MainFormClass=ui.ListinoAtricoli)
-- 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]