The following methods are described below:
- getCell
- getChildren
- getSubItems
- getDependsOnItems
- getSupportsItems
- getValueList
- getPhases
- getIndicator
- setAnnotation
- getItemName
- getSubItemParent
- getHomePortfolio
- getUser
getCell
getCell (Method) | |
---|---|
Syntax |
|
Arguments |
|
Description | Returns the cell, of the specified category, of the item or portfolio on which the function is running. The return value is an object of the Cell type. Refer to the Cell table in Objects. |
Applies to | Advanced function only. |
Example |
|
getChildren
getChildren (Method) | |
---|---|
Syntax |
|
Arguments |
|
Description | Returns an array of cells, of the specified category, of all children of the portfolio on which the function is running. |
Applies to | Advanced and Vertical function (Advanced). |
Example |
|
getSubItems
getSubItems (Method) | |
---|---|
Syntax |
|
Arguments |
|
Description | Functions can be used to analyze sub-items. For example, they can calculate an item's budget by summing budget of its `Milestone' sub-items. A function can access the sub-items using any category as source data (including the target category itself). The information returned is an array of cells that belongs to the specified category. The elements of this array are objects of the SubItemCell type. Refer to the SubItemCell table in Objects. |
Applies to | Advanced function only. |
Example |
|
getDependsOnItems
getDependsOnItems (Method) | |
---|---|
Syntax |
|
Arguments |
|
Description | Functions can be used to analyze the impact of the dependencies. For example, they can calculate a project's health by considering the weighted impact of its dependencies. A function can access the item's associated dependencies using any category as source data (including the target category itself). This is true in both the `Depends On' and `Supports' directions. The item (or portfolio) that the function operates on may depend on other items (or portfolios). If such dependencies exist, the getDependsOnItems method returns information about the other item(s) or portfolio(s). The information returned is an array of cells that belongs to the specified category. The elements of this array are objects of the DependencyCell type. Refer to the DependencyCell table in Objects. |
Applies to | Advanced function only. |
Example |
|
getSupportsItems
getSupportsItems (Method) | |
---|---|
Syntax |
|
Arguments |
|
Description | Functions can be used to analyze the impact of the dependencies. For example, they can calculate a project's health by considering the weighted impact of its dependencies. A function can access the item's associated dependencies using any category as source data (including the target category itself). This is true in both the `Depends On' and `Supports' directions. The item (or portfolio) that the function operates on may support other items (or portfolios). If a supporting relationship exists, the getSupportsItems method returns information about the other item(s) or portfolio(s). The information returned is in the form of an array of cells that belongs to the specified category. The elements of this array are objects of the DependencyCell type. Refer to the DependencyCell table in Objects. |
Applies to | Advanced function only. |
Example |
|
getValueList
getValueList (Method) | |
---|---|
Syntax |
|
Arguments |
|
Description | Returns a float that specifies the value's weight. This syntax can be used to compare value list variables. |
Applies to | Advanced and vertical function (advanced). Note: The |
Example | If Risk is a value list category with High, Medium, and Low values, then the following horizontal formula is valid: ("Risk" == getValueList("Risk","High"))?1:0 ?: is the JavaScript conditional operator. The formula returns 1 if the item's Risk is High; otherwise it returns 0. This syntax may be used in an advanced function, as illustrated in the following example:
|
getPhases()
getPhases() (Method) | |
---|---|
Syntax |
|
Description | Returns an array of phases representing the life cycle of the item or portfolio on which the function is running. The elements of this array are objects of type 'Phase'. For more information refer to the Phase table in Objects. Note: The index for the current phase within the Phases array is stored in the CurrentPhaseIndex variable. See reserved words for more details. |
Applies to |
|
Example |
|
getIndicator
getIndicator (Method) | |
---|---|
Syntax |
|
Arguments |
|
Description | Returns the indicator, of the specified category, of the item or portfolio on which the function is running. The return value represents the cell's indicator, and is comparable to the Indicator property of a Cell. |
Applies to | Advanced function only. |
Examples |
|
setAnnotation
setAnnotation (Method) | |
---|---|
Syntax |
|
Arguments |
|
Description | Writes the annotation into the cell on which the function is running. |
Applies to | Advanced and vertical function (advanced). |
Example |
|
disableTodayOptimization
disableTodayOptimization (Method) | |
---|---|
Syntax |
|
Description | By default, a function which uses the today syntax propagates calculations to categories which depend on it, only if the function returns a different value than the current one. So if the category's current value is 3,000, and the categories function is triggered to return 3,000, depending functions will not be triggered and recalculated. By calling the disableTodayOptimization method, you can ensure that depending functions will be retriggered even if the result does not change the current value. |
Applies to | Advanced and vertical function (advanced). |
Example |
|
getItemName
getItemName (Method) | |
---|---|
Syntax |
|
Description | Returns the name of the item or portfolio that the function runs against. When used on the Value level, getItemName can return results as item names. To run this method on Portfolios, you must first define it in the Summary Value Advanced Function. |
Applies to | Advanced function only. |
Example |
|
getSubItemParent
getSubItemParent (Method) | |
---|---|
Syntax |
|
Description | Returns the category value of the item or portfolio that contains the sub-item that the function runs against. |
Applies to | Advanced function only. |
Example |
|
getHomePortfolio
getHomePortfolio (Method) | |
---|---|
Syntax |
|
Description | Returns the category value of the home portfolio that contains the item that the function runs against. |
Applies to | Advanced function only. |
Example |
|
getUser
getUser (Method) | |
---|---|
Syntax |
|
Description | Returns the user properties into a category. Note: This method can be called only on User type categories. |
Applies to | Advanced function only. |
Example |
|