On 6/9/11 9:38 AM, John Fabiani wrote:
> How does that help you with your question.  It would seem that you still need
> to call the dialog with the correct SQL view.  I would think in creating a
> generic dialog for your different panels you would need to pass the correct
> bizobj view to the dialog or some way to determine the calling panel.  Or
> maybe:
>
> if self.Form.somePanelName:
>    bizObj = self.Form.Bizobj

A panel or dialog that you create is going to know the DataSource of the bizobj 
it 
wants to connect to, so all you need to do is set DataSource and DataField on 
each 
control in that panel or dialog to the DataSource name ("customers", for 
example) and 
field name.

Prior to this commit, this wouldn't work out of the box if you happened to be 
in a 
dialog because dabo's references to self.Form.getBizobj() to resolve that 
DataSource 
to a bizobj reference wouldn't work because self.Form in that case resolved to 
the 
dialog which didn't have a getBizobj() method.

Paul

_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://leafe.com/mailman/listinfo/dabo-dev
Searchable Archives: http://leafe.com/archives/search/dabo-dev
This message: http://leafe.com/archives/byMID/[email protected]

Reply via email to