Show / Hide Table of Contents

Class NSCheckoutInfo

Information about the checked-out state of one document, describing whether it is checked out, and to whom.

Syntax

Constructors

NSCheckoutInfo()

Initializes a new instance of the NSCheckoutInfo class.

Introduced or updated in version: 7

Declaration
NSCheckoutInfo

Methods

GetAssociateId()

Introduced or updated in version: 7

Declaration
Integer GetAssociateId()
Returns
Type Description
Integer

ID of associate who has currently checked out the document; 0 if it is not checked out, or is checked out by someone who is not a SuperOffice user.

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

GetName()

Introduced or updated in version: 7

Declaration
String GetName()
Returns
Type Description
String

Name of person who has currently checked out the document; blank if it is not checked out.

Remarks

This property may also be blank if the AssociateId is nonzero; NetServer will retrieve the associates' name as needed.

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

GetState()

Introduced or updated in version: 7

Declaration
Integer GetState()
Returns
Type Description
Integer

The checkout state. See CheckoutState

Examples
NSCheckoutInfo thing;
Integer state = thing.GetState();

SetAssociateId(Integer)

Introduced or updated in version: 7

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

ID of associate who has currently checked out the document; 0 if it is not checked out, or is checked out by someone who is not a SuperOffice user.

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

SetName(String)

Introduced or updated in version: 7

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

Name of person who has currently checked out the document; blank if it is not checked out.

Returns
Type Description
Void
Remarks

This property may also be blank if the AssociateId is nonzero; NetServer will retrieve the associates' name as needed.

Examples
NSCheckoutInfo thing;
String name;
thing.SetName(name);

SetState(Integer)

Introduced or updated in version: 7

Declaration
Void SetState(Integer state)
Parameters
Type Name Description
Integer state

Checkout state. See CheckoutState.

Returns
Type Description
Void
Examples
NSCheckoutInfo thing;
Integer state;
thing.SetState(state);
© SuperOffice. All rights reserved.
SuperOffice |  Community |  Release Notes |  Privacy |  Site feedback |  Search Docs |  About Docs |  Contribute |  Back to top