Thursday, 27 October 2016

public void selectionChanged()
{
    MG_CustTable mgCustTable;
    mgCustTable= this.listPage().activeRecord(queryDataSourceStr(MGCustListPage//(name of the query),custtable(query data source name)));

    super();

    if(mgCustTable.MG_Cust_Status == MG_Cust_Status::Active)
    {
        this.listPage().actionPaneControlEnabled(formControlStr(MGCustListPage(name of the from), Active(control name)), false);
        this.listPage().actionPaneControlEnabled(formControlStr(MGCustListPage, Inactive), true);

    }
    else if(mgCustTable.MG_Cust_Status == MG_Cust_Status::InActive)
    {
        this.listPage().actionPaneControlEnabled(formControlStr(MGCustListPage, Active), true);
        this.listPage().actionPaneControlEnabled(formControlStr(MGCustListPage, Inactive),false);

    }

}

No comments:

Post a Comment