Pages

Banner 468 x 60px

 

Monday, March 27, 2017

args parameter in x++

0 comments
public static void main(Args _args)
{
    InventJournalTransController    controller          = new InventJournalTransController();
    SRSReportParameter              parameterPrintlog   = new SRSReportParameter();

    inventJournalTable              inventJournalTable2;

 
   
    if(_args.dataset() == tableNum(inventJournalTable))
    {
        inventJournalTable2 = _args.record();
    }   
            info(strFmt('%1  == %2', InventParameters::find().TECCustInClaimJournalNameId, inventJournalTable2.JournalNameId));
            if(inventJournalTable2.JournalNameId == InventParameters::find().TECCustInClaimJournalNameId)
            {
                controller.parmReportName(ssrsReportStr(InventJournalTrans, Report_IN));
               
            }

             else
                {          
                   
                        if(inventJournalTable2.JournalNameId == InventParameters::find().TECCustOutClaimJournalNameId)
                    {
                        controller.parmReportName(ssrsReportStr(InventJournalTrans, Report_OUT));
                    }
                        else
                            controller.parmReportName(ssrsReportStr(InventJournalTrans, Report));
                }


    controller.parmArgs(_args);
    controller.startOperation();
}

void clicked()
{
        Args                    args = new Args();
        CustTable_FromAdit      a;
        Object                          formRun;
        super();

        select a where a.AccountNum == CustTable_FromAdit_AccountNum.valueStr();

if(a)
{
       args.record(a);
       args.name(formstr(Form2));
       formRun = classfactory.formRunClass(args);
       formRun.init();
       formRun.run();

       formRun.wait();
}
}



void clicked()
{
    Args                args = new Args();
    AccountNum          _acctNum;
    FormRun             formRun;
    TblPractiseOne      _tblPractiseOne;
    str                         acctNum;
    ;
    TblPractiseOne_DS.active();   
    _acctNum = TblPractiseOne.AccountNum;

select firstOnly _tblPractiseOne where _tblPractiseOne.AccountNum == _acctNum &&    _tblPractiseOne.CustGroupId != "";

    args.name(formStr(FormTwo));
    args.record(_tblPractiseOne);
    args.parm("Hello");
    formRun = classFactory.formRunClass(args);

    formRun.init();
    formRun.run();
    formRun.wait();

    super();
}

void clicked()
{
    Args  args  = new Args();
    AccountNum  _acctNum;
    FormRun formRun;
    Table01 _table01;
     Table01_DS.active();
    _acctNum    = Table01.AccountNumber;
    select firstOnly _table01
    where _table01.AccountNumber == _acctNum;

    args.name(formStr(Form02));
    args.record(_table01);
    args.parm("Table");
    args.caller(this);
    formRun = classFactory.formRunClass(args);

    formRun.init();
    formRun.run();
    formRun.detach();
    super();


}

0 comments:

A financial dimension value is based on the record and has been used on a transaction. You cannot delete the record

  SOLUTION delete in table DimensionAttributeLevelValue base on Bank Account  :  and Delete the Bank Account FINISH