roberthyndman 6/8/2020 8:51:34 PM

Vendor Lookup Form

Hi,

When using the vendor lookup form in VST I cannot get it to go to the closet value from my input.  I am using GP2018.  The lookup sample app does not work either.  All other lookups I have used work fine, i.e. items, buyers, locations etc...

After setting up the appropriate code in GPAddins I do this on the lookup button....

 

Microsoft.Dexterity.Applications.SmartListDictionary.VendorLookupForm vendorLookupForm = SmartList.Forms.VendorLookup;
GPAddIn.WPCreditorIDFromLookup = true;
vendorLookupForm.Open();
vendorLookupForm.VendorLookup.VendorId.Value = txtCreditorFrom.Text;
vendorLookupForm.VendorLookup.VendorSortBy.Value= 1;
vendorLookupForm.VendorLookup.VendorSortBy.RunValidate();

It does not seem to matter what is passed, it will go to the last vendor.

I have tried all the other options...

vendorLookupForm.VendorLookup.AsiLuFindString.Value = txtCreditorFrom.Text;
vendorLookupForm.VendorLookup.AsiLuFindString.RunValidate();

But this does not produce anything.

Any insight would be appreciated.

Thanks

 

Version: All
Section: Dynamics GP, Visual Studio Tools for Dynamics GP


Table Definition Quick Links
All Tables
SOP Tables
RM Tables
GL Tables
POP Tables
HR Tables
PM Tables
UPR Tables
IV Tables
Olympic Tables
3