get value from class to form

hi Friends,

i have a form say form ‘F’, this from has a menuitembutton say"B’ whose action is a class say ‘C’. now the senario is when i click on the button ‘B’ a dialog say ‘D’ is open , this dialog contain a dialog field for emplid. I want to get the value of selected emplid into the form…in some variable, so that i can use this emplid.

can u suggest me how to do this.

hi Manish,

For this senario u must write the “click()” in the menuitembuttton…

Thanks,

SureSh.

You can pass the empId as parameter to the class.

Regards,

Raghav.

You can also use args class

args.name(formstr(nameofForma));

args.parm(emplid);

formrun = classFactory.formrun(args);

formrun.init();

formrun.run();

Regards,

Gyan

you can use this code :

void clicked()

{

Args args = new Args(“CustTable”); // for axample cust table

FormRun formRun;

;

// Look up customer 1000 when the form opens

args.lookupField(fieldNum(CustTable, AccountNum));

args.lookupValue(StringEdit.text()); // or args.lookupValue(“send a paramater like 1000”);

formRun = ClassFactory.formRunClass(args);

formRun.init();

formRun.run();

formRun.wait();

//Dialog dialog;

//DialogField field;

//Form _form1 = new Form(“the form that u can open it”);

//;

// _form1.AOTrun();

super();

}

jalal