美文网首页
Add exist form to AX lookup

Add exist form to AX lookup

作者: axxxxxxxx | 来源:发表于2019-10-30 15:06 被阅读0次

    It is different between normal lookup .

    public void lookup()
    {
        HcmWorker   selectedRecord;
        Args        args;
        FormRun      formRun;
        Form         workerLookupForm = new Form(formStr(HcmWorkerLookup));
    
        FormControl       control       = this;
        FormStringControl stringControl = control as FormStringControl;
    
        args = new args();
        args.name(formStr(HcmWorkerLookup));
        args.caller(this);
        args.parmObject(this);
    
     /*   selectedRecord = HcmWorker::findByPersonnelNumber(stringControl.text());
        if(selectedRecord.RecId != 0 )
        {
            args.lookupRecord(selectedRecord);
        }*/
    
        formRun = FormAutoLookupFactory::buildLookupFromCustomForm(stringControl,workerLookupForm,
            AbsoluteFieldBinding::construct(fieldStr(HcmWorker, Personnelnumber),tableStr(HcmWorker)),args);
    
        stringControl.performFormLookup(formRun);
    }
    
    图片.png

    相关文章

      网友评论

          本文标题:Add exist form to AX lookup

          本文链接:https://www.haomeiwen.com/subject/xziovctx.html