Show / Hide Table of Contents

Class NSAssociate

Carrier object for Associate.

Syntax

Constructors

NSAssociate()

Initializes a new instance of the NSAssociate class.

Introduced or updated in version: 7

Declaration
NSAssociate

Methods

GetAssociateId()

Introduced or updated in version: 7

Declaration
Integer GetAssociateId()
Returns
Type Description
Integer

Primary key.

Examples
NSAssociate thing;
Integer associateId = thing.GetAssociateId();

GetDeleted()

Introduced or updated in version: 7

Declaration
Bool GetDeleted()
Returns
Type Description
Bool

If true, the user is retired and should have no rights, not appear in lists, and so on.

Examples
NSAssociate thing;
Bool deleted = thing.GetDeleted();

GetEjUserId()

Introduced or updated in version: 7

Declaration
Integer GetEjUserId()
Returns
Type Description
Integer

ID of the ej user record corresponding to this associate; 0 for associates that are not ej users.

Examples
NSAssociate thing;
Integer ejUserId = thing.GetEjUserId();

GetFormalName()

Introduced or updated in version: 7

Declaration
String GetFormalName()
Returns
Type Description
String

The associate's culture formatted formalname (firstname, middleName and lastname, title, mrmrs).

Examples
NSAssociate thing;
String formalName = thing.GetFormalName();

GetFullName()

Introduced or updated in version: 7

Declaration
String GetFullName()
Returns
Type Description
String

The associate's culture formatted fullname (firstname, middleName and lastname).

Examples
NSAssociate thing;
String fullName = thing.GetFullName();

GetGroupIdx()

Introduced or updated in version: 7

Declaration
Integer GetGroupIdx()
Returns
Type Description
Integer

Primary group membership.

Remarks

See the UserGroupLink database table reference for secondary memberships.

Examples
NSAssociate thing;
Integer groupIdx = thing.GetGroupIdx();

GetName()

Introduced or updated in version: 7

Declaration
String GetName()
Returns
Type Description
String

Initials, also login name, possibly database user name.

Examples
NSAssociate thing;
String name = thing.GetName();

GetPersonId()

Introduced or updated in version: 7

Declaration
Integer GetPersonId()
Returns
Type Description
Integer

Owning person record.

Examples
NSAssociate thing;
Integer personId = thing.GetPersonId();

GetRank()

Introduced or updated in version: 7

Declaration
Integer GetRank()
Returns
Type Description
Integer

Rank order.

Examples
NSAssociate thing;
Integer rank = thing.GetRank();

GetTooltip()

Introduced or updated in version: 7

Declaration
String GetTooltip()
Returns
Type Description
String

Tooltip or other description.

Examples
NSAssociate thing;
String tooltip = thing.GetTooltip();

GetType()

Introduced or updated in version: 7

Declaration
Integer GetType()
Returns
Type Description
Integer

User type. See AssociateType

Examples
NSAssociate thing;
Integer type = thing.GetType();

GetUserName()

Introduced or updated in version: 8.5R08

Declaration
String GetUserName()
Returns
Type Description
String

User name.

Examples
NSAssociate thing;
String userName = thing.GetUserName();

SetAssociateId(Integer)

Introduced or updated in version: 7

Declaration
Void SetAssociateId(Integer associateId)
Parameters
Type Name Description
Integer associateId

Primary key.

Returns
Type Description
Void
Examples
NSAssociate thing;
Integer associateId;
thing.SetAssociateId(associateId);

SetDeleted(Bool)

Introduced or updated in version: 7

Declaration
Void SetDeleted(Bool deleted)
Parameters
Type Name Description
Bool deleted

If true, the user is retired and should have no rights, not appear in lists, and so on.

Returns
Type Description
Void
Examples
NSAssociate thing;
Bool deleted;
thing.SetDeleted(deleted);

SetEjUserId(Integer)

Introduced or updated in version: 7

Declaration
Void SetEjUserId(Integer ejUserId)
Parameters
Type Name Description
Integer ejUserId

ID of the ej user record corresponding to this associate; 0 for associates that are not ej users.

Returns
Type Description
Void
Examples
NSAssociate thing;
Integer ejUserId;
thing.SetEjUserId(ejUserId);

SetFormalName(String)

Introduced or updated in version: 7

Declaration
Void SetFormalName(String formalName)
Parameters
Type Name Description
String formalName

The associate's culture formatted formalname (firstname, middleName and lastname, title, mrmrs).

Returns
Type Description
Void
Examples
NSAssociate thing;
String formalName;
thing.SetFormalName(formalName);

SetFullName(String)

Introduced or updated in version: 7

Declaration
Void SetFullName(String fullName)
Parameters
Type Name Description
String fullName

The associate's culture formatted fullname (firstname, middleName and lastname).

Returns
Type Description
Void
Examples
NSAssociate thing;
String fullName;
thing.SetFullName(fullName);

SetGroupIdx(Integer)

Introduced or updated in version: 7

Declaration
Void SetGroupIdx(Integer groupIdx)
Parameters
Type Name Description
Integer groupIdx

Primary group membership.

Returns
Type Description
Void
Remarks

See the UserGroupLink database table reference for secondary memberships

Examples
NSAssociate thing;
Integer groupIdx;
thing.SetGroupIdx(groupIdx);

SetName(String)

Introduced or updated in version: 7

Declaration
Void SetName(String name)
Parameters
Type Name Description
String name

Initials, also login name, possibly database user name.

Returns
Type Description
Void
Examples
NSAssociate thing;
String name;
thing.SetName(name);

SetPersonId(Integer)

Introduced or updated in version: 7

Declaration
Void SetPersonId(Integer personId)
Parameters
Type Name Description
Integer personId

Owning person record.

Returns
Type Description
Void
Examples
NSAssociate thing;
Integer personId;
thing.SetPersonId(personId);

SetRank(Integer)

Introduced or updated in version: 7

Declaration
Void SetRank(Integer rank)
Parameters
Type Name Description
Integer rank

Rank order.

Returns
Type Description
Void
Examples
NSAssociate thing;
Integer rank;
thing.SetRank(rank);

SetTooltip(String)

Introduced or updated in version: 7

Declaration
Void SetTooltip(String tooltip)
Parameters
Type Name Description
String tooltip

Tooltip or other description.

Returns
Type Description
Void
Examples
NSAssociate thing;
String tooltip;
thing.SetTooltip(tooltip);

SetType(Integer)

Introduced or updated in version: 7

Declaration
Void SetType(Integer type)
Parameters
Type Name Description
Integer type

User type. See AssociateType.

Returns
Type Description
Void
Examples
NSAssociate thing;
Integer type;
thing.SetType(type);

SetUserName(String)

Introduced or updated in version: 8.5R08

Declaration
Void SetUserName(String userName)
Parameters
Type Name Description
String userName

User name.

Returns
Type Description
Void
Examples
NSAssociate thing;
String userName;
thing.SetUserName(userName);
© SuperOffice. All rights reserved.
SuperOffice |  Community |  Release Notes |  Privacy |  Site feedback |  Search Docs |  About Docs |  Contribute |  Back to top