On Monday 13 October 2008 03:16:30 pm johnf wrote:
> On Monday 13 October 2008 12:47:55 pm Ed Leafe wrote:
> > On Oct 13, 2008, at 3:21 PM, johnf wrote:
> > > I'd like to call a form from a form without using the menu. A sort
> > > of Drill
> > > Down. I can do it but there are issues - i.e. save dialog displays
> > > the name
> > > of the calling form (which does not happen when using the menu to
> > > open the
> > > form).
> > >
> > > def OpenLot(self,evt):
> > > import LotsMfrm
> > > Lotfrm =LotsMfrm.MainForm()
> > > #Lotfrm.txtProLotID.Value =
> > > self.aglotsBizobj.getFieldVal('clot')
> > > Lotfrm.directLotLk(self.aglotsBizobj.getFieldVal('clot'))
> > > Lotfrm.show()
> > >
> > > So is this correct way I should be calling my DrillDown?
> >
> > Menus only call event handlers, so using a menu should have no effect
> > at all.
> >
> > Since this is a detail form, you'd probably want to pass the calling
> > form as the parent. Am I correct that you named your form class
> > 'MainForm' within the LotsMfrm module? Then the call would be:
> >
> > Lotfrm =LotsMfrm.MainForm(self)
> >
> > If you're still having differences, it's not the use of a menu; it
> > would be the menu handler code. Please post that if you need further
> > help.
> >
> > -- Ed Leafe
>
> I tried your suggestion but the "Lotfrm" still uses the setting from the
> below line of code:
> if __name__ == "__main__":
> app.setAppInfo("appName", "Bonanza Accounting - Species Maintenance")
> I'm opening 'Lotfrm' from the species form.
>
> What I don't understand is if I comment out the above line the dialog will
> use "Dabo Application" as the caption. It does not make sense - the above
> line is in the 'if' statement. The app should not know about the 'appName'
> - right?
>
> So I changed it to
> app.setAppInfo("appName", "Bonanza Accounting")
> which works as a work around - for now.
Forget what I just said - I had a running app and was not aware of it while I
was doing my testing.
--
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/[EMAIL PROTECTED]