Difference between revisions of "GetResourceTemplateType"
(2 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
[[Category:Resource_Functions]] | [[Category:Resource_Functions]] | ||
− | | + | [Obsolete - please use [[ResourceTemplate_class|ResourceTemplateHelper.GetTemplate(resourceTemplateId).ResourceTemplateType]]. More detail at [[ConversionMethods|ConversionMethods]] ] |
====getResourceTemplateType==== | ====getResourceTemplateType==== | ||
Line 18: | Line 18: | ||
number. It is one of the pre-defined constants: | number. It is one of the pre-defined constants: | ||
− | * UserResourceTemplate | + | * UserResourceTemplate : Value = 1 |
− | * ProductResourceTemplate | + | * ProductResourceTemplate : Value = 16 |
− | * ProjectResourceTemplate | + | * ProjectResourceTemplate : Value = 4 |
− | * FolderResourceTemplate | + | * FolderResourceTemplate : Value = 6 |
− | * GroupResourceTemplate | + | * GroupResourceTemplate : Value = 2 |
− | * TaskResourceTemplate | + | * TaskResourceTemplate : Value = 37 |
− | * AssetResourceTemplate | + | * AssetResourceTemplate : Value = 25 |
− | * TestCaseResourceTemplate | + | * TestCaseResourceTemplate : Value = 47 |
'''Examples''' | '''Examples''' |
Latest revision as of 03:37, 13 May 2022
[Obsolete - please use ResourceTemplateHelper.GetTemplate(resourceTemplateId).ResourceTemplateType. More detail at ConversionMethods ]
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 : Value = 1
* ProductResourceTemplate : Value = 16
* ProjectResourceTemplate : Value = 4
* FolderResourceTemplate : Value = 6
* GroupResourceTemplate : Value = 2
* TaskResourceTemplate : Value = 37
* AssetResourceTemplate : Value = 25
* TestCaseResourceTemplate : Value = 47
Examples
number type = getResourceTemplateType(1);
return (type == UserResourceTemplate);
Availability
Version 5.4