Toggle menu
862
3.8K
30.2K
279.1K
Catglobe Wiki
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

GetResourceTemplateType: Difference between revisions

From Catglobe Wiki
jrfconvert import
 
Cg_pham (talk | contribs)
No edit summary
Line 1: Line 1:
[[Category:HelpBooks]]
[[Category:Resource_Functions]]





Revision as of 04:23, 23 March 2011



getResourceTemplateType

Gets the type of resource template from the resource template id, a set of numeric constants must be created, one for each existing resource template type.

Syntax

getResourceTemplateType(templateId)

Arguments

templateId: Is a number expression. It is the id of the resource template.

Return type

number. It is one of the pre-defined constants:

* UserResourceTemplate
* ProductResourceTemplate
* ProjectResourceTemplate
* FolderResourceTemplate
* GroupResourceTemplate
* TaskResourceTemplate
* AssetResourceTemplate
* TestCaseResourceTemplate

Examples

number type = getResourceTemplateType(1);

return (type == UserResourceTemplate);

Availability

Version 5.4