1) By using jumpRef() method
in ax 2009
\Forms\CustTable\Designs\Design\[Tab:Tab]\[TabPage:TabCommunication]\[Group:ContactInfo]\StringEdit:editContactPersonName\Methods\jumpRef
public void jumpRef()
{
Args args;
FormRun formRun;
;
args = new Args(formstr(smmContactPerson));
args.record(custTable);
args.parmEnum(NoYes::Yes); // It's a Go To Main Table call
formRun = classfactory.formRunClass(args);
formRun.init();
formRun.run();
formRun.detach();
}
2) By using formRef property
Select Table and Go to Properties and select the required form in the formRef property
Ex: Address Table
in ax 2009
public void jumpRef()
{
Args args;
FormRun formRun;
;
args = new Args(formstr(smmContactPerson));
args.record(custTable);
args.parmEnum(NoYes::Yes); // It's a Go To Main Table call
formRun = classfactory.formRunClass(args);
formRun.init();
formRun.run();
formRun.detach();
}
2) By using formRef property
Select Table and Go to Properties and select the required form in the formRef property
Ex: Address Table
No comments:
Post a Comment