On Jun 5, 2007, at 10:57 AM, Dabo Demo wrote:
> In my MainForm class I have below - should work for you
> def createBizobjs(self):
> self.Application.addConnectFile
> ("DeanConnection.cnxml")
> # This call will actually create the connection if it
> hasn't already
> # been made. If it has, it returns the existing
> connection, so that
> # multiple connections aren't used up.
> self.conn =
> self.Application.getConnectionByName("DeanConn")
>
> Now I can use "self.conn" for my business as in
> publicagpoptrsBizobj = PoBizobj.PublicagpoptrsBizobj(self.conn)
> self.addBizobj(publicagpoptrsBizobj)
There is no need for 'self.conn'. The form already has a Connection
property that is used for this purpose. It would be better to write:
self.Connection = self.Application.getConnectionByName("DeanConn")
-- Ed Leafe
-- http://leafe.com
-- http://dabodev.com
_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://leafe.com/mailman/listinfo/dabo-dev
Searchable Archives: http://leafe.com/archives/search/dabo-dev
This message: http://leafe.com/archives/byMID/dabo-dev/[EMAIL PROTECTED]