 |
ConneXionFindVendorsByCriteria Method |
Finds the Vendors by Criteria.
Namespace:
ConneXion
Assembly:
ConneXion (in ConneXion.dll) Version: 2020.0
Syntaxpublic ConneXionResult FindVendorsByCriteria(
Vendor oVendor,
ref Vendor[] oVendors
)
Public Function FindVendorsByCriteria (
oVendor As Vendor,
ByRef oVendors As Vendor()
) As ConneXionResult
Parameters
- oVendor
- Type: ConneXionVendor
Vendor object to Find - oVendors
- Type: ConneXionVendor
List of Vendors by Criteria
Return Value
Type:
ConneXionResultConneXionResult.
RemarksRequired Fields
- TAMUserName
- TAMPassword
- TAMCentralAgency - only if agency is on AppliedOnline
- LicenseKey - only if agency is an Agency of Vendor
Available Search Criteria
- Attention
- City
- Fax
- MaxCount
- Name
- Note
- Phone
- RecordNumber
- State
- Street
- Street2
- Tag
- ZipCode
Note |
---|
MaxCount:
This field limits the number of records returned when calling FindVendorsByCriteria to avoid time out issues.
Once MaxCount is set, additional code can be added to see if there are additional records to be returned and loop thru those records.
|
ExamplesDim oConneXion As New ConneXion.ConneXion
Dim oResult As New ConneXion.ConneXionResult
Dim oVendor As New ConneXion.Vendor
Dim oVendors() As ConneXion.Vendor
oVendor.TAMUserName = "EXEC"
oVendor.TAMPassword = "PSWD"
oVendor.State = "IL"
oResult = oConneXion.FindVendorsByCriteria(oVendor, oVendors)
If oResult.Success = False Then
txtResult.Text = "FindVendorsByCriteria is false. " & oResult.Description & oResult.TAMDescription
Else
txtResult.Text = "FindVendorsByCriteria is successful. " & oResult.Description & oResult.TAMDescription
dgrdVendor.DataSource = oVendors
End If
See Also