Hello,
I am trying to get the vendor items lookup form to open up in GP from a custom form built in Visual Studio with the Dynamics GP Addin Project.
I am currently running into a problem where once it hits the open line of the form, it just closes right away and doesn't do anything else to it from the code. I have tried many things but can't quite figure it out. I am wondering if anyone has gotten this to work within visual studio.
My code is below for the lookup. It might not all be right.
Thanks,
//show the vendor item lookup form
PopVendorItemsForm popVendorItemsForm = SmartList.Forms.PopVendorItems;
// PopVendorItemsForm.PopVendorItemsWindow popVendorItemsWindow = popVendorItemsForm.PopVendorItems.IvItemVendorLookup..PopVendorItems;
popVendorItemsForm.Open();
popVendorItemsForm.PopVendorItems.LocalVendorSortBy.Value = 1;
popVendorItemsForm.PopVendorItems.IvItemVendorLookup.SortBy.Value = 1;
popVendorItemsForm.PopVendorItems.IvItemVendorLookup.RunValidate();
popVendorItemsForm.PopVendorItems.LocalVendorSortBy.RunValidate();
//Set the ReturnToLookup flag to true so we know we called the lookup window.
GPAddIn.ReturnToVendorItemLookup = true;
*This post is locked for comments
I have the same question (0)