Known Direct Subclasses
|
Known Indirect Subclasses
|
The ReportGridTransformImpl generates the grid visualization of the data returned by a Report.
Take as example the following table:| Region |
Category |
Subcategory |
Quarter |
Q1 03 |
Q2 03 |
Q3 03 |
Q4 03 |
| Metrics |
Profit Forecast |
Profit Forecast |
Profit Forecast |
Profit Forecast |
|||
| Northwest |
Electronics |
Audio Equipment |
$2,737 |
$4,795 |
$3,351 |
$7,064 |
|
| Northwest |
Electronics |
Cameras |
$7,368 |
$11,930 |
$8,441 |
$11,252 |
|
| Northwest |
Electronics |
TV's |
$1,680 |
$4,239 |
$2,278 |
$3,778 |
|
| Northwest |
Movies |
Drama |
$1,114 |
$1,817 |
$1,361 |
$2,232 |
|
| Northwest |
Movies |
Special Interests |
$598 |
$1,167 |
$643 |
$1,078 |
|
| Northwest |
Music |
Pop |
$635 |
$978 |
$626 |
$1,158 |
|
As with any other Transforms, the output can be customized by extending public or protected render methods. In particular, this Transform defines 3 main public methods:
renderGrid(MarkupOutput): which generates the whole grid, and calls:
renderGridHeaders(MarkupOutput): which generates the top section:| Region |
Category |
Subcategory |
Quarter |
Q1 03 |
Q2 03 |
Q3 03 |
Q4 03 |
| Metrics |
Profit Forecast |
Profit Forecast |
Profit Forecast |
Profit Forecast |
renderGridData(MarkupOutput): which generates the bottom section:| Northwest |
Electronics |
Audio Equipment |
$2,737 |
$4,795 |
$3,351 |
$7,064 |
|
| Northwest |
Electronics |
Cameras |
$7,368 |
$11,930 |
$8,441 |
$11,252 |
|
| Northwest |
Electronics |
TV's |
$1,680 |
$4,239 |
$2,278 |
$3,778 |
|
| Northwest |
Movies |
Drama |
$1,114 |
$1,817 |
$1,361 |
$2,232 |
|
| Northwest |
Movies |
Special Interests |
$598 |
$1,167 |
$643 |
$1,078 |
|
| Northwest |
Music |
Pop |
$635 |
$978 |
$626 |
$1,158 |
|
This Transform allows to customize the content of every cell, for this reason, this
content is not generated internally, but is delegated to a class that
implements the ReportGridDisplayCell interface.
When the renderGrid method is invoked, the Transform starts iterating through
the grid's data. For each cell that it identifies needs to be rendered, it creates a
different ReportGridDisplayCell and initializes it with the corresponding information.
Depending on the cell type, an specialized ReportGridDisplayCell is created
with the relevant data. There are five types of cells:
ReportGridCellRowTitle)
| Region |
ReportGridCellColTitle)
| Quarter |
ReportGridCellRowHeader)
| Northwest |
ReportGridCellColHeader)
| Q4 03 |
ReportGridCellMetricValue)
| $7,368 |
The implementation class to use for each of these cells is controlled through a configuration file.
The name and location of the file to be used by the Transform is specified in the
gridClassesConfFile. Developers then, can create their own implementation of these classes
(or extend the default ones) that modifies the cell output.
In the report page, this Transform is also responsible for generating the
incremental fetch links for both, columns and rows. This functionality is
inherited from AbstractReportDataTransform
| Nested Classes | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| class | ReportGridTransformImpl.Context | Extends AbstractAppTransform.Context. |
|||||||||
| Constants | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| String | FP_IS_HTML_EXPORT | ||||||||||
|
[Expand]
Inherited Constants | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
From class
com.microstrategy.web.app.transforms.AbstractReportDataTransform
| |||||||||||
From class
com.microstrategy.web.app.transforms.AbstractAppTransform
| |||||||||||
| Fields | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| protected SharedCellProperties | _sharedCellProperties | ||||||||||
| protected FormalParameter | containerHeight | Specifies the height (in any measure accepted by the web-browser) of the <div> tag enclosing the grid's table. | |||||||||
| protected FormalParameter | containerWidth | Specifies the width (in any measure accepted by the web-browser) of the <div> tag enclosing the grid's table. | |||||||||
| protected FormalParameter | cssParentFontSize | This is the report's base font size. | |||||||||
| protected FormalParameter | cssPathParameter | Determines the CSS class path to for all CSS classes in a grid report. | |||||||||
| protected FormalParameter | cssUseRelativeFont | Determines whether to use relative font for the CSS. | |||||||||
| protected FormalParameter | dpiConversion | Indicates the dpi conversion factor to convert between inches and pixels (inches=pixels/dpiConversion). | |||||||||
| protected FormalParameter | drillLinkExtraURL | This is the code which we will append with the drill hyperlink tag for DHTML. | |||||||||
| protected FormalParameter | drillRetainParent | This is the FP which tells whether to retain the parent while drilling. | |||||||||
| protected FormalParameter | headerMetricValueOptimized | This is the parameter which decides if we move the common html attributes of non-metric headers and metric value cells to a map and is thus stored once. | |||||||||
| protected FormalParameter | heightMode | Determines whether the <div> tag enclosing the grid should have a fixed height, or should expand to fit the height of the grid's content. |
|||||||||
| protected FormalParameter | hideMetricsLabel | Hides the 'Metrics' label on the grid's titles. | |||||||||
| protected FormalParameter | ignoreSubtotal | It is used in the transform to specify whether to display subtotal cells. | |||||||||
| protected FormalParameter | imgActiveSortAsc | This is the image name for showing the active sort icon for ascending values. | |||||||||
| protected FormalParameter | imgActiveSortDesc | This is the image name for showing the active sort icon for descending values. | |||||||||
| protected FormalParameter | imgInActiveSortAsc | This is the image name for showing the inactive sort icon for ascending values. | |||||||||
| protected FormalParameter | imgInActiveSortDesc | This is the image name for showing the inactive sort icon for descending values. | |||||||||
| protected FormalParameter | isHTMLExport | ||||||||||
| protected ReportGridCellRowTitle | lastRowTitle | ||||||||||
| protected FormalParameter | maxSortAllowed | This is the value used in the transform to specify how many nested sorts will be allowed in the report. | |||||||||
| protected FormalParameter | mergeColHeaderPara | It is used in the transform to specify merge or repeat column headers. | |||||||||
| protected FormalParameter | overflowMode | If the |
|||||||||
| protected FormalParameter | showBandingPara | It is used in the transform to specify whether to show banding. | |||||||||
| protected FormalParameter | showDrillAdvanced | It is used in the transform to specify whether to allow advanced drilling. | |||||||||
| protected FormalParameter | showDrillCheckBox | It is used in the transform to specify whether to allow select filter - check box drilling. | |||||||||
| protected FormalParameter | showDrillDownOnly | It is used in the transform to specify whether to allow drilling to the child only. | |||||||||
| protected FormalParameter | showDrillHyperlink | It is used in the transform to specify whether to allow hyperlink drilling. | |||||||||
| protected FormalParameter | showDrillHyperlinkMetric | It is used in the transform to specify whether to allow hyperlink drilling for metrics. | |||||||||
| protected FormalParameter | showDrillMetric | It is used in the transform to specify whether to allow drilling on metrics. | |||||||||
| protected FormalParameter | showDrillRMC | It is used in the transform to specify whether to show Right Mouse Click menu for drill. | |||||||||
| protected FormalParameter | showDrillRMCMetric | It is used in the transform to specify whether to show Right Mouse Click menu for drill for metrics. | |||||||||
| protected FormalParameter | showFilterOnSelectionCheckBox | It is used in the transform to specify whether to allow filter on selection. | |||||||||
| protected FormalParameter | showSortButtonsForAttributes | This is the flag used in the transform to specify whether to show sort buttons for attributes (row titles). | |||||||||
| protected FormalParameter | showSortButtonsForMetrics | This is the flag used in the transform to specify whether to show sort buttons for metrics (column headers). | |||||||||
| protected FormalParameter | showSortRMCForAttributes | This is the flag used in the transform to specify whether to show sort right mouse click menu for attributes (row titles). | |||||||||
| protected FormalParameter | showSortRMCForMetrics | This is the flag used in the transform to specify whether to show sort right mouse click menu for metrics (column headers). | |||||||||
| protected FormalParameter | showUniqueDrillPaths | It is used in the transform to specify whether to show unique drill paths on context menus. | |||||||||
| protected FormalParameter | useImageOnEmptyCells | It is used in the transform to specify the use of transparent image on empty metric cells. | |||||||||
| protected FormalParameter | widthMode | Determines whether the <div> tag enclosing the grid should have a fixed width, or should expand to fit the width of the grid's content. |
|||||||||
| protected FormalParameter | wrapMetricValue | This is the parameter which decides if we wrap the metric values cells when displaying the report. | |||||||||
| protected FormalParameter | wrapRowHeader | This is the parameter which decides if we wrap the row header cells when displaying the report. | |||||||||
| protected FormalParameter | zoomFactor | Indicates the zoom factor to use for adjusting sizes. |
|||||||||
|
[Expand]
Inherited Fields | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
From class
com.microstrategy.web.app.transforms.AbstractReportGridTransform
| |||||||||||
From class
com.microstrategy.web.app.transforms.AbstractReportDataTransform
| |||||||||||
From class
com.microstrategy.web.app.transforms.AbstractReportTransform
| |||||||||||
From class
com.microstrategy.web.app.transforms.AbstractAppTransform
| |||||||||||
| Public Constructors | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
|
ReportGridTransformImpl()
Default no-args constructor.
| |||||||||||
| Public Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| boolean |
canAddThresholds()
Utility method for determining if all the privileges are enabled for displaying the user
the option to add thresholds to current element from the grid
| ||||||||||
| boolean |
canDrill()
Utility methood for determining if all the privileges are enabled for displaying the user
the option to drill on one element from the grid
| ||||||||||
| boolean |
canFilterOn()
Utility methood for determining if all the privileges are enabled for displaying the user
the option to filter on one element from the grid
| ||||||||||
| boolean |
canFormat()
Utility methood for determining if all the privileges are enabled for displaying the user
the option to format one element from the grid
| ||||||||||
| boolean |
canInsertShortcutMetric()
Utility methood for determining if all the privileges are enabled for displaying the user
the option to insert shortcut metrics on the grid
| ||||||||||
| boolean |
canModifyAttributeForm()
Utility methood for determining if all the privileges are enabled for displaying the user
the option to modify the attribute forms on one element from the grid
| ||||||||||
| boolean |
canPivot()
Utility methood for determining if all the privileges are enabled for displaying the user
the option to pivot one element from the grid
| ||||||||||
| boolean |
canRemoveFromGrid()
Utility methood for determining if all the privileges are enabled for displaying the user
the option to remove one element from the grid
| ||||||||||
| boolean |
canRemoveFromReport()
Utility methood for determining if all the privileges are enabled for displaying the user
the option to remove one element from the report
| ||||||||||
| boolean |
canRename()
Utility methood for determining if all the privileges are enabled for displaying the user
the option to rename one element from the grid
| ||||||||||
| boolean |
canResize()
Utility methood for determining if allowing users to resize columns of a linked template in rwd
| ||||||||||
| boolean |
canSort()
Utility methood for determining if all the privileges are enabled for displaying the user
the option to sort on one element from the grid
| ||||||||||
| WebEvent | getAdvancedDrillEvent() | ||||||||||
| WebEvent | getAdvancedDrillProcessEvent() | ||||||||||
| ContextMenuManager |
getContextMenuManager()
Returns the
ContextMenuManager instance used by this Transform. | ||||||||||
| WebEvent | getDerivedElementsEvent() | ||||||||||
| String |
getDescription()
Returns a textual description of this transform to be used in WYSIWYG tools.
| ||||||||||
| WebEvent | getDrillEditorProcessEvent() | ||||||||||
| WebEvent | getDrillEvent() | ||||||||||
| WebEvent | getDrillFilterOnSelectionEvent() | ||||||||||
| WebEvent |
getOpenAccordionEvent()
Returns the event to open the accordion.
| ||||||||||
| WebEvent |
getOpenObjectBrowserEvent()
Returns the event to open the ObjectBrowser.
| ||||||||||
| WebEvent | getRenameEvent() | ||||||||||
| WebEvent | getRwdDrillOutEvent() | ||||||||||
| WebEvent | getSortEvent() | ||||||||||
| boolean |
hasCenter()
This method is deprecated.
This method has been deprecated and will be removed in future versions of the product.
In its place, use a layout-xml to control the output.
| ||||||||||
| void |
initializeProperties()
Extends
initializeProperties by invoking initializeTranformContext
| ||||||||||
| void |
initializeTranformContext()
This method is deprecated.
please use instead the ReportGridTransformImpl.Context instance as context.
| ||||||||||
| void |
initializeTransform(Transformable data)
Extends
initializeTransform by initiliazing the grid cell classes
by calling initializeCellClasses | ||||||||||
| boolean |
isDrillRMCAvailableForMetricValue()
Utility method to check if Drill RMC is available.
| ||||||||||
| boolean |
isReportTruncated()
Returns the value of
getReportBean().getReportData().isReportTruncated(). | ||||||||||
| ReportGridCellColHeader |
newColHeader()
Creates and initialize a new
ReportGridCellColHeader with no underlying SDK object. | ||||||||||
| ReportGridCellColHeader |
newColHeader(WebTemplateMetric metric)
Creates and initialize a new
ReportGridCellColHeader with the given parameters. | ||||||||||
| ReportGridCellColHeader |
newColHeader(WebHeader header)
Creates and initialize a new
ReportGridCellColHeader with the given parameters. | ||||||||||
| ReportGridCellColTitle |
newColTitle(WebTemplateUnit unit)
Creates and initialize a new
ReportGridCellColTitle with the given parameters. | ||||||||||
| ReportGridCellColTitle |
newColTitle(WebTitle title, WebSubTitle subTitle, int subTitleIndex)
Creates and initialize a new
ReportGridCellColTitle with the given parameters. | ||||||||||
| ReportGridCellColTitle |
newColTitle(WebTitle title, int subTitleIndex)
Creates and initialize a new
ReportGridCellColTitle with the given parameters. | ||||||||||
| ReportGridCellColTitle |
newColTitle()
Creates and initialize a new
ReportGridCellColTitle with no underlying SDK object. | ||||||||||
| ReportGridCellColTitle |
newColTitle(WebTemplateUnit unit, int subtitleIndex)
Creates and initialize a new
ReportGridCellColTitle with the given parameters. | ||||||||||
| ReportGridCellColTitle |
newColTitle(WebTitle title, WebSubTitle subTitle, int subTitleIndex, boolean showSubTitleOnly)
Creates and initialize a new
ReportGridCellColTitle with the given parameters. | ||||||||||
| ReportGridCellColTitle |
newColTitle(WebTemplateUnit unit, WebAttributeForm form, int subtitleIndex, boolean showSubTitleOnly)
Creates and initialize a new
ReportGridCellColTitle with the given parameters. | ||||||||||
| ReportGridCellColTitle |
newColTitle(WebTitle title)
Creates and initialize a new
ReportGridCellColTitle with the given parameters. | ||||||||||
| ReportGridCellColTitle |
newColTitle(WebTemplateUnit unit, WebAttributeForm form, int subtitleIndex)
Creates and initialize a new
ReportGridCellColTitle with the given parameters. | ||||||||||
| ReportGridCellColHeader |
newEmptyColHeader()
Create and initialize a new
ReportGridCellColHeader with a drop units here message
with no underlying SDK object. | ||||||||||
| ReportGridCellMetricValue |
newEmptyMetricValue()
Creates and initialize a new
ReportGridCellMetricValue with a "drop objects here" message
with no underlying SDK object. | ||||||||||
| ReportGridCellRowHeader |
newEmptyRowHeader(int rowSpan)
Creates and returns an empty row header with the specified rowSpan.
| ||||||||||
| ReportGridCellRowHeader |
newEmptyRowHeader()
Create and initialize a new
ReportGridCellRowHeader with a "drop units here" message
with no underlying SDK object. | ||||||||||
| ReportGridCellRowTitle |
newEmptyRowTitle()
Creates and initialize a new
ReportGridCellRowTitle with no underlying SDK object. | ||||||||||
| ReportGridCellMetricValue |
newMetricValue(WebRowValue rowValue)
Creates and initialize a new
ReportGridCellMetricValue with the given parameters. | ||||||||||
| ReportGridCellMetricValue |
newMetricValue()
Creates and initialize a new
ReportGridCellMetricValue with no underlying SDK object. | ||||||||||
| ReportGridCellRowHeader |
newRowHeader()
Creates and initialize a new
ReportGridCellRowHeader with no underlying SDK object. | ||||||||||
| ReportGridCellRowHeader |
newRowHeader(WebTemplateMetric metric)
Creates and initialize a new
ReportGridCellRowHeader with the given parameters. | ||||||||||
| ReportGridCellRowHeader |
newRowHeader(WebHeader rowHeader)
Creates and initialize a new
ReportGridCellRowHeader with the given parameters. | ||||||||||
| ReportGridCellRowTitle |
newRowTitle()
Creates and initialize a new
ReportGridCellRowTitle with no underlying SDK object. | ||||||||||
| ReportGridCellRowTitle |
newRowTitle(WebTitle title, int subTitleIndex)
Creates and initialize a new
ReportGridCellRowTitle with the given parameters. | ||||||||||
| ReportGridCellRowTitle |
newRowTitle(WebTemplateUnit unit, WebAttributeForm form, int subtitleIndex)
Creates and initialize a new
ReportGridCellRowTitle with the given parameters. | ||||||||||
| ReportGridCellRowTitle |
newRowTitle(WebTemplateUnit unit, int subtitleIndex)
Creates and initialize a new
ReportGridCellRowTitle with the given parameters. | ||||||||||
| ReportGridCellRowTitle |
newRowTitle(WebTemplateUnit unit, int subtitleIndex, boolean showSubTitleOnly)
Creates and initialize a new
ReportGridCellRowTitle with the given parameters. | ||||||||||
| ReportGridCellRowTitle |
newRowTitle(WebTitle title, WebSubTitle subTitle, int subTitleIndex)
Creates and initialize a new
ReportGridCellRowTitle with the given parameters. | ||||||||||
| ReportGridCellRowTitle |
newRowTitle(WebTemplateUnit unit)
Creates and initialize a new
ReportGridCellRowTitle with the given parameters. | ||||||||||
| ReportGridCellRowTitle |
newRowTitle(WebTemplateUnit unit, WebAttributeForm form, int subtitleIndex, boolean showSubTitleOnly)
Creates and initialize a new
ReportGridCellRowTitle with the given parameters. | ||||||||||
| ReportGridCellRowTitle |
newRowTitle(WebTitle title)
Creates and initialize a new
ReportGridCellRowTitle with the given parameters. | ||||||||||
| ReportGridCellRowTitle |
newRowTitle(WebTitle title, WebSubTitle subTitle, int subTitleIndex, boolean showSubTitleOnly)
Creates and initialize a new
ReportGridCellRowTitle with the given parameters. | ||||||||||
| ReportGridCellRowTitle |
newRowTitle(WebTitle title, int subTitleIndex, boolean showSubTitleOnly)
Creates and initialize a new
ReportGridCellRowTitle with the given parameters. | ||||||||||
| void |
renderBottom(MarkupOutput out, ReportBean rb)
This method is deprecated.
This method has been deprecated and will be removed in future versions of the product.
In its place, users can control the output using a layout-xml.
| ||||||||||
| void |
renderCenter(MarkupOutput out, ReportBean rb)
This method is deprecated.
This method has been deprecated and will be removed in future versions of the product.
In its place, users can control the output using a layout-xml.
| ||||||||||
| void |
renderColTags(MarkupOutput out)
Generates the HTML for <col> tags for the main table.
| ||||||||||
| void |
renderColumnHeader(MarkupOutput out, ReportBean rb, WebHeader header)
Renders a single column header.
| ||||||||||
| void |
renderColumnHeaders(MarkupOutput out, ReportBean rb, WebHeaders colHeaders)
Renders the column headers of the report.
| ||||||||||
| void |
renderColumnTitle(MarkupOutput out, ReportBean rb, WebTitle title)
Renders a single column title.
| ||||||||||
| void | renderColumnTitle(MarkupOutput out, ReportBean rb, WebTitle title, int colSpan) | ||||||||||
| void |
renderColumnTitles(MarkupOutput out, ReportBean rb, WebGridTitles colTitles)
This method is deprecated.
This method has been deprecated and will be removed in future versions of the product.
| ||||||||||
| void |
renderCssLink(MarkupOutput out)
Extends
renderCssLink to generate the <style> tag necessary
for this report's format. | ||||||||||
| void |
renderCubeReportMessage(MarkupOutput out)
Renders a message to the end user indicating that the results of the cube report has been published
This method is called when the current report type is
Cube. | ||||||||||
| void |
renderData(MarkupOutput out, ReportBean rb, boolean renderMetricValues)
This method is deprecated.
This method has been deprecated and will be removed in future versions of the product.
In its place, use/extend the
renderGridData method.
| ||||||||||
| void |
renderData(MarkupOutput out, ReportBean rb)
This method is deprecated.
This method has been deprecated and will be removed in future versions of the product.
In its place, use/extend the
renderGridData method.
| ||||||||||
| void |
renderDatamartMessage(MarkupOutput out)
Renders a message to the end user indicating that the results of the report have been
stored in a table.
| ||||||||||
| void | renderDropZones(MarkupOutput out) | ||||||||||
| void |
renderEmptyCase(MarkupOutput out, ReportBean rb)
This method is deprecated.
This method has been deprecated and will be removed in future versions of the product.
In its place, use/extend the
renderEmptyGrid method.
| ||||||||||
| void |
renderEmptyGrid(MarkupOutput out)
Generates the HTML when the grid contains no data.
| ||||||||||
| void |
renderEmptyMessage(MarkupOutput out)
Generates the "no data" message for a grid.
| ||||||||||
| void |
renderExtraRowHeader(MarkupOutput out, WebHeader extraHeader, int rowSpan)
Renders an extra row header.
| ||||||||||
| void |
renderFirstSingleRow(MarkupOutput out, ReportBean rb, WebGridRows rows, boolean includeMetricValues)
Generates a single row of data with an empty metrics axis.
| ||||||||||
| void |
renderGrid(MarkupOutput out)
Renders the grid.
| ||||||||||
| void |
renderGridData(MarkupOutput out)
Generates the data content of the grid, this includes both
Row headers and metric values.
| ||||||||||
| void |
renderGridHeaders(MarkupOutput out)
Generates the top part of the report, that is, the row titles, column titles and
column headers.
| ||||||||||
| void |
renderIncRefresReportMessage(MarkupOutput out)
Renders a message to the end user indicating that the results of the cube report has been published
This method is called when the current report type is
Incremental Refresh. | ||||||||||
| void |
renderLayout(MarkupOutput out, ReportBean rb, boolean renderRowTitles, boolean renderColTitles, boolean renderColHeaders)
This method is deprecated.
This method has been deprecated and will be removed in future versions of the product.
In its place, use/extend the
renderGridHeaders method.
| ||||||||||
| void |
renderLayout(MarkupOutput out, ReportBean rb)
This method is deprecated.
This method has been deprecated and will be removed in future versions of the product.
In its place, use/extend the
renderGridHeaders method.
| ||||||||||
| void |
renderMaxRowsLimitMessage(MarkupOutput out)
Renders a message indicating that report exceeded the number of cells allowed by the
MicroStrategy Server.
| ||||||||||
| void |
renderMetricValue(MarkupOutput out, ReportBean rb, WebRowValue rowValue)
Renders a single metric value.
| ||||||||||
| void |
renderMetricValues(MarkupOutput out, ReportBean rb, WebRow row)
Renders the metric values of a single row.
| ||||||||||
| void |
renderNonViewableMessage(MarkupOutput out)
Renders a message to the end user indicating that the results of the report have been
stored in a table.
| ||||||||||
| void |
renderRowHeader(MarkupOutput out, ReportBean rb, WebHeader rowHeader, boolean displayTotalLabel)
Renders a single row header.
| ||||||||||
| void |
renderRowHeader(MarkupOutput out, ReportBean rb, WebHeader rowHeader)
This method is deprecated.
This method is not used anymore by the Transform. Instead use
renderRowHeader(MarkupOutput, ReportBean, WebHeader, boolean)
| ||||||||||
| void |
renderRowHeaders(MarkupOutput out, ReportBean rb, WebRow row)
Renders the row headers of a single row.
| ||||||||||
| void |
renderRowTitle(MarkupOutput out, ReportBean rb, WebTitle title)
Renders a single rowTitle.
| ||||||||||
| void |
renderRowTitles(MarkupOutput out, ReportBean rb, WebGridTitles rowTitles)
Renders the row titles of the report.
| ||||||||||
| void |
renderSingleRow(MarkupOutput out, ReportBean rb, WebRow row, boolean includeMetricValues)
Generates a single row of data.
| ||||||||||
| void |
renderSingleRow(MarkupOutput out, ReportBean rb, WebRow row)
Generates a single row of data.
| ||||||||||
| Protected Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| void |
buildDNDForEmptyGrid(MarkupOutput out)
This method is deprecated.
This method is not called anymore and it doesn't generate any HTML.
It's kept just for backwards compatibility.
| ||||||||||
| void |
checkAndRenderEmptyRowHeader(MarkupOutput out)
Renders the drag and drop zone as the empty row header at the left hand side of the grid
| ||||||||||
| void | checkAndRenderExtraColumn(MarkupOutput out) | ||||||||||
| String |
containerHeight()
Returns the value of the
containerWidth formal parameter (in pixels). | ||||||||||
| String |
containerWidth()
Returns the value of the
containerWidth formal parameter (in pixels). | ||||||||||
| Tag |
generateGridTable()
Creates the
TableTag instance that is used for the table holding the
report's data. | ||||||||||
| void |
generateJSForDrillCheckBoxesForIncFetch(MarkupOutput out, ReportBean rb)
This method is deprecated.
This method has been deprecated and will be removed in future versions of the product.
It is expected that these functionality will be part of the grid's bone.
| ||||||||||
| void |
generateJavaScriptForDrill(MarkupOutput out, ReportBean rb)
This method is deprecated.
This method has been deprecated and will be removed in future versions of the product.
It is expected that these control variables will be part of the grid's bone.
| ||||||||||
| void |
generateJavaScriptForResizeColumns(MarkupOutput out, ReportBean rb)
This method is deprecated.
This method has been deprecated and will be removed in future versions of the product.
It is expected that these control variables will be part of the grid's bone.
| ||||||||||
| void |
generatePreHTMLForResizeColumns(MarkupOutput out)
This method is deprecated.
This method is not called anymore and it doesn't generate any HTML.
It's kept just for backwards compatibility.
| ||||||||||
| void |
generateReportGridTable(MarkupOutput out, ReportBean rb, boolean specifyUniqueReportID)
This method is deprecated.
This method has been deprecated and will be removed in future versions of the product.
It's not used anymore. In its place you may call:
generateGridTable().renderOpenTag(out);
| ||||||||||
| Map |
getAttributesBoneDiv()
Generates the list of attributes used by a div surrounding the grid.
| ||||||||||
| Map |
getAttributesEmptyGridTable()
Generates the list of attributes used by an empty grid's table.
| ||||||||||
| Map |
getAttributesGridTable()
Generates the list of attributes used by the grid's table.
| ||||||||||
| Map |
getAttributesRow(WebRow row)
Generates the list of attributes used by <tr> of a single row.
| ||||||||||
| String | getCSSInformation(WebCSSHelper cssHelper) | ||||||||||
| int | getColTitleCount() | ||||||||||
| int |
getColTitleSpan()
Returns how many columns, the title cell spans over.
| ||||||||||
| String |
getContextMenuManagerName()
Returns the name to use for the
ContextMenuManager of this Transform. | ||||||||||
| String |
getCssGrid()
Returns the css class to be used by the grid table.
| ||||||||||
| boolean | getExtraColumn() | ||||||||||
| Tag |
getLockHeaderTag()
Generate the lock header tag information for the grid.
| ||||||||||
| RWGridGraphDef | getRWGridGraphDef() | ||||||||||
| int | getSubtitlesCount(WebTemplateUnit unit) | ||||||||||
| int |
heightMode()
This method is deprecated.
Please query directly the
heightMode formal parameter instead | ||||||||||
| boolean |
isDesignMode()
This methods allows the transform to identify if concrete subclasses
are designed to work in design mode, or in execute mode.
| ||||||||||
| boolean | isLockedHeaders() | ||||||||||
| boolean | isSpecifyIdForTitleCell() | ||||||||||
| boolean | isSpecifyWidthForCell() | ||||||||||
| boolean |
mergeColHeader()
This method is deprecated.
Please query directly the
mergeColHeaderPara formal parameter instead
| ||||||||||
| ReportGridCellHeader | newGridHeader(WebHeader header, String className) | ||||||||||
| ReportGridCellTitle | newGridTitle(WebTitle title, String className) | ||||||||||
| void |
onColumnHeader(ReportGridCellColHeader cell, MarkupOutput out)
This method is called when a column header needs to be rendered.
| ||||||||||
| void |
onColumnTitle(ReportGridCellColTitle cell, MarkupOutput out)
This method is called when a column title needs to be rendered.
| ||||||||||
| void |
onMetricValue(ReportGridCellMetricValue cell, MarkupOutput out)
This method is called when a metric value needs to be rendered.
| ||||||||||
| void |
onRowEnd(MarkupOutput out)
This method is called when row has finished.
| ||||||||||
| void |
onRowEnd(WebRow row, MarkupOutput out)
This method is called when row has finished.
| ||||||||||
| void |
onRowHeader(ReportGridCellRowHeader cell, MarkupOutput out)
This method is called when a row header needs to be rendered.
| ||||||||||
| void |
onRowStart(WebRow row, MarkupOutput out)
This method is called when a new row needs to be rendered.
| ||||||||||
| void |
onRowStart(MarkupOutput out)
This method is called when a new row needs to be rendered.
| ||||||||||
| void |
onRowTitle(ReportGridCellRowTitle cell, MarkupOutput out)
This method is called when a row title needs to be rendered.
| ||||||||||
| int |
overflowMode()
Returns the value of the
overflowMode formal parameter. | ||||||||||
| void |
renderColTagsHtml(MarkupOutput out, int dpi, double zoom)
Renders the col tags for a grid column widths.
| ||||||||||
| void |
renderContextMenus(MarkupOutput out)
Generates the HTML used for client-side context (right mouse click) menus.
| ||||||||||
| void |
renderCustomGroups(MarkupOutput out, ReportGridCellRowTitle cell, int rowSpan)
Renders custom groups on the grid template.
| ||||||||||
| void | renderEmptyGridRows(MarkupOutput out) | ||||||||||
| void |
renderGridData(MarkupOutput out, boolean includeMetricValues)
Generates the data content of the grid, this includes both
Row headers and metric values.
| ||||||||||
| void |
renderGridHeaders(MarkupOutput out, boolean includeColumnHeaders)
Generates the top part of the report, that is, the row titles, column titles and
column headers.
| ||||||||||
| void |
renderGridTitles(MarkupOutput out)
Convenience method to generate only the grid titles, that is row and column titles.
| ||||||||||
| void |
renderJavascript(MarkupOutput out)
This method renders the javascript code that needs to be generated
on the server side because its content is dynamic.
| ||||||||||
| void |
renderLockHeadersInfo(MarkupOutput out)
Generates divs that allows the headers to be "locked" in the browser window.
| ||||||||||
| void |
renderRegisterBone(MarkupOutput out)
If a scriptClass is specified, this method registers the corresponding
javascript bone for this component.
| ||||||||||
| void |
renderRowHeaders(MarkupOutput out)
Convenience method to generate only the row headers (all row headers).
| ||||||||||
| void |
renderRowTitlesAccessibility(MarkupOutput out, ReportBean rb, WebGridTitles rowTitles)
Renders an empty list of row titles.
| ||||||||||
| void |
setBoneProperties(JsonGenerator boneProps)
Sets the necessary properties to the bone assigned to this transform (based on the
scriptClass formal parameter) Usually called by renderRegisterBone(MarkupOutput)Can be overwritten to add or modify bone properties. | ||||||||||
| boolean |
showColHeaders()
Check whether the
Template Formatting property ShowColumnHeaders is true or false. | ||||||||||
| boolean | showEmptyAxis() | ||||||||||
| boolean | showEmptyAxisCssLink() | ||||||||||
| boolean | showEmptyColAxis() | ||||||||||
| boolean | showEmptyMetricAxis() | ||||||||||
| boolean | showEmptyRowAxis() | ||||||||||
| boolean |
showRowHeaders()
Check whether the
Template Formatting property ShowRowHeaders is true or false. | ||||||||||
| void | updateDynamicScriptFileInformation() | ||||||||||
| int |
widthMode()
This method is deprecated.
Please query directly the
widthMode formal parameter instead
| ||||||||||
|
[Expand]
Inherited Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
From class
com.microstrategy.web.app.transforms.AbstractReportGridTransform
| |||||||||||
From class
com.microstrategy.web.app.transforms.AbstractReportDataTransform
| |||||||||||
From class
com.microstrategy.web.app.transforms.AbstractReportTransform
| |||||||||||
From class
com.microstrategy.web.app.transforms.AbstractWebBeanTransform
| |||||||||||
From class
com.microstrategy.web.app.transforms.AbstractAppTransform
| |||||||||||
From class
com.microstrategy.web.transform.AbstractLayoutTransform
| |||||||||||
From class
com.microstrategy.web.transform.AbstractTransform
| |||||||||||
From class
java.lang.Object
| |||||||||||
From interface
com.microstrategy.web.app.transforms.AppTransform
| |||||||||||
From interface
com.microstrategy.web.app.transforms.ReportDataTransform
| |||||||||||
From interface
com.microstrategy.web.transform.LayoutTransform
| |||||||||||
From interface
com.microstrategy.web.transform.Transform
| |||||||||||
Specifies the height (in any measure accepted by the web-browser)
of the <div> tag enclosing the grid's table. Only used when the
heightMode is set to be fixed.
Specifies the width (in any measure accepted by the web-browser)
of the <div> tag enclosing the grid's table. Only used when the
widthMode is set to be fixed.
This is the report's base font size.
Used when generating the report's CSS classes with the WebCSSHelper.
Allowed Values: positive integer values.
Determines the CSS class path to for all CSS classes in a grid report.
This class will be appended as a prefix to all the CSS classes generated by the
WebCSSHelper with a '.' at the beginning
Determines whether to use relative font for the CSS.
Used when generating the report's CSS classes with the WebCSSHelper.
It should be of BOOLEAN type.
Indicates the dpi conversion factor to convert between inches and pixels (inches=pixels/dpiConversion).
This is the code which we will append with the drill hyperlink tag for DHTML.
Allowed Values: String values.
This is the FP which tells whether to retain the parent while drilling.
If a value is specified here, then the drill Preference on the preference page for the same is ignored.
Allowed Values:
PreferencesDrillTransform.DRILL_OPTION_DRILL_ANYWHERE = "1";
PreferencesDrillTransform.DRILL_OPTION_DRILL_HYPERLINKS = "2";
PreferencesDrillTransform.DRILL_OPTION_SIMPLE_DRILL = "3";
PreferencesDrillTransform.DRILL_OPTION_NO_DRILL = "4";
PreferencesDrillTransform.DRILL_OPTION_REPORT_DEFINITION = "5";
This is the parameter which decides if we move the common html attributes of non-metric headers
and metric value cells to a map and is thus stored once.
Allowed Values: TRUE/FALSE.
Determines whether the <div> tag enclosing the grid should have a fixed height, or should expand to fit the height of the grid's content.
Allowed values:containerHeight property must
also be specified.Hides the 'Metrics' label on the grid's titles.
Allowed Values: TRUE/FALSE.
It is used in the transform to specify whether to display subtotal cells.
Allowed Values: TRUE/FALSE.
This is the image name for showing the active sort icon for ascending values.
Allowed Values: The value to indicate should be a valid image file name, with any necessary path information
not included already on the resourcesFolderImage application configuration parameter.
This is the image name for showing the active sort icon for descending values.
Allowed Values: The value to indicate should be a valid image file name, with any necessary path information
not included already on the resourcesFolderImage application configuration parameter.
This is the image name for showing the inactive sort icon for ascending values.
Allowed Values: The value to indicate should be a valid image file name, with any necessary path information
not included already on the resourcesFolderImage application configuration parameter.
This is the image name for showing the inactive sort icon for descending values.
Allowed Values: The value to indicate should be a valid image file name, with any necessary path information
not included already on the resourcesFolderImage application configuration parameter.
This is the value used in the transform to specify how many nested sorts will be allowed in the report.
Allowed Values: positive integer values.
It is used in the transform to specify merge or repeat column headers.
Allowed Values: TRUE/FALSE.
If the widthMode or heightMode
is set to be fixed, this parameter specifies what should happen with the <div>'s
content if it overflows the space specified by the containerHeight or
containerWidth parameters.
It is used in the transform to specify whether to show banding. It only applies to reports that don't use built-in formattings (i.e. reports from old projects).
Allowed Values: TRUE/FALSE.
It is used in the transform to specify whether to allow advanced drilling.
Allowed Values: TRUE/FALSE.
It is used in the transform to specify whether to allow select filter - check box drilling.
Allowed Values: TRUE/FALSE.
It is used in the transform to specify whether to allow drilling to the child only.
Allowed Values: TRUE/FALSE.
It is used in the transform to specify whether to allow hyperlink drilling.
Allowed Values: TRUE/FALSE.
It is used in the transform to specify whether to allow hyperlink drilling for metrics.
Allowed Values: TRUE/FALSE.
It is used in the transform to specify whether to allow drilling on metrics.
Allowed Values: TRUE/FALSE.
It is used in the transform to specify whether to show Right Mouse Click menu for drill.
Allowed Values: TRUE/FALSE.
It is used in the transform to specify whether to show Right Mouse Click menu for drill for metrics.
Allowed Values: TRUE/FALSE.
It is used in the transform to specify whether to allow filter on selection.
Allowed Values: TRUE/FALSE.
This is the flag used in the transform to specify whether to show sort buttons for attributes (row titles).
Allowed Values: TRUE/FALSE.
This is the flag used in the transform to specify whether to show sort buttons for metrics (column headers).
Allowed Values: TRUE/FALSE.
This is the flag used in the transform to specify whether to show sort right mouse click menu for attributes (row titles).
Allowed Values: TRUE/FALSE.
This is the flag used in the transform to specify whether to show sort right mouse click menu for metrics (column headers).
Allowed Values: TRUE/FALSE.
It is used in the transform to specify whether to show unique drill paths on context menus.
Allowed Values: TRUE/FALSE.
It is used in the transform to specify the use of transparent image on empty metric cells.
Allowed Values: TRUE/FALSE.
It is recommended for this formal paramter to be set to false, as using images for empty
cells might degrade performance.
Determines whether the <div> tag enclosing the grid should have a fixed width, or should expand to fit the width of the grid's content.
Allowed values:containerWidth property must
also be specified.This is the parameter which decides if we wrap the metric values cells when displaying the report. It was added to support older browsers that ignore WordWrap in css (which is how the Word Wrap property in the grid formatting dialog works). In newer browsers, the user has complete control. It's usually mapped to the "wrapRowHeader" preference (set at the project level by the administrator) and set through the style catalog. It affects the transform's output as follow:
true, users with Internet Explorer 5.5 and greater-word wrapping is
controlled by the "Wrap text" setting on the Format panel (on the Alignment tab);
users with Internet Explorer 5.0 and less and Netscape Navigator 4.7-word wrapping is
allowed in all attribute element cells.
false, users with IE 5.5 and greater-word wrapping for the attribute
element cells that are in the rows (on the left of the grid) is not allowed. Word wrapping in all
other cells is still controlled by the "Wrap text" setting on the Format panel (on the Alignment tab);
users with Internet Explorer 5.0 and below-word wrapping for the attribute element cells that
are in the rows (on the left of the grid) is not allowed. Word wrapping is allowed in all other cells.
This is the parameter which decides if we wrap the row header cells when displaying the report. It was added to support older browsers that ignore WordWrap in css (which is how the Word Wrap property in the grid formatting dialog works). In newer browsers, the user has complete control. It's usually mapped to the "wrapRowHeader" preference (set at the project level by the administrator) and set through the style catalog. It affects the transform's output as follow:
true, users with Internet Explorer 5.5 and greater-word wrapping is
controlled by the "Wrap text" setting on the Format panel (on the Alignment tab);
users with Internet Explorer 5.0 and less and Netscape Navigator 4.7-word wrapping is
allowed in all attribute element cells.
false, users with IE 5.5 and greater-word wrapping for the attribute
element cells that are in the rows (on the left of the grid) is not allowed. Word wrapping in all
other cells is still controlled by the "Wrap text" setting on the Format panel (on the Alignment tab);
users with Internet Explorer 5.0 and below-word wrapping for the attribute element cells that
are in the rows (on the left of the grid) is not allowed. Word wrapping is allowed in all other cells.
Indicates the zoom factor to use for adjusting sizes. Fonts, column widths and other size related features will adjust their values by this percentage.
Default value: 100.Default no-args constructor.
Creates and initializes formal parameters.
Utility method for determining if all the privileges are enabled for displaying the user the option to add thresholds to current element from the grid
Utility methood for determining if all the privileges are enabled for displaying the user the option to drill on one element from the grid
Utility methood for determining if all the privileges are enabled for displaying the user the option to filter on one element from the grid
Utility methood for determining if all the privileges are enabled for displaying the user the option to format one element from the grid
Utility methood for determining if all the privileges are enabled for displaying the user the option to insert shortcut metrics on the grid
Utility methood for determining if all the privileges are enabled for displaying the user the option to modify the attribute forms on one element from the grid
Utility methood for determining if all the privileges are enabled for displaying the user the option to pivot one element from the grid
Utility methood for determining if all the privileges are enabled for displaying the user the option to remove one element from the grid
Utility methood for determining if all the privileges are enabled for displaying the user the option to remove one element from the report
Utility methood for determining if all the privileges are enabled for displaying the user the option to rename one element from the grid
Utility methood for determining if allowing users to resize columns of a linked template in rwd
Utility methood for determining if all the privileges are enabled for displaying the user the option to sort on one element from the grid
Returns the ContextMenuManager instance used by this Transform.
This method will return a non-null instance, even if context menus are not enabled
for this transform (i.e. if isContextMenusEnabled() returns false).
Returns a textual description of this transform to be used in WYSIWYG tools.
Returns the event to open the accordion. This is used in the case that the grid is empty so the users can open the browser and add objects.
Returns the event to open the ObjectBrowser. This is used in the case that the grid is empty so the users can open the browser and add objects.
This method is deprecated.
This method has been deprecated and will be removed in future versions of the product.
In its place, use a layout-xml to control the output.
Whether the transform has the center area.
Out of box, it returns true.
Extends initializeProperties by invoking initializeTranformContext
This method is deprecated.
please use instead the ReportGridTransformImpl.Context instance as context.
Initialize the transform context object.
This object is later passed to the ReportGridDisplayCell instances
so they have information about the transform.
Extends initializeTransform by initiliazing the grid cell classes
by calling initializeCellClasses
| data | the bean to transform. |
|---|
Utility method to check if Drill RMC is available.
Returns the value of getReportBean().getReportData().isReportTruncated().
This indicates that this report has exceeded the maximum amount of rows allowed by the
administrator, therefore the data has been truncated.
true if the report data has been truncated.Creates and initialize a new ReportGridCellColHeader with no underlying SDK object.
Creates and initialize a new ReportGridCellColHeader with the given parameters.
Creates and initialize a new ReportGridCellColHeader with the given parameters.
Creates and initialize a new ReportGridCellColTitle with the given parameters.
Creates and initialize a new ReportGridCellColTitle with the given parameters.
Creates and initialize a new ReportGridCellColTitle with the given parameters.
Creates and initialize a new ReportGridCellColTitle with no underlying SDK object.
Creates and initialize a new ReportGridCellColTitle with the given parameters.
Creates and initialize a new ReportGridCellColTitle with the given parameters.
Creates and initialize a new ReportGridCellColTitle with the given parameters.
Creates and initialize a new ReportGridCellColTitle with the given parameters.
Creates and initialize a new ReportGridCellColTitle with the given parameters.
Create and initialize a new ReportGridCellColHeader with a drop units here message
with no underlying SDK object.
Creates and initialize a new ReportGridCellMetricValue with a "drop objects here" message
with no underlying SDK object.
Creates and returns an empty row header with the specified rowSpan.
| rowSpan | The number of rows you expect the new header to span over. |
|---|
Create and initialize a new ReportGridCellRowHeader with a "drop units here" message
with no underlying SDK object.
Creates and initialize a new ReportGridCellRowTitle with no underlying SDK object.
Creates and initialize a new ReportGridCellMetricValue with the given parameters.
Creates and initialize a new ReportGridCellMetricValue with no underlying SDK object.
Creates and initialize a new ReportGridCellRowHeader with no underlying SDK object.
Creates and initialize a new ReportGridCellRowHeader with the given parameters.
Creates and initialize a new ReportGridCellRowHeader with the given parameters.
Creates and initialize a new ReportGridCellRowTitle with no underlying SDK object.
Creates and initialize a new ReportGridCellRowTitle with the given parameters.
Creates and initialize a new ReportGridCellRowTitle with the given parameters.
Creates and initialize a new ReportGridCellRowTitle with the given parameters.
Creates and initialize a new ReportGridCellRowTitle with the given parameters.
Creates and initialize a new ReportGridCellRowTitle with the given parameters.
Creates and initialize a new ReportGridCellRowTitle with the given parameters.
Creates and initialize a new ReportGridCellRowTitle with the given parameters.
Creates and initialize a new ReportGridCellRowTitle with the given parameters.
Creates and initialize a new ReportGridCellRowTitle with the given parameters.
Creates and initialize a new ReportGridCellRowTitle with the given parameters.
This method is deprecated.
This method has been deprecated and will be removed in future versions of the product.
In its place, users can control the output using a layout-xml.
Render bottom area of the transform.
Out of box, we are displaying a message if the report is truncated because the number of report cells is exceeding limit.
Then we display the incremental fetch for row, if the formal parameter "showIncreFetchForRowOnBottom" is true.
Sample source code for this method is provided below.
if (isReportTruncated()) {
renderMaxRowsLimitMessage(out);
}
if (isTrue(showIncreFetchForRowOnBottom)) {
renderIncreFetchOnRow(out, getReportBean());
}
| out | MarkupOutput to generate the HTML. |
|---|---|
| rb | ReportBean being transformed (ignored, always uses the bean passed to the
initializeTransform method). |
This method is deprecated.
This method has been deprecated and will be removed in future versions of the product.
In its place, users can control the output using a layout-xml.
Renders the center area of the Transform, that is, the grid.
This method first checks if the grid is emtpy, and calls renderEmptyGrid,
otherwise it checks if its a datamart, and calls renderDatamartMessage. By default
it just calls renderGrid.
Sample source code for this method is provided below.
if (isGridEmpty()) {
renderEmptyGrid(out);
} else if (isDatamart()) {
renderDatamartMessage(out);
} else {
renderGrid(out);
}
| out | MarkupOutput to generate the HTML. |
|---|---|
| rb | ReportBean being transformed (ignored, always uses the bean passed to the
initializeTransform method). |
Generates the HTML for <col> tags for the main table.
This tags control the width of the column in the grid.
| out | MarkupOutput to generate the HTML. |
|---|
Renders a single column header.
Basically, it creates
a new ReportGridCellColHeader using the newColHeader
method, and calls onColumnHeader.
| out | MarkupOutput to generate the HTML. |
|---|---|
| rb | ReportBean being transformed (ignored, always uses the bean passed to the
initializeTransform method). |
| header | the corresponding WebHeader |
Renders the column headers of the report.
Basically, it iterates through the colHeaders collection and calls renderColumnHeader,
for example:
for (int i = 0; i < colHeaders.size(); i++) {
renderColumnHeader(out, rb, colHeaders.get(i));
}
| out | MarkupOutput to generate the HTML. |
|---|---|
| rb | ReportBean being transformed (ignored, always uses the bean passed to the
initializeTransform method). |
| colHeaders | the corresponding WebHeaders |
Renders a single column title.
It creates the ReportGridCellColTitle using the newColTitle
method, and calls onColumnTitle
| out | MarkupOutput to generate the HTML. |
|---|---|
| rb | ReportBean being transformed (ignored, always uses the bean passed to the
initializeTransform method). |
| title | the corresponding WebTitle |
This method is deprecated.
This method has been deprecated and will be removed in future versions of the product.
This method has never been used, nor implemented. It's kept only for backwards compatibility.
| out | MarkupOutput to generate the HTML. |
|---|---|
| rb | ReportBean being transformed (ignored, always uses the bean passed to the
initializeTransform method). |
| colTitles | collection of grid titles being rendered. |
Extends renderCssLink to generate the <style> tag necessary
for this report's format.
This can be controlled with the useBuiltInFormat
FormalParameter: if it is false, even if the report has built-in format information from the
iServer, this will not be generated and will just call super.renderCssLink
| out | MarkupOutput to generate the HTML. |
|---|
Renders a message to the end user indicating that the results of the cube report has been published
This method is called when the current report type is Cube.
| out | MarkupOutput to generate the HTML. |
|---|
This method is deprecated.
This method has been deprecated and will be removed in future versions of the product.
In its place, use/extend the renderGridData method.
Generates the data content of the grid, this includes both Row headers and metric values.
| out | MarkupOutput to generate the HTML. |
|---|---|
| rb | ReportBean being transformed (ignored, always uses the bean passed to the
initializeTransform method). |
| renderMetricValues | whether to include metric values or not |
This method is deprecated.
This method has been deprecated and will be removed in future versions of the product.
In its place, use/extend the renderGridData method.
Generates the data content of the grid, this includes both Row headers and metric values.
| out | MarkupOutput to generate the HTML. |
|---|---|
| rb | ReportBean being transformed (ignored, always uses the bean passed to the
initializeTransform method). |
Renders a message to the end user indicating that the results of the report have been
stored in a table. This method is called when the current report type is Datamart.
| out | MarkupOutput to generate the HTML. |
|---|
This method is deprecated.
This method has been deprecated and will be removed in future versions of the product.
In its place, use/extend the renderEmptyGrid method.
Generates the HTML when the grid contains no data.
| out | MarkupOutput to generate the HTML. |
|---|---|
| rb | ReportBean being transformed (ignored, always uses the bean passed to the
initializeTransform method). |
Generates the HTML when the grid contains no data.
It simply creates an empty table and call the renderEmptyMessage method.
In case this Transform is used in the context of Documents (ReportWriting),
nothing is generated.
| out | MarkupOutput to generate the HTML. |
|---|
Generates the "no data" message for a grid.
It checks whether the grid is empty
because the template contains no objects, or just because the current selection
in the page-by generates no data, and renders the appropriate message.
| out | MarkupOutput to generate the HTML. |
|---|
Renders an extra row header.
It creates the ReportGridCellRowHeader using the extraHeader
method, and calls onRowHeader.
This method is mainly used for #809124, if row span is larger than 8190 we need to divide
the original td cell and render extra td cells. This method uses the cached row header to
render a new cell with expected row span.
| out | MarkupOutput to generate the HTML. |
|---|---|
| extraHeader | the cached rowHeader. |
| rowSpan | the expected row span for this extra cell. |
Generates a single row of data with an empty metrics axis. It calls:
showRowHeaders return true).
includeMetricValues argument is true).
| out | MarkupOutput to generate the HTML. |
|---|---|
| rb | ReportBean being transformed (ignored, always uses the bean passed to the
initializeTransform method). |
| rows | entire WebGridRows collection |
| includeMetricValues | true if metric values show be included. False otherwise. |
Renders the grid.
It calls renderGridHeaders and renderGridData.
It also calls renderLockHeadersInfo to generates divs necessary
with this feature.
Sample source code for this method is provided below.
Tag tableTag = generateGridTable(); renderColTags(tableTag.getContent()); renderGridHeaders(tableTag.getContent()); renderGridData(tableTag.getContent()); tableTag.render(out); renderLockHeadersInfo(out);
| out | MarkupOutput to generate the HTML. |
|---|
Generates the data content of the grid, this includes both Row headers and metric values.
| out | MarkupOutput to generate the HTML. |
|---|
Generates the top part of the report, that is, the row titles, column titles and column headers.
| out | MarkupOutput to generate the HTML. |
|---|
Renders a message to the end user indicating that the results of the cube report has been published
This method is called when the current report type is Incremental Refresh.
| out | MarkupOutput to generate the HTML. |
|---|
This method is deprecated.
This method has been deprecated and will be removed in future versions of the product.
In its place, use/extend the renderGridHeaders method.
Generates the top part of the report, that is, the row titles, column titles and column headers.
| out | MarkupOutput to generate the HTML. |
|---|---|
| rb | ReportBean being transformed (ignored, always uses the bean passed to the
initializeTransform method). |
| renderRowTitles | ignored, this argument is not used anymore. |
| renderColTitles | ignored, this argument is not used anymore. |
| renderColHeaders | to decide whether to include column headers in the output. |
This method is deprecated.
This method has been deprecated and will be removed in future versions of the product.
In its place, use/extend the renderGridHeaders method.
Generates the top part of the report, that is, the row titles, column titles and column headers.
| out | MarkupOutput to generate the HTML. |
|---|---|
| rb | ReportBean being transformed (ignored, always uses the bean passed to the
initializeTransform method). |
Renders a message indicating that report exceeded the number of cells allowed by the MicroStrategy Server.
| out | MarkupOutput to generate the HTML. |
|---|
Renders a single metric value.
If this cell is for a total, it will check the ignoreSubtotal Formal Parameter
and if true, it will just ignore this cell, otherwise it creates
a new ReportGridCellMetricValue using the newMetricValue
method, and calls onMetricValue.
| out | MarkupOutput to generate the HTML. |
|---|---|
| rb | ReportBean being transformed (ignored, always uses the bean passed to the
initializeTransform method). |
| rowValue | the corresponding WebRowValue |
Renders the metric values of a single row.
Basically, it iterates through the rowHeaders collection and calls renderMetricValue,
for example:
for (int j = 0; j < row.size(); j++) {
renderMetricValue(out, rb, row.get(j));
}
| out | MarkupOutput to generate the HTML. |
|---|---|
| rb | ReportBean being transformed (ignored, always uses the bean passed to the
initializeTransform method). |
| row | the corresponding WebRow |
Renders a message to the end user indicating that the results of the report have been
stored in a table. This method is called when the current report type is Datamart, Cube, Incremental Refresh.
| out | MarkupOutput to generate the HTML. |
|---|
Renders a single row header.
It creates the ReportGridCellRowHeader using the newRowHeader
method, and calls onRowHeader.
If this is a row header of a total, then it will first check the ignoreSubtotal
Formal Parameter and if true, won't render the cell; if false, it will then check the
displayTotalLabel argument, and when false, will set the cell's text
to be a blank space.
| out | MarkupOutput to generate the HTML. |
|---|---|
| rb | ReportBean being transformed (ignored, always uses the bean passed to the
initializeTransform method). |
| rowHeader | the corresponding rowHeader |
| displayTotalLabel | false if totals rowHeaders |
This method is deprecated.
This method is not used anymore by the Transform. Instead use
renderRowHeader(MarkupOutput, ReportBean, WebHeader, boolean)
Renders a single row header.
It creates the ReportGridCellRowHeader using the newRowHeader
method, and calls onRowHeader
| out | MarkupOutput to generate the HTML. |
|---|---|
| rb | ReportBean being transformed (ignored, always uses the bean passed to the
initializeTransform method). |
| rowHeader | the corresponding rowHeader |
Renders the row headers of a single row.
Basically, it iterates through the rowHeaders collection and calls renderRowHeader,
for example:
WebHeaders rowHeaders = row.getHeaderElements();
for (int j = 0; j < rowHeaders.size(); j++) {
renderRowHeader(out, rb, rowHeaders.get(j), firstTotal);
}
| out | MarkupOutput to generate the HTML. |
|---|---|
| rb | ReportBean being transformed (ignored, always uses the bean passed to the
initializeTransform method). |
| row | the corresponding WebRow |
Renders a single rowTitle.
Basically, it creates
a new ReportGridCellRowTitle using the newRowTitle
method, and calls onRowTitle.
| out | MarkupOutput to generate the HTML. |
|---|---|
| rb | ReportBean being transformed (ignored, always uses the bean passed to the
initializeTransform method). |
| title | the corresponding WebTitle |
Renders the row titles of the report.
Basically, it iterates through the rowTitles collection and calls renderRowTitle,
for example:
for (int i = 0; i < rowTitles.size(); i++) {
renderRowTitle(out, rb, rowTitles.get(i));
}
| out | MarkupOutput to generate the HTML. |
|---|---|
| rb | ReportBean being transformed (ignored, always uses the bean passed to the
initializeTransform method). |
| rowTitles | the corresponding WebGridTitles |
Generates a single row of data. It calls:
showRowHeaders return true).
includeMetricValues argument is true).
| out | MarkupOutput to generate the HTML. |
|---|---|
| rb | ReportBean being transformed (ignored, always uses the bean passed to the
initializeTransform method). |
| row | the corresponding WebRow |
| includeMetricValues | true if metric values show be included. False otherwise. |
Generates a single row of data. It calls:
showRowHeaders return true).
| out | MarkupOutput to generate the HTML. |
|---|---|
| rb | ReportBean being transformed (ignored, always uses the bean passed to the
initializeTransform method). |
| row | the corresponding WebRow |
This method is deprecated.
This method is not called anymore and it doesn't generate any HTML.
It's kept just for backwards compatibility.
| out | MarkupOutput to generate the HTML. |
|---|
Renders the drag and drop zone as the empty row header at the left hand side of the grid
Returns the value of the containerWidth formal parameter (in pixels).
Returns the value of the containerWidth formal parameter (in pixels).
Creates the TableTag instance that is used for the table holding the
report's data.
TableTag for the grid.
This method is deprecated.
This method has been deprecated and will be removed in future versions of the product.
It is expected that these functionality will be part of the grid's bone.
Generates the javascript used to initialize the drilling when using incremental fetch.
| out | MarkupOutput to generate the HTML. |
|---|---|
| rb | ReportBean being transformed (ignored, always uses the bean passed to the
initializeTransform method). |
This method is deprecated.
This method has been deprecated and will be removed in future versions of the product.
It is expected that these control variables will be part of the grid's bone.
Generates the javascript control variables used to generate dynamic drill URLs.
| out | MarkupOutput to generate the HTML. |
|---|---|
| rb | ReportBean being transformed (ignored, always uses the bean passed to the
initializeTransform method). |
This method is deprecated.
This method has been deprecated and will be removed in future versions of the product.
It is expected that these control variables will be part of the grid's bone.
Generates the javascript control variables used with the resize columns feature.
| out | MarkupOutput to generate the HTML. |
|---|---|
| rb | ReportBean being transformed (ignored, always uses the bean passed to the
initializeTransform method). |
This method is deprecated.
This method is not called anymore and it doesn't generate any HTML.
It's kept just for backwards compatibility.
| out | MarkupOutput to generate the HTML. |
|---|
This method is deprecated.
This method has been deprecated and will be removed in future versions of the product.
It's not used anymore. In its place you may call: generateGridTable().renderOpenTag(out);
Generates the open tag of the report's grid table.
| out | MarkupOutput to generate the HTML. |
|---|---|
| rb | ReportBean being transformed (ignored, always uses the bean passed to the
initializeTransform method). * |
| specifyUniqueReportID | (ignored). |
Generates the list of attributes used by a div surrounding the grid. This div
includes the information used by grid's bone, such as scriptclass
and subtype (sty).
Generates the list of attributes used by an empty grid's table. This method may be extended to include extra/custom attributes.
Generates the list of attributes used by the grid's table. This method may be extended to include extra/custom attributes.
Generates the list of attributes used by <tr> of a single row.
| row | the corresponding WebRow |
|---|
Returns how many columns, the title cell spans over.
| WebObjectsException | |
| WebBeanException | |
| WebObjectsException |
Returns the name to use for the ContextMenuManager of this Transform.
By default, it uses _bean.getName() + "_GM" unless otherwise specified by the formal parameter
Returns the css class to be used by the grid table.
Generate the lock header tag information for the grid.
Tag instance with the lock header information. If not supported given the scenario,
it might return null.
This method is deprecated.
Please query directly the heightMode formal parameter instead
Returns the value of the heightMode formal parameter.
This methods allows the transform to identify if concrete subclasses are designed to work in design mode, or in execute mode.
This method is deprecated.
Please query directly the mergeColHeaderPara formal parameter instead
Returns the value of the mergeColHeader formal parameter.
This method is called when a column header needs to be rendered. By default
it just calls cell.generateOutput(out) (that is, it just
delegates it to the cell itself).
| cell | the corresponding cell |
|---|---|
| out | MarkupOutput to generate the HTML. |
This method is called when a column title needs to be rendered. By default
it just calls cell.generateOutput(out) (that is, it just
delegates it to the cell itself).
| cell | the corresponding cell |
|---|---|
| out | MarkupOutput to generate the HTML. |
This method is called when a metric value needs to be rendered. By default
it just calls cell.generateOutput(out) (that is, it just
delegates it to the cell itself).
| cell | the corresponding cell |
|---|---|
| out | MarkupOutput to generate the HTML. |
This method is called when row has finished. It is responsible
to close the <tr> tag
| out | MarkupOutput to generate the HTML. |
|---|
This method is called when row has finished. It is responsible
to close the <tr> tag
| row | the corresponding WebRow |
|---|---|
| out | MarkupOutput to generate the HTML. |
This method is called when a row header needs to be rendered. By default
it just calls cell.generateOutput(out) (that is, it just
delegates it to the cell itself).
| cell | the corresponding cell |
|---|---|
| out | MarkupOutput to generate the HTML. |
This method is called when a new row needs to be rendered. It is responsible
to open the <tr> tag
| row | the corresponding WebRow |
|---|---|
| out | MarkupOutput to generate the HTML. |
This method is called when a new row needs to be rendered. It is responsible
to open the <tr> tag
| out | MarkupOutput to generate the HTML. |
|---|
This method is called when a row title needs to be rendered. By default
it just calls cell.generateOutput(out) (that is, it just
delegates it to the cell itself).
| cell | the corresponding cell |
|---|---|
| out | MarkupOutput to generate the HTML. |
Returns the value of the overflowMode formal parameter.
Renders the col tags for a grid column widths.
| out | MarkupOutput instance where the HTML contents to render are to be saved |
|---|---|
| dpi | int containing the dpi of the client |
| zoom | value for zoom property to use |
Generates the HTML used for client-side context (right mouse click) menus.
These are registered into the ContextMenuManager by the Transform and the cells.
| out | MarkupOutput to generate the HTML. |
|---|
Renders custom groups on the grid template.
| out | MarkupOutput |
|---|---|
| cell | ReportGridCellRowTitle |
| rowSpan | The number of rows you would want this particular row to span over. |
| WebObjectsException | |
| WebBeanException | |
| WebObjectsException |
Generates the data content of the grid, this includes both
Row headers and metric values.
The includeMetricValues argument controls whether the metric values
will be included in the output. The purpose of not including metric values is for
situations when we would like to generate
only the row axis and no data (internally used for lock headers).
| out | MarkupOutput to generate the HTML. |
|---|---|
| includeMetricValues | whether to include metric values or not |
Generates the top part of the report, that is, the row titles, column titles and
column headers.
The includeColumnHeaders argument allows to dynamically decide
if the column headers should be rendered or not.
| out | MarkupOutput to generate the HTML. |
|---|---|
| includeColumnHeaders | to decide whether to include column headers in the output. |
Convenience method to generate only the grid titles, that is row and column titles. It calls
renderGridHeaders(out, false);
| out | MarkupOutput to generate the HTML. |
|---|
This method renders the javascript code that needs to be generated
on the server side because its content is dynamic. It extends
renderJavascript by including control
variables that informs the browser the grid status, and context
(or right-mouse-click) menus.
| out | MarkupOutput to generate the HTML. |
|---|
Generates divs that allows the headers to be "locked" in the browser window.
The row headers and column headers are generated again by this method, then using javascript
these are positioned on top of the original headers, creating the illusion that the later
are kept still.
| out | MarkupOutput to generate the HTML. |
|---|
If a scriptClass is specified, this method registers the corresponding javascript bone for this component.
| out | MarkupOutput whether the output should be rendered. |
|---|
Convenience method to generate only the row headers (all row headers). It calls
renderGridData(out, false);
| out | MarkupOutput to generate the HTML. |
|---|
Renders an empty list of row titles.
This is a needed in accessibility mode because screen readers don't support "rowspan"
attribute in table cells, so we need to expand the row titles when their rowspan is greater than 0.
This method basically iterates through the list of rowTitles and generates
an empty row title cell for each one of them, for example:
for (int i = 0; i < rowTitles.size(); i++) {
WebTitle title = rowTitles.get(i);
for (int j = 0; j < title.getSpan(); j++) {
onRowTitle(newRowTitle(), out);
}
}
| out | MarkupOutput to generate the HTML. |
|---|---|
| rb | ReportBean being transformed (ignored, always uses the bean passed to the
initializeTransform method). |
| rowTitles | the corresponding WebGridTitles |
Sets the necessary properties to the bone assigned to this transform (based on the scriptClass formal parameter)
Usually called by renderRegisterBone(MarkupOutput)
Can be overwritten to add or modify bone properties.
| boneProps | the JsonGenerator object that contains the collection of bone properties. |
|---|
Check whether the Template Formatting property ShowColumnHeaders is true or false.
Check whether the Template Formatting property ShowRowHeaders is true or false.
This method is deprecated.
Please query directly the widthMode formal parameter instead
Returns the value of the widthMode formal parameter.