Hi Michel
In the 'Args' class, you will find the 'ParmObject' method which should solve your problem.

Seb

-----Message d'origine-----
De : abcdplkm [mailto:[EMAIL PROTECTED]
Envoy� : vendredi 27 ao�t 2004 14:38
� : [EMAIL PROTECTED]
Objet : [development-axapta] Re: How to send a parameter with the clicked() method of a button?

Hi Morten,


Thanks for your answer!! This is the way to go for my problem, but still one question:

I have an object which i want to pass in my args(). Which propertie of the Args() class should I use?

Thanks again!!


Regards,
Michel

--- In [EMAIL PROTECTED], "Morten Aasheim"
<[EMAIL PROTECTED]> wrote:
> One solution is to use the Args class.
>
> void clicked()
> {
>     Args            args;
>     ;
>
>     args = new Args();
>     args.caller(element.this());
>     args.record(Table);
>     args.parm(element.variableMethod());
>     new Menufunction(menuItemDisplayStr(NewForm),
> MenuItemType::Display).run(args);
>
>     super();
>     Table_ds.refresh();
>
>
> }
>
> Form2:
>
> public void init()
> {
>           str var;
>       table table;
>       ;
>       var = element.args().caller();
>       table = element.args().record()
>       //and so on ...      
> }
>
> Good luck :)
>
>
> Morten
> -----Original Message-----
> From: abcdplkm [mailto:[EMAIL PROTECTED]
> Sent: 27. august 2004 11:52
> To: [EMAIL PROTECTED]
> Subject: [development-axapta] How to send a parameter with the
clicked()
> method of a button?
>
> Hi,
>
> I have 2 forms and when i click on the button of form1 the other form
> is opened. I have a variable (object) declared on form1 and I want to
> access this variable on form2.
>
> How do I do this?
>
> Can I send a parameter with the clicked() method of a button?
Maybe
> another solution? Any help is welcome!!
>
> Btw I'm working with webforms!
>
>
> Regards,
> Michel
>
>
>
>
>

> Yahoo! Groups Links



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







Yahoo! Groups Sponsor
ADVERTISEMENT
click here


Yahoo! Groups Links

Reply via email to