args.object(form);
args.caller(this); // what is "this" referring to
"this" refer to the object having the method that you write.
If it's a class, then you have a reference to this class at the target form.
you can override init's method of the target form to get the reference :
public void init()
{
aClass anObject;
;
anObject = this.args().caller(); // here you get the data transfered as an object
}
I would prefer to using :
args.object(form);
args.parmObject(my(Object);
at the init's method, I get the object by:
myObject = this.args().parmObject();
regards,
agus
________________________________
From: axapta_dude [mailto:[EMAIL PROTECTED]
Sent: Tue 6/8/2004 12:07 AM
To: [EMAIL PROTECTED]
Subject: [development-axapta] Information Exchange
hi, i'm a newbie and need some help from expert.......
I'm confuse on the syntax to pass information using args class.
I'm trying to pass some information from a form using clicked method to another form.
what must i write inside the clicked method and how i want to receive the information in
another form.
I read in X++ guide on how to transfer data and i cannot find which line that transfer the
data.Can anybody explain to me?
Args args = new Args();
Form form = new Form(formstr(Formname));
Formrun formrun;
;
args.object(form);
args.caller(this); // what is "this" referring to
args.name(formstr(Formname));
formRun = ClassFactory.formrunclass(args);
formrun.init();
formrun.run();
formrun.wait();
thanx in advanced
Yahoo! Groups Links
[Non-text portions of this message have been removed]
| 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.

