On Sunday 11 February 2007 10:14, johnf wrote: > I have a class that inherits from dDialog. I want to use a dGrid to > display data dynamicly in the grid based on Bizobjects. dDialog does not > have "addBizobj" or any bizobject methods. To get around issue I pass the > Form as a parameter to the dDialog and use it to "addBizobj" > Biz = dabo.biz.dBizobj(conn) > Biz.DataSource = "public.arcust" > self.callForm.addBizobj(Biz) > > But when I attempt to set the dGrid.DataSource I get the following > (Where self.lkgrid = dGrid) > > self.lkgrid.DataSource = 'public.arcust' > File "/home/johnf/downloads/dabo/dabo/ui/uiwx/dGrid.py", line 3564, in > _setDat aSource > self.fillGrid(True) > File "/home/johnf/downloads/dabo/dabo/ui/uiwx/dGrid.py", line 1795, in > fillGri d > tbl.fillTable(force) > File "/home/johnf/downloads/dabo/dabo/ui/uiwx/dGrid.py", line 219, in > fillTabl e > bizobj = self.grid.getBizobj() > File "/home/johnf/downloads/dabo/dabo/ui/uiwx/dGrid.py", line 2668, in > getBizo bj > return self.Form.getBizobj(ds) > TypeError: getBizobj() takes exactly 1 argument (2 given) > > In this case ds = "public.arcust" > > What am I doing wrong?
OK I figured out a way. I'm using; self.lkgrid.DataSource = self.biz.getDataSet() But I still think I'll have trouble clearing the dGrid with self.lkgrid.DataSource = "" -- John Fabiani _______________________________________________ Post Messages to: [email protected] Subscription Maintenance: http://leafe.com/mailman/listinfo/dabo-dev
