Hi guys,
Yes Palle is correct, but there is a problem with that. As the caller form is using
formrun.wait() method, even the close method of caller form is called, the form would
not be closed. the best way (my personal opinion) to use the same code suggested by
Palle but try to open the form with menuitembutton not using FormRun object.
Hope it helps
Cheers
Amit Jain
Euroinfo Systems Pvt. Ltd.
India
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
* 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/> .
Yahoo! Groups SponsorADVERTISEMENT
---------------------------------
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 the Yahoo! Terms of Service.
---------------------------------
Do you Yahoo!?
Yahoo! Mail Address AutoComplete - You start. We finish.
[Non-text portions of this message have been removed]
------------------------ Yahoo! Groups Sponsor --------------------~-->
Make a clean sweep of pop-up ads. Yahoo! Companion Toolbar.
Now with Pop-Up Blocker. Get it for free!
http://us.click.yahoo.com/L5YrjA/eSIIAA/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/