Vendor Lookup in D365fo x++

 Vendor Lookup in D365fo x++


    public void postBuild()

    {

        super();

        // Register lookup for Vendor field

        DialogVendAcc.value('---');

        DialogVendAcc=                        

         this.bindInfo().getDialogField(_contract,methodStr(ClsPOIGPTrackingContract ,                             parmVendAcc));

        DialogVendAcc.registerOverrideMethod(methodStr(FormStringControl, lookup),   

                      methodStr(ClsPOIGPTrackingUIBuilder, VendLookup), this);

    }

    private void VendLookup(FormStringControl _control)

    {

        // Perform the lookup for VendName field

        VendTable::lookupVendor(_control);

    }

Comments