Hi,

I am just not sure whether we can pass an object in the web environment since it's different in nature from traditional window form. The idea of passing object is passing it's member variable, so I did a workaround in passing this data using container, which I send to the database using sSysLastValue::putValue() in the calling form. At the target form, I got the container using xSysLastValue::getValue().

This works but let me know if it may cause problem.

I really want to know if anyone have succeeded passing object in webform.


regards,

Agus


________________________________

From: Morten Aasheim [mailto:[EMAIL PROTECTED]
Sent: Jumat 27/08/2004 20:13
To: [EMAIL PROTECTED]
Subject: RE: [development-axapta] Re: How to send a parameter with the clicked() method of a button?



You can probably try args.object(). Never tried this one myself, but.. ;)

Mvh,
Morten

-----Original Message-----
From: abcdplkm [mailto:[EMAIL PROTECTED]
Sent: 27. august 2004 14:38
To: [EMAIL PROTECTED]
Subject: [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 Links











Yahoo! Groups Links









[Non-text portions of this message have been removed]



Yahoo! Groups Sponsor
ADVERTISEMENT
click here


Yahoo! Groups Links

Reply via email to