You can create a Method in the caller like
<code>
void setStr(str value){}
</code>
then call the form
<code>
Args parameters = new Args();
MenuFunction EmpForm;
;
paramters.caller(this);
EmpForm = new MenuFunction(menuitemdisplaystr(EmpForm),Menuitemtype::Display);
EmpForm.run(parameters);
</code>
in the form you can call the method now via
<code>
element.args().caller().setStr('bla');
</code>
Regards
Andreas Gahr
-----Ursprüngliche Nachricht-----
Von: affekatz [mailto:[EMAIL PROTECTED]
Gesendet: Freitag, 26. November 2004 14:11
An: [EMAIL PROTECTED]
Betreff: [development-axapta] Re: Load form from a object and return
values
It's working fine with the load from product builder but how do i
return a value to the class that "controls" the form ?
--- In [EMAIL PROTECTED], Ahmed Ibrahim
<[EMAIL PROTECTED]> wrote:
>
> // using menu item to run the from
> Args parameters = new Args();
> MenuFunction EmpForm;
> ;
> EmpForm = new MenuFunction(menuitemdisplaystr
(EmpForm),Menuitemtype::Display);
> EmpForm.run(parameters);
>
> regards
> Ahmed
>
> [EMAIL PROTECTED] wrote:
>
> FormRun fr;
> Args arg = new Args();
> ;
> arg.name(formstr('FormNAme'));
> fr = ClassFactory.formRunClass(arg);
> fr.init();
> fr.run();
> //fr.detach();
> //fr.wait();
>
> --
> Roberto Ukmar
> Indis S.p.A.
>
>
>
>
> >
> >Can any one tell me how to load a form from a object this dosn't
seem
> >to work:
> >
> > KompForm Komp;
> > Komp = new kompform;
> >
> >Anything else that i should be aware of ?
> >
> >Thanks in adv.
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
>
> >
> >
> >Yahoo! Groups Links
> >
> >
> >
> >
> >
> >
> >
>
>
>
>
>
>
> 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!?
> Read only the mail you want - Yahoo! Mail SpamGuard.
>
> [Non-text portions of this message have been removed]
Yahoo! Groups Links
Yahoo! Groups Sponsor | |
|
|
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.