code dude 7/7/2010 5:14:50 PM

Search for Vendor by Name...

Is there a way using eConnect to search for a vendor by name rather than by VendorID? I've tried using the code below as a shot in the dark with no luck.

eConnectMethods methods = new eConnectMethods();

eConnectOut econnectOut = new eConnectOut();

RQeConnectOutType econnectOutType = new RQeConnectOutType();

eConnectType o_eConnect = new eConnectType();o_eConnect.RQeConnectOutType = new RQeConnectOutType[1];

 

econnectOut.DOCTYPE =
"Vendor";

econnectOut.OUTPUTTYPE = 1;

econnectOut.INDEX1FROM = vendorName;

econnectOut.INDEX1TO = vendorName;

econnectOut.FORLIST = 1;

econnectOutType.eConnectOut = econnectOut;

o_eConnect.RQeConnectOutType[0] = econnectOutType;

string strEconnect = XmlSerialization.SerializeEConnect(o_eConnect);

string strResponse = methods.eConnect_Requester(this.m_ConnectString, EnumTypes.ConnectionStringType.SqlClient, strEconnect);

return strResponse;

Version: Unknown or N/A
Section: eConnect


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