editAccessAccount() Method

Table of Contents

  1. Function
  2. Syntax
  3. Parameters
  4. Return Value
  5. Sample Code
  6. Remarks
  7. Possible Errors
  8. Related Methods

Function

  • Changes an existing access account’s properties in the client’s database

Syntax

  • Boolean = AeXMLBridge.editAccessAccount(AeAccessAccount);

Parameters

Return Value

  • Returns a Boolean value which is set to true when successful

Sample Code

C#

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
TAeAccessAccount account = ws.getCurrentAccessAccount();                       
// working with the current access account

account.BrowserProfileType = TBrowserProfileTypeEnum.bptPrivate;
account.FriendlyName = "Enter Friendly name here";
// update a few of the fields

try
{
bool success = ws.editAccessAccount(account);
}
catch (Exception ex)
{
MessageBox.Show(ex.Message);
}

VB.Net

1
2
3
4
5
6
7
8
9
10
11
12
Dim account As TAeAccessAccount = ws.getCurrentAccessAccount()
' working with the current access account

account.BrowserProfileType = TBrowserProfileTypeEnum.bptPrivate
account.FriendlyName = "Enter Friendly name here"
' update a few of the fields

Try
Dim success As Boolean = ws.editAccessAccount(account)
Catch ex As Exception
MessageBox.Show(ex.Message)
End Try

Remarks

  • The account used to execute this method must have sufficient permissions (ability to edit users)to permit account changes.
  • The Account Code cannot be changed once set
  • When changing the Domain Name, the Password must be changed as well

Possible Errors

  • Account doesn’t exist

accessAccountCodeExists
addAccessAccount
addAccessAccountWorkgroupAccessRightByAccountCode
getAccessAccounts
getAccessAccountViaAccountCode
getAccessAccountViaUniqueID
getAccessAccountWorkgroupAccessRightsByAccountCode
getCurrentAccessAccount
getEmptyAccessAccount
loadAccessAccountActivitysInRange
removeAccessAccount
removeAccessAccountAllWorkgroupAccessRightsByAccountCode

Back to Top