Skip to end of banner
Go to start of banner

admGetSpace

Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 6 Next »

Syntax

admGetSpace(spaceKey)

Description

Returns an instance of CSpace struct, takes a space key as a parameter.

Parameters

Parameter name

Type

Required

Description

space key

stringtrueName of space to retrieve.

Return type

CSpace

Returns the space properties using the predefined CSpace structure. Returned properties are:

FieldType
idnumber
keystring
namestring
descriptionstring
creatorstring
createddate
updateddate

Example

CSpace space = admGetSpace("TST");
runnerLog("Id: " + formatNumber(space.id, "####"));
runnerLog("Key: " + space.key);
runnerLog("Name: " + space.name);
runnerLog("Description: " + space.description);
runnerLog("Creator: " + space.creator);
runnerLog("Created: " + formatDate(space.created, "MM/dd/yyyy"));
runnerLog("Created: " + formatDate(space.updated, "MM/dd/yyyy"));

See also

  • No labels