loadAccessAccountActivitysInRange() 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

  • Returns an array of access account activity structures

Syntax

  • AeAccessAccountActivityAry = AeXMLBridge.loadAccessAccountActivitysInRage(UniqueID, DateRangeEnum, MinDate, MaxDate);

Parameters

  • Integer - UniqueID (obtained from a valid TAeAccessAccount structure)
  • Enumeration - TDateRangeEnum
  • String - begin date (yyyy-mm-dd format)
  • String - end date (yyyy-mm-dd format)

Return Value

Sample Code

C#

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
TAeAccessAccount acct = ws.getCurrentAccessAccount();                      
// get the uniqueID from TAeAccessAccount

TDateRangeEnum dateRange = TDateRangeEnum.drCurrMonth;
string minDate = string.Empty;
string maxDate = string.Empty;
// set date parameters to empty/null if NOT using TDateRange.drCustom

try
{
TAeAccessAccountActivity[] activities = ws.loadAccessAccountActivitysInRange(acct.UniqueID, dateRange, minDate, maxDate);
}
catch (Exception ex)
{
MessageBox.Show(ex.Message);
}

VB.Net

1
2
3
4
5
6
7
8
9
10
11
12
13
14
Dim acct As TAeAccessAccount = ws.getCurrentAccessAccount()
' get the uniqueID from TAeAccessAccount

Dim dateRange As TDateRangeEnum = TDateRangeEnum.drCurrMonth

Dim minDate As String = String.Empty
Dim maxDate As String = String.Empty
' set date parameters to empty/null if NOT using TDateRange.drCustom

Try
Dim activities As TAeAccessAccountActivity() = ws.loadAccessAccountActivitysInRange(acct.UniqueID, dateRange, minDate, maxDate)
Catch ex As Exception
MessageBox.Show(ex.Message)
End Try

Remarks

  • An access account activity structure typically represents a change password operation, although other operations may also be included
  • If using the TDateRangeEnum value drCustom, the date parameters must be in yyyy-mm-dd format
  • If not using drCustom, the date parameters must be set to empty/null
  • UniqueID parameter is for an existing Access Account

Possible Errors

  • UniqueID not found
  • invalid Date format

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

Back to Top