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





_______________________________________________
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]

Reply via email to