>
> I see what your code is doing. So here's what I have done:
> In the form's afterInitAll() definition:
> def afterInitAll(self):
> self.requery()
>
> # populate the author grid
> authorBizobj = self.getBizobj('author')
> # taking advantage of RegID's
> self.grdAuthorLst.DatSet =
> authorBizobj.getDataSet(fdls=('authorname',)) self.grdAuthorLst.refresh()
>
> The author bizobj is correctly defined! I did clean-up the Grid DataSource
> and the Column DataField properties in the designer (as per docs indication
> it's only possible to set the DataSet property if the DataSource prop is
> not set).
>
> But this is not working.
> BTW. I was trying to set the properties via designer supposing that the
> Grid's DataSource and the Column's DataField would be enough to get the
> grid populated.
>
> Thanks,
> Miguel
I'm sorry I mis-understood what you were doing. I thought you had manually
added a grid (hand coded a grid object). It seems you are working with the
ClassDesigner and have added a grid object. My suggestion should still work
but is normally used to manually control the data for the grid.
What you should be doing is setting the DataSource of the grid to the correct
bizobj.
grid.DataSource = mybizobj.DataSource.
John Fabiani
_______________________________________________
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/dabo-users/[EMAIL PROTECTED]