SendRequest Event
Fires when QuickBooks Web Connector asks for a request.
Syntax
Sub qbwcservercontrol_SendRequest(SessionTicket As String, CompanyResponse As String, HostResponse As String, PrefsResponse As String, CompanyFile As String, QBXMLCountry As String, QBXMLMajorVersion As Integer, QBXMLMinorVersion As Integer, Request As String)Remarks
This event fires when QuickBooks Web Connector is ready to accept a request. The purpose of the event is to provide a request to QuickBooks Web Connector. The parameters are as follows:
SessionTicket identifies the session. This value is read-only.
CompanyResponse holds a QBXML response to a Company Query. This is automatically provided by QuickBooks Web Connector the first time this event fires for a session and may be passed to the QBResponseAggregate property of the Company control. This value is read-only.
HostResponse holds a QBXML response to a Host Query. This is automatically provided by QuickBooks Web Connector the first time this event fires for a session and may be passed to the QBResponseAggregate property of the Company control. This value is read-only.
PrefsResponse holds a QBXML response to a Preferences Query. This is automatically provided by QuickBooks Web Connector the first time this event fires for a session and may be passed to the QBResponseAggregate property of the Company control. This value is read-only.
CompanyFile specifies the path to the company file that will be used in the data exchange. This value is read-only.
QBXMLCountry is the country version of QuickBooks. For instance "US", "CA", or "UK". This value is read-only.
QBXMLMajorVersion is the major version of the qbXML request processor (QBSDK version). For instance if the qbXML specification version is "6.0" this value will be "6". This value is read-only.
QBXMLMinorVersion is the minor version of the qbXML request processor (QBSDK version). For instance if the qbXML specification version is "6.0" this value will be "0". This value is read-only.
Request specifies the qbXML request that will be sent to QuickBooks Web Connector. This may be obtained from other controls in the toolkit by setting the QBRequestMode property to Offline. See the help for QBRequestMode for mode details.
Note: If the Request parameter is left empty QuickBooks Web Connector will then make a call and GetLastError will fire. This approach may be used if you wish to return an error, request interactive mode, or introduce a brief pause.