On Thursday, June 09, 2011 09:51:23 am Paul McNett wrote:
> 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.
Ok so each control on a panel (on a mainform which has 10 views/bizobjs) knows
about the DataSource and DataField because I assigned the values. Now I have
a button that opens a dialog. How does the dialog know what biz object I
need? The controls -> on panel -> on a form could use any of the
bizobj/views.
BTW I understand Nate's question to be
I have a form with multi-panels and each panel uses different bizobjs (the
controls on the panel use different DataSource and DataFields). I also assume
'views' are SQL views.
>
> 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
>
[excessive quoting removed by server]
_______________________________________________
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]