On Wednesday, June 08, 2011 05:05:46 pm Paul McNett wrote:
> On 6/8/11 3:59 PM, John Fabiani wrote:
> > I'm sorry I don't understand how this works?  How does the  dialog know
> > what "self.Form" is exactly?
> 
> self.Form is defined in dFormMixin, which dDialog and dForm derive from.
> self.Form is defined as the next parent that derives from dFormMixin.
> 
> > When creating a dialog the parent can be passed but I
> > can open a dialog from a dialog.   Then the parent would be a dialog.
> 
> So if a control on the second dialog called 'self.Form.getBizobj()', the
> method resolution would look like:
> 
> second_dialog.getBizobj() -> first_dialog.getBizobj() -> form.getBizobj().
> 
> If there isn't a containing form at all, then an error will get raised
> which is the same situation as what we had before.
> 
> 
> Paul

Wow I did not realize the Dialog could find the Form.  

This is a good thing!

Johnf

_______________________________________________
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