Stamp Component Tags
The Stamp Template component block contains the specifications for each portlet that is part of the stamp. The following table describes the blocks for each portlet type.
TIP: Components are rendered in the order that they appear in the stamp template. Therefore, components at the end of the list appear in front of components at the beginning of the list. This is important for DivePort click actions, because when a component overlaps another, only the click actions for the component in front are accessible.
Tag | Example | Description |
---|---|---|
analysis
|
analysis { custom-analysis "My Custom Analysis Name" assisted-analytics start-assisted=true position { left 0 top 0 } size { width 300 height 300 } } |
Specifies a custom analysis. If the custom-analysis tag is absent, DivePort uses the default analysis. The assisted analytics tag enables assisted analytics in stamps through a button. This, along with the start-assisted=true attribute, enables it and enters the assisted analytics mode immediately. TIP: This allows a matrix portlet to set analysis data in a crosslink click action, which displays the analysis component on the same page. This process is an alternative to using an analysis click action, which opens a separate page. NOTES:
|
chart
|
chart type="<type of chart>" { ... } |
Defines the block for a chart component. See Chart Component Tags. |
html
|
html "<html content >" { ... } |
Defines the block for an html component. See HTML Component Tags. |
indicator
|
indicator type="<display type of indicator>" { ... } |
Defines the block for an indicator component. |
image
|
image "<url to image>" { ... } |
Defines the block for an image component. See Image Component Tags. |
matrix
|
matrix { ... } |
Defines the block for a matrix component. |
measures
|
measures { ... } |
Defines the block for a measures component. |
quickview
|
quickview { ... } |
Defines the block for a quickview component. |
text
|
text "<content of text>" { ... } |
Defines the block for a text component. See Text Component Tags. |
Common attributes for each component type | ||
position
|
position { top 15 left 15 } |
Defines the position of the component within the stamp frame. This is a required attribute. There are two sub attributes:
|
size
|
size { width 295 height 45 } |
For all components except text and image components, the size tag is required. There are two sub attributes:
|
style
|
style { prop "background-color" "white" prop "border-radius" "5px" } style "ClassName" |
Any component can have a style tag, with properties defined in the same way as the overall stamp style: prop "<property name>" "<property value>" Any style tag can refer to a class. You can use classes that are defined in native DivePort code or those that are applied with custom CSS in a skin. After naming the class, you can add properties in braces that override selected class properties. NOTE: Because lower-level settings such as skin colors, skin fonts, or column- or row-level preferences are applied first, some style properties, such as font settings on a measures component might not apply to all contents of the component. |
Click Actions | ||
click-actions
|
click-actions { ... ... } |
The click-actions list can include these types:
|
analysis
|
analysis { scope "cell" page-id "$(MACRO analysis_page_name)" } |
Sub block for the analysis click-action. Possible attributes:
|
crosslink
|
crosslink { scope "row" label "crosslink" } |
Sub block for the crosslink click-action. Possible attributes:
|
excel
|
excel { scope "link" label "Excel Download" filename "excel_download" add-parent-info true produce-xlsx true } |
Sub block for the excel click-action. Possible attributes:
|
|
pdf { scope "row" label "PDF Download" filename "pdf_download" add-parent-info true } |
Sub block for the pdf click-action. Possible attributes:
|
portal-page
|
portal-page { scope " row" label "Click for more details" page-id "$(MACRO detail_page_name)" measure "$(MEASURE_1)" factory "HC Test" popup-size "$(MACRO measure_info_popup_size)" popup true } |
Sub block for the portal-page click-action. Possible attributes:
|
Possible Parameters | ||
$(DIMENSION_<#>) | column "$(DIMENSION_3)" type="text" | Returns the name of the dimension that the user selected for the stamp, where <#> is the number of a dimension. For example, $(DIMENSION_1) returns the name of the first dimension, $(DIMENSION_2) returns the name of the second dimension, and so on. |
$(MEASURE_<#>) |
chart type="multitab-heatmap" { dimension "Created Year" category "Class" value "$(MEASURE_1)" ... |
Returns the measure selected by the user, where <#> is the number of a measure. For example, $(MEASURE_1) returns the name or label of the first measure, $(MEASURE_2) returns the name or label of the second measure, and so on. |
$(MACRO <any DivePort macro>) | page-id "$(MACRO analysis_page_name)" | Returns the value of the specified DivePort macro. For more information about macros, see |
For an overview of the entire stamp, see Stamp Template Tags.