Paul McNary wrote:
> Paul McNett wrote:
>> Just instantiate more than one instance of the bizobj, and work with
>> them independently. You'll have to give them unique DataSource
>> properties, however, so that dForm doesn't get confused. Example:
>>
>> {{{
>> from bizcats import BizCats
>>
>> class MyForm(dabo.ui.dForm):
>> def afterInit(self):
>> app = self.Application
>> self.bizCatsAll = BizCats(app.dbConnection, DataSource="cats_all")
>> self.bizCatsSome = BizCats(app.dbConnection, DataSource="cats_some")
>> self.addBizobj(self.bizCatsAll)
>> self.addBizobj(self.bizCatsSome)
>> }}}
>>
>> Now, set the DataSources of your 2 grids appropriately.
>>
>> Paul
>>
>
> So the DataSource name doesn't have to match the table name?
> They are just arbitrary descriptive names?
> I was under the assumption yhat they were the actual table name. The
> table(s) used are what is defined in the FROM statements in the biz object?
>
> Do I understand correctly now?
If you never fill in addField() and friends, or you do but don't give it
an explicit table name, Dabo will use DataSource to determine the
backend table name.
Don't let Dabo do that. :)
Paul
_______________________________________________
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]