Row Object
Discussion
A Row object is a category that shows related information in a horizontal list. To use this object, first add categories to the report from the CategoryList object or open an existing report.
You can perform calculations, drill-up, drill-down, hide, rank and remove Row objects. You use an index to refer to the position of a Row object in the Rows collection.
Certain methods are only available in Reporter mode.
| Name |
Description |
|---|---|
| Accumulates all the values of the categories in the Row object. |
|
| Sets the focus on the Row object. |
|
| Adds a constant value or a category to the Row object. |
|
| Adds the lowest-level categories to a report. |
|
| Determines the average between either a constant value or another category and the Row object. |
|
| Returns whether you can drill down the Row object. |
|
| Returns whether you can drill up the Row object. |
|
| Returns the next child in the hierarchy for the Row object. |
|
| Adds a Cumulative Percent of Base Row object using a Column object as the base category. |
|
| Divides the Row object by either a constant value or another category. |
|
| Drills down the Row object. |
|
| Drills up the Row object. |
|
| Raises the Row object to the power of either another category or a constant value. |
|
| Hides the Row object. |
|
| Determines the maximum between either a constant value or another category and the Row object. |
|
| Determines the minimum between either a constant value or another category and the Row object. |
|
| Multiplies a constant value or another category by the Row object. |
|
| Adds a percent Row object based on either another category or a constant value. |
|
| Calculates the percentage change between two categories or measures. |
|
| Adds a Percent of Base Row object using a Column object as the base category. |
|
| Ranks and sorts the Column objects based on the Row object. |
|
| Removes the Row object from the report. |
|
| Groups categories containing calculated values to create a new, dynamic calculation. |
|
| Selects the Row object. |
|
| Selects a specific blank row. |
|
| Subtracts a constant value or another category from the Row object, or subtracts the Row object from the category or constant value. |
|
| De-selects the Row object. |
|
| Unselects a specific blank row. |
| Name |
Description |
|---|---|
| Returns the Application object. |
|
| Returns the text in a cell. |
|
| Returns the alignment applied to a cell value in a report. |
|
| Returns the font color applied to a cell value in a report. |
|
| Returns the name of the font applied to a cell value in a report. |
|
| Returns the size of the font applied to a cell value in a report. |
|
| Sets or returns the exception for the Row object. |
|
| Returns the position of the Row object in the Rows collection. |
|
| Returns whether the drill-down path is primary or alternate. |
|
| Returns whether the category is a calculated category. |
|
| Returns the alignment applied to a category label in a report. |
|
| Returns the font color applied to a category label in a report. |
|
| Returns the name of the font applied to a category label in a report. |
|
| Returns the size of the font applied to a category label in a report. |
|
| Returns the level of the category in a dimension. |
|
| Sets or returns the name of the Row object. |
|
| Returns the nested name for a category. |
|
| Returns the name of the parent category for the object. |
|
| Sets or returns the precedence used in complex calculations. |
|
| Sets or returns the style used for the Row object. |
|
| Returns the name of the dimension for the object. |
Example
This example opens a report, looks for the Column object "1996" in the Columns collection, changes the name to "Last Year", and saves the report.
Sub Main() Dim objPPRep as Object Set objPPRep = CreateObject ("CognosPowerPlay.Report") objPPRep.Open "C:\Cubes and Reports\Sample1.ppr" objPPRep.Rows.Item("1996").Name = "Last Year" objPPRep.Save Set objPPRep = Nothing End Sub