Resource functions
#
getResourceNameThe getResourceName function returns the name of the resource of the given resource id.
Syntax:
new NameSpace("resource").getResourceName(
Number
resourceId);
Parameters:
Param | Data type | Description |
---|---|---|
resourceId | Number | Id of the resource. |
Returns: String
Example:
name = new NameSpace("resource").getResourceName(1);log name;
#
getVisitorLogThe getVisitorLog function returns the log of the given visitorlog id.
Syntax:
new NameSpace("resource").getVisitorLog(
Number
visitorLogId);
Parameters:
Param | Data type | Description |
---|---|---|
visitorLogId | Number | Id of the log from visitorsLog. |
Returns: Object
Example:
logval = new NameSpace("resource").getVisitorLog(1);log logval;
#
getVisitorInviteThe getVisitorInvite function returns the invite details of the given id.
Syntax:
new NameSpace("resource").getVisitorInvite(
Number
visitorInviteId);
Parameters:
Param | Data type | Description |
---|---|---|
visitorInviteId | Number | Id of the visitor invite. |
Returns: Object
Example:
name = new NameSpace("resource").getVisitorInvite(1);log name;
#
getVendorThe getVendor function returns the vendor details of the given Id.
Syntax:
new NameSpace("resource").getVendor(
Number
vendorId);
Parameters:
Param | Data type | Description |
---|---|---|
vendorId | Number | Id of the vendor. |
Returns: Object
Example:
name = new NameSpace("resource").getVendor(1);log name;
#
getBaseSpaceThe getBaseSpace function returns the space details of the given Id.
Syntax:
new NameSpace("resource").getBaseSpace(
Number
spaceId);
Parameters:
Param | Data type | Description |
---|---|---|
spaceId | Number | Id of the space. |
Returns: Object
Example:
name = new NameSpace("resource").getBaseSpace(1);log name;