Syntax
Public Function UpdateDealerInfo(DealerID As Integer, Username As String, Password As String, ClientID As Integer, GMTOffset As String, DealerDesc As String, DealerTreePriv As Integer,Optional IsBranch As Boolean = False) As CallingResultsEnum
Description
This function is used to update the requested dealer information with new values, After UpdateDealerInfo executed the UpdateDealerResultReceived event fired.
Parameters
Parameters |
Description |
DealerID |
The dealer identifier to be updated, a value of type Integer. |
Username |
New value of the dealer username, value of type String. |
Password |
New value of the dealer password, value of type String. |
ClientID |
Client identifier that the new dealer will be has a privilege on, a value of Integer. |
GMTOffset |
The value of the dealer country GMT offset, a value of type String. |
DealerDesc |
New value of the dealer description, value of type String. |
DealerTreePriv |
The Dealer Id that the updated dealer has privilege on, Value of type is Long. pass it -1 if want to create a dealer without specific privilege |
IsBranch |
If dealer type is department type then this value used to indicate it a branch or not, an optional value of type Boolean |
Return value
Returns a value of type CallingResultsEnum, If the request was sent to the server successfully it will return SuccessResult.
Sample
Private Sub CreateDealer _Click()
Dim Res as CallingResultsEnum
Dim vClient as COClient = BOAPI.ClientByIndex(1)
DealerId = BOAPI..DealerIDByUsername(“Dealer Username”)
Res = BOAPI .UpdateDealerInfo (DealerId,,”Username”,”Password”, vClient.clientID, Cstr(BOAPI.GMTOffset),”DealerDes”,-1,false)
End sub
See Also
VertexFX Backoffice API Index
Last Modified: 29 June 2018
|