Hi Palle,

Thanks for your solution. 
You pointed out the problem.

> args.caller(element);
>  
> instead of :
>  
> args.caller(this);

Thanks very much and hope I'l be helpful in the
future, for all of you.

reg
Jesmond





--- Palle M�lgaard <[EMAIL PROTECTED]> wrote:

> Hi,
>  
> you must set the caller to the form instead of the
> button by using :
>  
> args.caller(element);
>  
> instead of :
>  
> args.caller(this);
>  
> In your clicked()-method.
> 
> Regards
> 
>       Palle
>     
>  
> 
> 
> ________________________________
> 
>       From: Jesmond Giordimaina
> [mailto:[EMAIL PROTECTED] 
>       Sent: 28. september 2004 13:32
>       To: [EMAIL PROTECTED]
>       Subject: Re: AW: [development-axapta] closing the
> caller form
>       
>       
>       Hi,
>       
>       thanks for fast reply.
>       But it's still telling "FormButtoncontrol Object
> does
>       not have method close". 
>       
>       The code that opens the second form is this:
>       
>       void clicked()
>       {
>       
>       Args args = new Args();
>       //Passing args to form
>       Form frm = new Form('ShowCustTableData');
>       FormRun formRun;
>       ;
>       
>       args.object(frm);
>       args.caller(this);
>       
>       formRun = classFactory.formRunClass(args);
>       formRun.init();
>       formRun.run();
>       formRun.wait();
>       }
>       
>       
>       
>       The code that tries to close the form (from the
> second
>       form) is : 
>       
>       void clicked()
>       {
>       Args args = new args();
>       FormRun frm;
>       ;
>       
>       frm = element.args().caller();
>       frm.close();
>       
>       }
>       
>       reg
>       Jesmond
>       
>       
>       
>       
>       
>       --- Matthias Schuster <[EMAIL PROTECTED]> wrote:
>       
>       > Hi Jesmond,
>       >  
>       > try this!
>       >  
>       > FormRun  frm;
>       > Frm = element.args().caller();
>       > Frm.close();
>       >  
>       > Cu
>       > M
>       >  
>       >  
>       >   _____  
>       > 
>       > Von: Jesmond Giordimaina
>       > [mailto:[EMAIL PROTECTED] 
>       > Gesendet: Dienstag, 28. September 2004 11:05
>       > An: [EMAIL PROTECTED]
>       > Betreff: [development-axapta] closing the caller
>       > form
>       >  
>       > Hi all,
>       > 
>       > does anybody know how to close a form from
> another
>       > form? I am trying to use the following code from
> the
>       > active form.
>       > 
>       > 
>       > Args args = new args();
>       > Form frm;
>       > ;
>       > 
>       > frm = args.caller();
>       > frm.finalize();
>       > 
>       > 
>       > Thanks in advance
>       > reg
>       > Jesmond
>       > 
>       > 
>       >             
>       > _______________________________
>       > Do you Yahoo!?
>       > Declare Yourself - Register online to vote today!
>       > http://vote.yahoo.com
>       > 
>       > 
>       > 
>       > 
>       > 
>       > Yahoo! Groups Sponsor
>       > 
>       > 
>       > ADVERTISEMENT
>       >  
>       >
> 
>
<http://us.ard.yahoo.com/SIG=129oqu6ba/M=295196.4901138.6071305.3001176/D=groups/S=1705006764:HM/EXP=1096452390/A=2128215/R=0/SIG=10
>       > se96mf6/*http:/companion.yahoo.com> click here
>       > 
>       >  
>       >
> 
>
<http://us.adserver.yahoo.com/l?M=295196.4901138.6071305.3001176/D=groups/S=:HM/A=2128215/rand=532916298>
>       > 
>       >  
>       >   _____  
>       > 
>       > Yahoo! Groups Links
>       > *      To visit your group on the web, go to:
>       > http://groups.yahoo.com/group/development-axapta/
>       >   
>       > *      To unsubscribe from this group, send an
> email to:
>       > [EMAIL PROTECTED]
>       >
> 
>
<mailto:[EMAIL PROTECTED]>
>       > 
>       >   
>       > *      Your use of Yahoo! Groups is subject to
> the Yahoo!
>       > Terms of Service
> <http://docs.yahoo.com/info/terms/>
>       > . 
>       > 
>       > 
>       > [Non-text portions of this message have been
>       > removed]
>       > 
>       > 
>       > 
>       
>       
>       
>                   
>       __________________________________
>       Do you Yahoo!?
>       New and Improved Yahoo! Mail - Send 10MB messages!
>       http://promotions.yahoo.com/new_mail 
>       
>       
>       
>       Yahoo! Groups Sponsor   
>               ADVERTISEMENT
>       click here
>
<http://us.ard.yahoo.com/SIG=129ocipta/M=295196.4901138.6071305.3001176/D=groups/S=1705006764:HM/EXP=1096457590/A=2128215/R=0/SIG=10se96mf6/*http://companion.yahoo.com>
>       
>               
>
<http://us.adserver.yahoo.com/l?M=295196.4901138.6071305.3001176/D=groups/S=:HM/A=2128215/rand=651599442>
>       
> 
>       ________________________________
> 
>       Yahoo! Groups Links
> 
=== message truncated ===



                
_______________________________
Do you Yahoo!?
Declare Yourself - Register online to vote today!
http://vote.yahoo.com



------------------------ Yahoo! Groups Sponsor --------------------~--> 
$9.95 domain names from Yahoo!. Register anything.
http://us.click.yahoo.com/J8kdrA/y20IAA/yQLSAA/saFolB/TM
--------------------------------------------------------------------~-> 

 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/development-axapta/

<*> To unsubscribe from this group, send an email to:
    [EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 


Reply via email to