Monday, August 4, 2014

Go To Main Table Functionality

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

No comments:

Post a Comment

Enable/Disable form control based on multiple rows select

 class PurchTableFormEventHandler {      [FormDataSourceEventHandler(formDataSourceStr(PurchTable, PurchTable), FormDataSourceEventType::Act...