Ed Leafe wrote: > On Nov 17, 2008, at 7:51 PM, Bob Sysero llc Dev wrote: > > >> 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. >> > > > The ones that are created in the form's createBizobjs() method are a > good start, but what I do is take the class definition out and put it > in a separate .py file in the application's biz directory. So if the > class is named 'ButtonBizobj', I create a file named 'ButtonBizobj.py' > in the biz directory, and put that code in there. Edit the __init__.py > file of the biz directory to add the line 'from ButtonBizobj import > ButtonBizobj' so that it is visible in the biz module. > > Now in createBizobjs(), you'll have to change the reference to the > bizobj class. Originally the class was defined there, so the code > instantiates the class directly: buttonBizobj = > ButtonBizobj(self.Connection). You'll have to change that to: > > buttonBizobj = self.Application.biz.ButtonBizobj(self.Connection) > > Any of the classes in your app's biz module will be available within > your app using the 'self.Application.biz' namespace. If you're doing > this while in the Class Designer, you'll have to exit and re-launch > the app, since the modules are read at app startup. > > Hope that helps! > > > -- Ed Leafe That is a greate help in pointing me in the right direction.
Thank you Ed 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]
