OScript API/Built-in Package Index |
The built-in functions in the CAPI package allow you to connect to generic SQL databases and perform general SQL statement operations. The CAPI package also manages the allocation of Content Server login objects and provides a number of convenience functions for use with any Content Server database.
The major functionalities offered in the CAPI Package are the following:
Example:
CAPILOG logFile CAPIERR errHandler CAPICONNECT connection Dynamic execResult RecArray records Record rec Dynamic transResult // Allocate a log and error object logFile = CAPI.AllocLog( 'c:\capi.log' ) errHandler = CAPI.AllocErr() // connect to the database connection = CAPI.AllocConnect( CAPI.CT_ORACLE, 'ORAHOST', '', 'orauser', 'orauserpwd', logFile, errHandler, 0 ) if ( IsError( connection ) ) echo( 'There was an error connecting' ) DumpErrorStack( errHandler ) else // Fetch all the records from myTable execResult = CAPI.Exec( connection, 'select * from myTable' ) if ( IsError( execResult ) ) echo( 'The select statement failed' ) DumpErrorStack( errHandler ) else if ( IsError( CAPI.StartTransaction( connection ) ) ) echo( 'The transaction could not be started' ) DumpErrorStack( errHandler ) else // Initialize the transaction result to COMMIT transResult = CAPI.COMMIT records = execResult // Loop through all the records, updating each one for rec in records echo( rec.myField ) // Update a record, using a parameterized statement execResult = CAPI.Exec( connection, "update myTable set myField=myField+1 where myField=:A1", rec.myField ) if ( IsError( execResult ) ) echo( 'An error occurred while updating the records' ) DumpErrorStack( errHandler ) transResult = CAPI.ROLLBACK break end end CAPI.EndTransaction( connection, transResult ) end end end function void DumpErrorStack( CAPIERR errLog ) Integer i Error code String errMsg String detail String msg Integer numErrors = CAPI.NumErrs( errLog ) if numErrors > 0 echo( " ----> Error stack" ) for i = 1 to numErrors code = CAPI.GetErrAt( errLog, i ) errMsg = Error.ErrorToString( code ) detail = CAPI.GetDetailAt( errLog, i ) msg = Str.ValueToString( code ) echo( " ----> ", i, ")", " ", msg, ":", code, ":", detail ) end end CAPI.ClearErr( errLog ) end
Commits database changes when passed to CAPI.EndTransaction function.
Specifies SAP HANA as the database type when calling the CAPI.AllocConnect function to create a CAPI connection.
Specifies ODBC as the database type when calling the CAPI.AllocConnect function to create a CAPI connection.
Specifies Oracle as the database type when calling the CAPI.AllocConnect function to create a CAPI connection.
Specifies PostgreSQL as the database type when calling the CAPI.AllocConnect function to create a CAPI connection.
A flag used by CAPI.ErrOption() to set a given CAPIERR such that it retains accumulated errors when CAPI.ClearErr() is called on it.
A flag used by CAPI.ErrOption() to set a given CAPIERR such that it discards accumulated errors when CAPI.ClearErr() is called on it.
A flag used by CAPI.AllocLog() to set the log file open mode.
A flag used by CAPI.AllocLog() to set the log file open mode.
A flag used in CAPI.RightsList() to retrieve the regular rights of the current user.
A flag used in CAPI.RightsList() to retrieve the proxy rights for WAPI of the current user.
Rolls back a database transaction when passed to the CAPI.EndTransaction function
Allocates a CAPI connection to the specified server and database.
Allocates a Content Server login object.
Determines if the user for the specified login has a specific right.
Returns attribute information about one or more CAPICONNECT objects.
Returns basic information about one or more CAPICONNECT objects.
Allows user specific data to be stored and retrieved from a given CAPI related object.
Gets a string for retrieving the current Datetime provided by the Content Server database.
Disconnects the specified CAPICONNECT object from the database.
Ends the current database transaction.
Executes a single SQL statement.
Directly executes a single SQL statement.
Executes a single, parameterized statement, multiple times, once for each set of parameter values in the paramValues array.
Executes a single, optionally parameterized statement which will execute a stored procedure.
Gets a SQL statement for retrieving the current Datetime provided by the Content Server database.
Gets the detailed error string from the error stack at the specified index.
Returns the error code from the error stack at the specified index.
Deletes one or more items from the INI table in the SQL database.
Retrieves an item from the INI table in the SQL database.
Lists items from the INI table in the SQL database.
Saves a value to the INI table in the SQL database.
Checks the IsValid flag for the specified connection.
Writes a message to the log file associated with the specified login.
Returns the current time from the database.
Returns the number of errors currently on the error stack.
Returns the parent object for the specified object.
Restarts the current transaction.
Returns the rights for the specified login.
Returns an assoc with keys of right ids.
Returns a string containing the rights for the specified login, formatted for use in an SQL statement.
Starts a new transaction.
Returns the current transaction depth for the database connection.
Returns a new, unique id from the database.
Refreshes the local cached list of rights for the specified login object.
Returns the userid for the specified login object.
Returns TRUE if rights string query with multiple in clauses can be used.
Returns the information about the current user for the specified login object.
Commits database changes when passed to CAPI.EndTransaction().
Specifies SAP HANA as the database type when calling CAPI.AllocConnect() to create a CAPI connection.
Specifies ODBC as the database type when calling CAPI.AllocConnect() to create a CAPI connection. This is used for connections to Microsoft SQL Server.
Specifies Oracle as the database type when calling CAPI.AllocConnect() to create a CAPI connection.
Specifies PostgreSQL as the database type when calling CAPI.AllocConnect() to create a CAPI connection.
A flag used by CAPI.ErrOption() to set a given CAPIERR such that it discards accumulated errors when CAPI.ClearErr() is called on it.
A flag used by CAPI.ErrOption() to set a given CAPIERR such that it retains accumulated errors when CAPI.ClearErr() is called on it.
A flag used by CAPI.AllocLog() to set the open mode for the log file.
A flag used by CAPI.AllocLog() to set the open mode for the log file.
A flag used in CAPI.RightsList() to retrieve the regular rights of the current user.
A flag used in CAPI.RightsList() to retrieve the proxy rights for WAPI of the current user.
Rolls back a database transaction when passed to CAPI.EndTransaction().
Allocates a CAPICONNECT object to the specified server and database. The type parameter must contain either CAPI.CT_CTLIB, CAPI.CT_MSDBLIB or CAPI.CT_ORACLE.
The type of connection to be established.
The name of the server to connect to.
The name of the database to be used. This parameter is left blank for Oracle.
The database user name.
The database user password.
An optional log object, returned by CAPI.AllocLog(), that will associate a log file with the connection.
An optional error object, returned by CAPI.AllocErr(), that will associate an error object with the connection.
Connection flags for internal use, set to zero.
A connection object to the specified database, Error otherwise.
Allocates a CAPIERR object for use when allocating a database connection with CAPI.AllocConnect().
A CAPIERR object.
Allocates a CAPILOG object for use when allocating a database connection with CAPI.AllocConnect().
The path to the log file created for this log object.
Optional param either CAPI.LOG_APPEND or default CAPI.LOG_TRUNCATE.
A CAPILOG object.
Allocates a CAPILOGIN object for the specified username and password.
The database connection, returned by CAPI.AllocConnect(), which points to the Content Server database.
The username of the Content Server user to be logged in.
The password for the specified Content Server user.
The space or domain which the user belongs to. The default is an empty string for standard space or domain.
A CAPILOGIN object for the Content Server user that was logged in, Error otherwise.
Attaches to or Allocates a CAPILOG object for use when allocating a database connection with CAPI, or for general logging functionality.
The name of this logger (will be prefixed with Logging.CS_LOGGER_NAME_PREFIX, which is "com.opentext.contentserver.capi"
)
Optionally, the path to the log file created for this log object if direct file output is desired.
Optional param either CAPI.LOG_APPEND or default CAPI.LOG_TRUNCATE.
A CAPILOG object.
Determines if a user has a certain right in their rights list. An ID in a rights list corresponds to a particular group. For example, a group named "Collaborative Computing" may have the ID 3892. If the user is a member of this group or has been granted rights by this group, the ID 3892 will be found on the user's rights list.
The CAPILOGIN object for the user whose rights are being checked.
The ID of the right that is being tested against the users rights list.
Integer 0 if the specified right is in the user's rights list, an error otherwise.
Clears the current error stack for the specified CAPIERR object, unless the CAPI.ERR_KEEP flag has been set on the CAPIERR with CAPI.ErrOption(), in which case errors will be retained despite the clear call (default behavior may be restored by calling CAPI.ErrOption() with the CAPI.ERR_CLEAR flag). When an error occurs for a given database connection, the error is placed on the error stack. This function allows all accumulated errors to be removed from that stack.
The CAPIERR object
Integer 0 for success; error otherwise.
Returns attribute information for the specified database connection.
The connection for which information should be returned.
An assoc containing all the attribute information for the specified database connection. This assoc will contain the following information:
Field | Contains |
---|---|
ConnectionType | The type of connection (CT_ORACLE, CT_CTLIB, CT_MSDBLIB) |
DatabaseType | An internal constant identifying type of database |
DatabaseServer | The name of the server for this connection |
DatabaseName | The name of the database for this connection |
DatabaseUser | The database user for this connection |
DatabasePWD | The password for the database connection |
DatabaseAppl | The internal application name this connection is using |
DatabaseHost | The host name for the client connection |
Flags | Internal flags |
Depth | The current transaction depth (0-n) |
MaxLength | The maximum length of a character field for the database |
MaxLongLength | The maximum length of a long data type for the database |
SubQueriesCanAccessBlobs | TRUE if this database supports sub queries that access blob in a table, otherwise FALSE |
CanInsertSelectWithSameTable | TRUE if this database supports inserts statements that use a select on the same table, otherwise FALSE |
CanProcessTree | TRUE if this database can perform hierarchical joins in a select statement, otherwise FALSE |
CanExecuteN | TRUE if this database can execute a statement multiple times with different parameters, otherwise FALSE |
IsCaseSensitive | TRUE if this database is case sensitive, otherwise FALSE |
SupportIdentity | TRUE if this database supports identity columns, otherwise FALSE |
IsValid | TRUE if the connection is still valid, otherwise FALSE. |
Returns information about one or all of the currently active connections. If no connection is specified, information about all open connections is returned.
An optional parameter specifying the connection for which information is desired.
A RecArray containing information about one or all of the active connections. If an optional connection is specified, the RecArray will contain only a single row. The columns in the RecArray are as follows:
Column | Contains |
---|---|
CONNECT | The CAPICONNECT object itself |
SQL | A reference to the internal SQL object |
CTYPE | The connection type |
CFLAGS | Internal flags |
SERVER | The server name for this connection |
DBNAME | The database name for this connection |
USER | The database user for this connection |
PASSWORD | The password for the database connection |
REFCNT | The current refcount for this CAPICONNECT object |
Gets or sets application specific information from a CAPICONNECT or one of its children. All objects which are derived from a CAPICONNECT object (CAPILOGIN, DAPISESSION, UAPISESSION, etc) can hold application specific information. If the optional second parameter is passed, the context data for the specified object will be set.
The Object which is having its context data either set or fetched.
An optional parameter which, when present, sets the value of the context data besides returning it.
The current value that is stored as context for the specified object.
Gets a string for retrieving the current Datetime (without timezone) provided by the Content Server database. NOTE: The return value may not be used in the same way across all database servers. OScript programmers may have to check if an operator would be valid when applied to the string. For example, the operator '+' and '-' cannot be applied to the return value in cases of Hana AND Posgressql. However, they will work with SQL Server and Oracle.
The database connection, returned by CAPI.AllocConnect(), which points to the Content Server database.
The string for getting the current Datetime used by the database specified by the CAPICONNECT object, if successful; Error otherwise.
CAPICONNECT cnntSqlServer = ... String retVal = CAPI.DBDateString( cnntSqlServer ) Echo( retVal) // 'GetDate()' CAPICONNECT cnntOracle = ... String retVal = CAPI.DBDateString( cnntOracle ) Echo( retVal) // 'SYSDATE' CAPICONNECT cnntPostgresql = ... String retVal2 = CAPI.DBDateString( cnntPostgresql ) Echo( retVal2) // 'now()::timestamp' // Add 10 days to the current date using interval. Integer days = 10 String sql = Str.Format("SELECT %1 + interval '%2 day'", CAPI.DBDateString( cnntPostgresql ), days )) CAPICONNECT cnntHana = ... String retVal2 = CAPI.DBDateString( cnntOthers ) Echo( retVal2) // 'CURRENT_TIMESTAMP'
Disconnects the CAPICONNECT from its database. Note, this does not deallocate the CAPICONNECT, the CAPICONNECT will only be deallocated when it goes out of scope. When a CAPICONNECT goes out of scope, it is automatically disconnected from its database.
The connection object that is being disconnected from its database.
Integer 0 if successful; error otherwise.
Ends the current database transaction on the specified database connection.
Note that CAPI keeps a running tally of the number of times that CAPI.StartTransaction() has been called since the last CAPI.EndTransaction(). In order for a commit to actually take place, the number of StartTransactions for a given operation must be balanced by an equal number of EndTransactions and all EndTransactions must pass CAPI.COMMIT. This structure allows multiple levels of an application to all call StartTransaction and EndTransaction while still allowing the highest level of the code to maintain ultimate controls over the transaction. If, at any level, CAPI.ROLLBACK is passed, the entire transaction will be rolled back at that point.
A CAPICONNECT or CAPILOGIN object
CAPI.COMMIT for a commit, CAPI.ROLLBACK to rollback a transaction.
Integer 0 if successful; error otherwise.
Sets the flag controlling clear behavior within a CAPIERR given either the flag CAPI.ERR_CLEAR, to clear errors, or CAPI.ERR_KEEP to keep errors when CAPI.ClearErr() is called upon the CAPIERR.
A CAPIERR.
Specifies what to do with the errors within the CAPIERR, either CAPI.ERR_CLEAR to clear them or CAPI.ERR_KEEP to retain them upon clear.
The current clear flag.
Executes a given SQL statement.
Parameterized statements where each parameter is
denoted by :A
The CAPICONNECT object.
The SQL statement to be executed.
Any parameter values required by the statement. The values to be used for SQL statment parameters may be passed as either a single List argument, or as a variable number of arguments, as with Str.Format(). If passing a List of parameter values, no more than three arguments should be passed to the Exec builtin function.
Here are two short examples:
// Return all values in myTable Dynamic result = CAPI.Exec( connect, "select * from myTable" ) // Insert the value 1 into myTable Dynamic result = CAPI.Exec( connect, "insert into myTable values ( :A1 )", 1 )
Directly executes a given SQL statement. The statement must not contain bind parameters.
Direct execution is best used with statements that are executed one time. In most cases, Exec() will be more efficient, because the database will cache the parsed statement and its execution plan.
The CAPICONNECT object.
The SQL statement to be executed.
Executes a given SQL statement once for each row in the RecArray.
This function is most useful for efficiently executing the same parameterized statement multiple times with different values. For example, a parameterized insert or update statement may be executed 20 times with different values for its parameters based on the 20 rows in the passed in RecArray.
The CAPICONNECT object.
The SQL statement to be executed.
A RecArray for containing the substitution values for the parameters in the statement.
On success, an integer representing the number of rows affected by the SQL statement, otherwise an error.
Executes a given SQL statement which will execute a stored procedure.
Parameterized statements where each parameter is
denoted by :A
The CAPICONNECT object.
The SQL statement to be executed.
Any parameter values required by the statement.
A RecArray if the executed stored procedure returns tabular data, containing rows and columns for all the returned data.
An Integer value if the executed statement was a data modification statement, counting the number of rows affected.
An error otherwise.
Here is a short examples:
// Who is logged onto the DBMS Dynamic result = CAPI.ExecSP( connect, "sp_who" )
Gets a full SQL statement for retrieving the current Datetime (without timezone) provided by the Content Server database.
The database connection, returned by CAPI.AllocConnect(), which points to the Content Server database.
The SQL statement for getting the current Datetime used by the database specified by the CAPICONNECT object, if successful; Error otherwise.
String retVal = CAPI.GetDateStringSQL( capiCntSQLServer ) Echo( retVal ) // "SELECT GetDate()" retVal = CAPI.GetDateStringSQL( capiCntOracle ) Echo( retVal ) // "SELECT SYSDATE FROM DUAL" retVal = CAPI.GetDateStringSQL( capiCntPostgreSQL ) Echo( retVal ) // "SELECT now()::timestamp" retVal = CAPI.GetDateStringSQL( capiCntHana ) Echo( retVal ) // "SELECT CURRENT_TIMESTAMP FROM DUMMY"
Retrieves the detail information associated with a specified error.
This function is often used in looping constructs to examine all errors currently stored in a specified error object. Use CAPI.NumErrs() to retrieve the total number of errors stored in the error object.
The CAPIERR object.
The index location of the desired error in the error stack.
A string containing the detail information for the specified error, undefined if no detail exists.
Retrieves the identified error from the specified error object.
This is often used in looping constructs to examine all errors currently stored in a specified error object. Use CAPI.NumErrs() to retrieve the total number of errors stored in the error object.
The CAPIERR object.
The index location of the desired error in the error stack.
The specified error, if successful; Undefined otherwise.
Does nothing if no optional parameters are provided. If the optional keyword parameter is not passed, all values in the specified section will be deleted.
The CAPILOGIN object.
An optional string specifying the section to affect in the KIni table.
An optional string specifying the keyword to delete from the specified section.
An Integer 0 if successful, an error otherwise.
Retrieves the value associated with the specified section and keyword from the KIni table.
The CAPILOGIN object.
The section in the KIni table where the keyword is located.
The keyword for the value to be returned
A default value to be returned if the specified section and keyword pair cannot be found.
The value associated with the specified keyword, if successful; Error otherwise.
Returns all keyword values in the specified section of the KIni table.
If the optional section parameter is not passed, all the data from the KIni table will be returned.
If the optional keyword parameter is not passed, all the data from the section in the KIni table will be returned.
The CAPILOGIN object.
An optional parameter specifying the section to be listed from the KIni table.
An optional parameter specifying the keyword to be listed in the section from the KIni table.
A RecArray containing the information requested if successful; Error otherwise.
Allows values to be added into the KIni table or to overwrite existing information.
If the value parameter is not passed, the section/keyword value will be set to NULL in the database.
The CAPILOGIN object.
The section where the value will be inserted.
The keyword for the value.
An optional value to be inserted for the section and keyword.
The Integer 0 if successful; Error otherwise.
Checks to ensure a previously established database connection is still valid.
This is very useful for determining cases where the database connection has unexpectedly dropped due to network or database server problems.
The CAPICONNECT object.
TRUE if the connection is still valid, False otherwise.
Writes the specified INFO message to the connection log file. This is an alias of LogInfo
The CAPILOG object.
The message to be written to the log file.
The Integer 0 if successful; Error otherwise.
Writes the specified ERROR message to the connection log file.
The CAPILOG object.
The error message to be written to the log file.
The Integer 0 if successful; Error otherwise.
Writes the specified INFO message to the connection log file.
The CAPILOG object.
The info message to be written to the log file.
The Integer 0 if successful; Error otherwise.
Returns information about one or all of the currently active logins. If no login is specified, information about all current logins is returned
An optional parameter specifying the login for which information is desired.
A RecArray containing information about one or all of the active logins. If an optional login is specified, the RecArray will contain only a single row. The columns in the RecArray are as follows:
Column | Meaning |
---|---|
LOGIN | The CAPILOGIN object itself |
CONNECT | The CAPICONNECT that this login was allocated from. |
USERNAME | The Content Server user |
USERPWD | The password for the Content Server user |
USERID | The unique ID for this user |
GROUPID | The default group for this user |
PRIVS | The privileges for this user |
REFCNT | The current refcount for this CAPILOGIN object |
Writes the specified WARN message to the connection log file.
The CAPILOG object.
The warning message to be written to the log file.
The Integer 0 if successful; Error otherwise.
Returns the current date and time for the database server specified by the CAPICONNECT.
The CAPICONNECT object indicating the database server for which the current date and time is returned.
The current date and time of the database server, if successful; Error otherwise.
Determines the number of errors stored in the specified error object.
The CAPIERR object for which the number of errors is returned.
An Integer indicating the number of errors currently stored in the specified error object, if successful; Undefined otherwise.
Retrieves the parent object for the specified object. For example, CAPILOGIN objects will return their associated CAPICONNECT object. DAPISESSION objects, UAPISESSION objects and WAPISESSION objects will return their associated CAPILOGIN object.
The object for which the parent object is desired.
The parent connection of the specified object, if successful; Error otherwise. The connection type of the parent is determined by the object specified in the following way:
Object | Parent type |
---|---|
CAPILOGIN | A CAPICONNECT object |
DAPISESSION | A CAPILOGIN object |
UAPISESSION | A CAPILOGIN object |
WAPISESSION | A CAPILOGIN object |
DAPINODE | A DAPISESSION object |
DAPIVERSION | A DAPINODE object |
Restarts a database transaction that was previously started by CAPI.StartTransaction(), preserving the current transaction depth.
The CAPICONNECT or CAPILOGIN owning the transaction.
A constant indicating what action to perform on the specified transaction. Acceptable values are CAPI.COMMIT and CAPI.ROLLBACK.
The Integer 0 if successful; Error otherwise.
Returns a RecArray containing the ID numbers of all groups and projects of which the specified user is a member.
The CAPILOGIN object for the user.
The proxy type. The default is CAPI.PROXY_NONE.
A RecArray containing the ID numbers of those projects and groups of which the specified user is a member. The fields returned are as follows:
Field | Contains |
---|---|
Name | The name of the right. |
Type | The type of the right. |
Description | A description of the right. |
Returns an assoc with keys containing the rights ID of the current user.
The CAPILOGIN object for the user.
An assoc with keys of right IDs.
Returns a string containing all the right ids for the specified user formatted for use in an SQL statement's "where" clause. The column name in the second parameter will be used to format the "where" clause. Moreover, an optional parameter can be used to select rights only for the specified user types.
The CAPILOGIN object for the specified user.
The column name to use when formatting the string.
User types to be used in the resulting SQL statement.
A string containing all the right ids for the specified user formatted for use in an SQL statement's "where" clause.
Begins a new database transaction on the specified CAPICONNECT or CAPILOGIN. If a CAPILOGIN is specified, the connection used to allocate the login will be used in the transaction. The optional second parameter is useful for specifying the number of unique database ids this transaction will use. If the number of unique ids in a given user's cache is exhausted during the transaction, locking problems on the KID table may result.
Transactions created via the CAPI interface are reference counted. This means that the initial call to StartTransaction will actually begin the transaction and subsequent calls to StartTransaction, made before an EndTransaction, will simply increment a count. This way, multiple levels of an application can implement transaction control without having to be aware of the controlling code.
The CAPICONNECT or CAPILOGIN to be used for the transaction.
The number of unique ids to reserve for this transaction.
The Integer 0 if successful; Error otherwise.
Here is an example:
Integer status status = CAPI.StartTransaction( myConnect ) // A transaction starts. Refcount=1 ... MyFunction( myConnect ) // Call a subroutine ... CAPI.EndTransaction( myConnect, CAPI.COMMIT ) // The transaction is actually committed Function MyFunction( CAPICONNECT connect ) Integer status status = CAPI.StartTransaction( connect ) // Transaction refcount goes to 2 ... CAPI.EndTransaction( myConnect, CAPI.COMMIT ) // The refcount drops back to 1 end
Determines the current transaction depth or the current refCount for the specified connection or login. If a login is specified, the connection that is associated with the login will be used.
The CAPICONNECT or CAPILOGIN to be used for the transaction
An Integer representing the current transaction depth; Error otherwise.
Generates a new, unique ID from the internal Content Server ID cache. Each unique ID that is generated will be unique across the entire Content Server database. If the optional numIds parameter is used, the first id that was allocated will be returned but, the next n ids will be in consecutive order.
The CAPICONNECT or CAPILOGIN to be used for the transaction.
This parameter is no longer used. It should be 0.
The number of unique ids to be allocated.
The ID that was generated; Error otherwise.
Updates the rights list that is cached by the specified login. This call is useful for making sure that the rights list inside of a specified login remains in sync with the actual data in the Content Server database.
The CAPILOGIN which is to be refreshed.
The Integer 0 if successful; Error otherwise.
Returns the specified user's ID or allows an administrator to log-in as a particular user. If the optional userId is specified and the login is the Administrator's login, the Administrator login will be changed to represent a login for the specified user Id.
The CAPILOGIN for the user to be examined.
The user ID that the Administrator requests to login as.
An Integer indicating the user ID, if successful; Error otherwise.
Returns TRUE if the rights string query with multiple in clauses can be used for this current user.
The CAPILOGIN for the user to be examined.
A boolean indicating if the rights string query with multiple in clauses can be used.
Returns information about the current user for the specified CAPILOGIN object.
The CAPILOGIN for the user to be examined.
A RecArray containing a single record which will have the following fields:
Field | Type | Description |
---|---|---|
ID | Integer | The user ID |
OWNERID | Integer | The user ID of the user who created the group |
TYPE | Integer | The user's class membership type |
SPACEID | Integer | The ID of user's domain |
NAME | String | The name of the group of which the user is a member |
USERDATA | Dynamic | The user's information |
LEADERID | Integer | The user ID of the group leader |
DELETED | Integer | Indicates whether the user or group has been deleted |
GROUPID | Integer | The user's group ID |
USERPRIVILEGES | Integer | The user's privileges |
LASTNAME | String | The user's last name |
MIDDLENAME | String | The user's middle name |
FIRSTNAME | String | The user's first name |
MAILADDRESS | String | The user's e-mail address |
CONTACT | String | The contact data for the user or group |
TITLE | String | The user's title |
PWDEXPIREDATE | Date | The expiration date of the password |
PWDEXPIREMODE | Integer | Verifies that the current password is valid |
SETTINGSNUM | Integer | The checksum number of the user settings |
FAX | String | The user's office fax number |
OFFICELOCATION | String | The full address of the user's office location |
TIMEZONE | Integer | The user's timezone as an offset of GMT |
PHOTOID | Integer | The location of the user's personal photo |
GENDER | Integer | The user's gender; male is 0, female is 1, or unspecified |
BIRTHDAY | Date | The user's birthday |
PERSONALEMAIL | String | The user's personal e-mail address |
HOMEADDRESS1 | String | The user's home address |
HOMEADDRESS2 | String | The user's home address |
HOMEPHONE | String | The user's home phone number |
HOMEFAX | String | The user's home fax number |
CELLULARPHONE | String | The user's home cellular number |
PAGER | String | The user's home pager number |
HOMEPAGE | String | URL of the user's personal Web page |
FAVORITES1 | String | A user's favorite URL |
FAVORITES2 | String | A user's favorite URL |
FAVORITES3 | String | A user's favorite URL |
INTERESTS | String | A list of the user's hobbies or interests |
GROUPOWNERID | Integer | The user ID of the user who created the user's group |
GROUPTYPE | Integer | The class membership type of the user's group |
GROUPNAME | String | The name of the user's group |
GROUPUSERDATA | Dynamic | The group information for the user's group |
Copyright © 2022 OpenText Corporation. All rights reserved. |