On Monday 23 April 2007 07:27, [EMAIL PROTECTED] wrote:
> I've tried to add the author grid from the dataenvironment. But the only
> available layout options are single record style! So discarding this
> approach I placed the grid myself, setting the DataSource property = author
> and the DataField property of the only column = authorname. But this
> doens't work either (note: I did create the an authorBizobj in the
> createBizobjs form method). I've followed the pattern that Dabo seems to
> have used in Page 1 book Grid. Although there's something I find strange:
> The name of the connection is "bookdb" and Dabo sets the DataSource
> property to "book" both in the ClassDesigner and in the BookBizobj it
> created!?
The connection name is normally different than the DataSource.
You have created the grid and set the DataSource and DataFields. Now there is
one more step. You have to get the data from the bizobj. The easy way is to
do the following:
myBizobj = self.Form.getBizobj('tableName')
The above statement will get the bizobj for the tableName. Where tableName is
the name of your table (Authors I think)
Next you have to populate the grid dataset;
GridName.DataSet = myBizobj.getDataSet()
then you might want to refresh the grid
GridName.refresh()
That should provide a start.
--
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]