Class ViewBeanTransformHelper
- java.lang.Object
-
- com.microstrategy.web.app.transforms.ViewBeanTransformHelper
-
public class ViewBeanTransformHelper extends java.lang.Object
ViewBeanTransformHelper Provides utility functions used in report transforms- Since:
- MicroStrategy Web 8.0.0
-
-
Field Summary
Fields Modifier and Type Field Description protected static java.lang.String
CACHED_ADVANCED_DRILL_EDITOR_PROCESS_EVENT
protected static java.lang.String
CACHED_ADVANCED_DRILL_EVENT
protected static java.lang.String
CACHED_APPLIED_SORT_ARRAY
protected static java.lang.String
CACHED_DRILL_EDITOR_NAME
protected static java.lang.String
CACHED_DRILL_EDITOR_PROCESS_EVENT
protected static java.lang.String
CACHED_DRILL_EVENT
protected static java.lang.String
CACHED_DRILL_FILTER_PAGEBY
protected static java.lang.String
CACHED_DRILL_FILTERONSELECTION_PROCESS_EVENT
protected static java.lang.String
CACHED_FORMAL_PARAMETERS
protected static java.lang.String
CACHED_IFRAME_REQUEST
protected static java.lang.String
CACHED_IMAGE_FOLDER
protected static java.lang.String
CACHED_IS_NETSCAPE
protected static java.lang.String
CACHED_MAX_COL_HEADER_DEPTH
protected static java.lang.String
CACHED_SORT_EVENT
protected static java.lang.String
CACHED_SORT_SUBTOTAL_POSITION
protected static java.lang.String
CACHED_SPECIFY_ID_FOR_FOR_TITLE_CELL
protected static java.lang.String
CACHED_SPECIFY_WIDTH_FOR_CELL
protected static java.lang.String
CACHED_URL_TYPICAL_BEAN_STATES
static java.lang.String
DRILL_RETAIN_THRESHOLDS_NO
static java.lang.String
DRILL_RETAIN_THRESHOLDS_USE_DRILL_PATH
static java.lang.String
DRILL_RETAIN_THRESHOLDS_YES
static java.lang.String
LOCK_COLUMN_HEADERS_PROPERTY_NAME
static java.lang.String
LOCK_COLUMN_HEADERS_PROPERTY_OFF
static java.lang.String
LOCK_COLUMN_HEADERS_PROPERTY_ON
static java.lang.String
LOCK_HEADERS_PROPERTY_GROUP
static java.lang.String
LOCK_ROW_HEADERS_PROPERTY_NAME
static java.lang.String
LOCK_ROW_HEADERS_PROPERTY_OFF
static java.lang.String
LOCK_ROW_HEADERS_PROPERTY_ON
protected static int
MAX_CACHED_OBJECTS
static java.lang.String
SORT_ASCENDING
static java.lang.String
SORT_CUSTOM
static java.lang.String
SORT_DESCENDING
-
Constructor Summary
Constructors Constructor Description ViewBeanTransformHelper()
-
Method Summary
All Methods Static Methods Concrete Methods Deprecated Methods Modifier and Type Method Description static boolean
checkReportSettingsDefault(ViewBean vb, java.lang.String PropertySet, java.lang.String PropertyName)
check if this report property is set to defaultstatic java.lang.String
determineDrillRetainParent(ViewBean vb, java.lang.String preferenceValue)
Deprecated.This method is no longer used.static java.lang.String
determineDrillRetainThreshold(ViewBean vb, java.lang.String preferenceValue)
Deprecated.This method is no longer used.static void
generateAttributeFormContextMenu(ViewBean vb, WebTemplateUnit tu, boolean isIFrame, ContextMenu rhMenu, ContextMenuManager cmm, java.lang.String datasetID)
Deprecated.please use the new approach for generating context menu options, seeReportCellAttributeForms
static java.lang.String
generateAttributeFormListForContextMenus(WebWorkingSet ws, WebAttribute att, boolean isRWDoc)
Generates aString
with the list of attribute forms.static java.lang.String
generateAttributeFormListForContextMenus(WebWorkingSet ws, WebTemplateAttribute wta, boolean isRWDoc)
Generates aString
with the list of attribute forms.static void
generateClientSideRemoveContextMenu(ViewBean vb, int pos, ContextMenu rhMenu, boolean enableExtraRemove)
Deprecated.please use the new approach for generating context menu options, seeReportCellRemoveFromReport
andReportCellRemoveFromGrid
static java.lang.String
generateColHeaderSortDisplayString(ViewBean vb, WebHeader header)
generate the sort display for column header.static java.lang.String
generateColHeaderSortID(ViewBean vb, WebHeader header)
generat the sort id for column headerstatic java.lang.String
generateColTitleSortID(WebSubTitle parentSubTitle, WebSubTitle childSubTitle)
generate the sort id for col title.static java.lang.String
generateColTitleSortID(WebTitle title, WebAttributeForm attForm)
static void
generateFilterOnContextMenu(ViewBean vb, WebObjectInfo objInfo, java.lang.String unitAlias, ContextMenu cm, EventManager eventManager, boolean isIFrame)
Deprecated.please use the new approach for generating context menu options, seeReportCellFilterOn
static void
generateFormattingContextMenu(ViewBean vb, int axis, int pos, java.lang.String extraUrl, boolean isIframe, ContextMenu rhMenu, EventManager eventManager)
Deprecated.please use the new approach for generating context menu options, seeReportCellFormat
static void
generateFormattingContextMenu(ViewBean vb, int pos, java.lang.String extraUrl, boolean isIframe, ContextMenu rhMenu, EventManager eventManager)
Deprecated.please use the new approach for generating context menu options, seeReportCellFormat
static void
generateFormattingContextMenuForRWB(ViewBean vb, int axis, int pos, java.lang.String extraUrl, boolean isIframe, ContextMenu rhMenu, EventManager eventManager, java.lang.String viewerID)
Deprecated.please use the new approach for generating context menu options, seeReportCellFormat
static void
generateFormattingContextMenuForRWB(ViewBean vb, int pos, java.lang.String extraUrl, boolean isIframe, ContextMenu rhMenu, EventManager eventManager, java.lang.String viewerID)
Deprecated.please use the new approach for generating context menu options, seeReportCellFormat
static void
generateFormattingContextMenuForRWB(ViewBean vb, ContextMenu rhMenu, java.lang.String viewerID)
Deprecated.please use the new approach for generating context menu options, seeReportCellFormat
static Block
generateFormattingInfoBlock(WebTemplate template, AppContext context)
static void
generateFormattingInfoBlock(WebTemplate template, AppContext context, Block all)
static void
generateGraphProperties(WebGraph graphObject, AppContext appContext, Block rootBlock)
static Block
generateGraphPropertiesInfoBlock(WebGraph graph, AppContext context)
static java.lang.String
generateHeaderSortDisplayString(ViewBean vb, WebHeader header, int axis)
generate the sort display for column header.static java.lang.String
generateHeaderSortID(ViewBean vb, WebHeader header, int axis, int sortAxis)
generat the sort id for column headerstatic boolean
generateMoveContextMenu(ViewBean vb, int pos, boolean isFirst, boolean isLast, boolean applyNow, java.lang.String extraUrl, boolean isIFrame, ContextMenu rhMenu, ContextMenuManager cmm, EventManager eventManager)
Deprecated.please use the new approach for generating context menu options, seeReportCellMove
static boolean
generateMoveContextMenu(ViewBean vb, int pos, boolean isFirst, boolean isLast, ContextMenu rhMenu, ContextMenuManager cmm)
Deprecated.please use the new approach for generating context menu options, seeReportCellMove
static void
generateMoveContextMenu(ViewBean vb, int axis, int pos, boolean isFirst, boolean isLast, boolean applyNow, java.lang.String extraUrl, boolean isIFrame, ContextMenu rhMenu, ContextMenuManager cmm, EventManager eventManager)
Deprecated.please use the new approach for generating context menu options, seeReportCellMove
static void
generateMoveContextMenu(ViewBean vb, int axis, int pos, boolean isFirst, boolean isLast, ContextMenu rhMenu, ContextMenuManager cmm)
Deprecated.please use the new approach for generating context menu options, seeReportCellMove
static void
generateRemoveClientSideContextMenu(ViewBean vb, int axis, int pos, ContextMenu rhMenu, boolean enableExtraRemove)
Deprecated.please use the new approach for generating context menu options, seeReportCellRemoveFromReport
andReportCellRemoveFromGrid
static void
generateRemoveContextMenu(ViewBean vb, int pos, boolean applyNow, java.lang.String extraUrl, boolean isIframe, ContextMenu rhMenu, EventManager eventManager)
Deprecated.please use the new approach for generating context menu options, seeReportCellRemoveFromReport
andReportCellRemoveFromGrid
static void
generateRemoveTemplateUnitContextMenu(ViewBean vb, int axis, int pos, boolean applyNow, java.lang.String extraUrl, boolean isIframe, ContextMenu rhMenu, EventManager eventManager)
Deprecated.please use the new approach for generating context menu options, seeReportCellRemoveFromReport
andReportCellRemoveFromGrid
static void
generateRemoveWorkingSetAllMetricsContextMenu(ViewBean vb, boolean applyNow, java.lang.String extraUrl, boolean isIframe, ContextMenu rhMenu, EventManager eventManager)
Deprecated.please use the new approach for generating context menu options, seeReportCellRemoveFromReport
andReportCellRemoveFromGrid
static void
generateRemoveWorkingSetUnitContextMenu(ViewBean vb, WebObjectInfo object, boolean applyNow, java.lang.String extraUrl, boolean isIframe, ContextMenu rhMenu, EventManager eventManager)
Deprecated.please use the new approach for generating context menu options, seeReportCellRemoveFromReport
andReportCellRemoveFromGrid
static void
generateRenameContextMenu(ViewBean vb, int key, java.lang.String extraUrl, boolean isIframe, ContextMenu rhMenu, EventManager eventManager)
Deprecated.please use the new approach for generating context menu options, seeReportCellRename
static void
generateRenameContextMenuForRWB(ViewBean vb, int key, java.lang.String extraUrl, boolean isIframe, ContextMenu rhMenu, EventManager eventManager)
Deprecated.please use the new approach for generating context menu options, seeReportCellRename
static java.lang.String
generateRowHeaderSortID(ViewBean vb, WebHeader header)
generat the sort id for column headerstatic java.lang.String
generateRowTitleSortID(WebSubTitle parentSubTitle, WebSubTitle childSubTitle)
generate the sort id for row title.static java.lang.String
generateRowTitleSortID(WebTitle title, WebAttributeForm attForm)
static java.lang.String
generateRowTitleSortID(WebTitle title, WebSubTitle subTitle)
generate the sort id for row titlestatic void
generateShortcutMetricsContextMenu(ViewBean vb, java.lang.String metricID, ContextMenu rhMenu, ContextMenuManager cmm, EventManager eventManager, boolean isIFrame)
Deprecated.please use the new approach for generating context menu options, seeReportCellInsertMetric
static java.lang.String
generateTitleSortID(WebTitle title, WebAttributeForm attForm, int axis)
static WebEvent
getAddAttFormEvent(ViewBean vb, java.lang.String attID, java.lang.String attFormID, boolean isBase, java.lang.String toPos, java.lang.String datasetID)
static java.lang.String
getAddAttFormLink(ViewBean vb, java.lang.String attID, java.lang.String attFormID, boolean isBase, int toPos, java.lang.String extraURL, boolean addState, EventManager eventManager, java.lang.String datasetID)
static Block
getBlockProps(WebTemplate template, java.lang.String[] properties, int axis, int position, int level, AppContext context)
static java.lang.String
getCartesianJoinDisabledTooltip(WebBean wb)
Get disabled reason for cartesian join drop downstatic int
getDefaultOutlineModeExpansionLevel(ViewBean vb)
static java.lang.String[]
getFeaturesList()
static void
getGridBoneFormalParameters(Transform t, JsonGenerator json)
Sets formal paramters used by grid bones for client-side template manipulations as properties of aJsonGenerator
.static JsonGenerator
getGridFeatures(WebComponent bean, boolean isDesignMode)
Creates a json generator for the client-side template features property.static JsonGenerator
getGridFeatures(WebComponent bean, boolean isDesignMode, boolean hasMetrics)
Deprecated.static JsonGenerator
getGridFeatures(WebFeatures featuresManager, boolean isDesignMode)
Creates a json generator for the client-side template features property.static JsonGenerator
getGridFeatures(WebFeatures featuresManager, boolean isDesignMode, boolean hasMetrics)
Deprecated.static WebEvent
getMoveMetricEvent(ViewBean vb, java.lang.String fromPos, java.lang.String toPos, boolean applyNow)
get an event object for a move metric actionstatic java.lang.String
getMoveMetricLink(ViewBean vb, java.lang.String fromPos, java.lang.String toPos, boolean applyNow, java.lang.String extraURL, boolean addState, EventManager eventManager)
Deprecated.please use the transform and cell information for pivot manipulationsstatic java.lang.String
getObjectDescription(WebTemplateUnit unit)
static java.lang.String
getObjectID(WebTemplateUnit unit)
static java.lang.String
getObjectIDInfo(WebTemplateUnit unit)
Based on the type of unit instance, obtain its IDstatic int
getObjectSubType(WebTemplateUnit unit)
static int
getObjectType(WebTemplateUnit unit)
static int
getObjectTypeInfo(WebTemplateUnit unit)
Get the object type defined for theWebTemplateUnit
specifiedstatic WebEvent
getOpenAttFormEditorEvent(ViewBean vb, java.lang.String attID)
static java.lang.String
getOpenAttFormEditorLink(ViewBean vb, java.lang.String attID, java.lang.String extraURL, boolean addState, EventManager eventManager)
static int
getOutlineModeMaxLevels(ViewBean vb)
static WebHeaders
getPageByHeadersByIndex(ViewBean vb, WebGridHeaders pageHeaders, int titleIndex)
get the index for a pageby headerstatic java.lang.String
getProjectProperty(WebSessionInfo sessionInfo, java.lang.String propertySetName, java.lang.String propertyName)
Get a project level property valuestatic WebEvent
getRemoveAttFormEvent(ViewBean vb, java.lang.String attID, java.lang.String attFormID, boolean isBase, java.lang.String datasetID)
static java.lang.String
getRemoveAttFormLink(ViewBean vb, java.lang.String attID, java.lang.String attFormID, boolean isBase, java.lang.String extraURL, boolean addState, EventManager eventManager, java.lang.String datasetID)
static WebEvent
getRemoveMetricEvent(ViewBean vb, java.lang.String metricPos, boolean applyNow)
get an event object for a remove metric actionstatic java.lang.String
getRemoveMetricLink(ViewBean vb, java.lang.String metricPos, boolean applyNow, java.lang.String extraURL, boolean addState, EventManager eventManager)
Deprecated.please consult the transform class for remove manipulationsstatic WebEvent
getRemoveTemplateUnitEvent(ViewBean vb, java.lang.String fromAxis, java.lang.String fromPos, boolean applyNow)
get an event object for a remove actionstatic java.lang.String
getRemoveUnitLink(ViewBean vb, java.lang.String fromAxis, java.lang.String fromPos, boolean applyNow, java.lang.String extraURL, boolean addState, EventManager eventManager)
Deprecated.please use the new approach for generating context menu options, seeReportCellRemoveFromReport
andReportCellRemoveFromGrid
; or about the generation of remove manipulations available onReportGridDisplayCell
static WebEvent
getRemoveWorkingSetAllMetricsEvent(ViewBean vb, boolean applyNow)
static WebEvent
getRemoveWorkingSetUnitEvent(ViewBean vb, WebObjectInfo object, boolean applyNow)
static java.lang.String
getReportPropertyValue(ViewBean vb, java.lang.String propertyName)
static java.lang.String
getReportStyleID(ViewBean vb)
get report style id from report propertystatic java.lang.String
getReportStyleLocalizedName(ViewBean vb)
get report localized style namestatic java.lang.String
getReportStyleName(ViewBean vb)
get report style name from report propertystatic WebEvent
getSinglePivotEvent(ViewBean vb, java.lang.String fromAxis, java.lang.String fromPos, java.lang.String toAxis, java.lang.String toPos, boolean applyNow)
Deprecated.Please useEventManager
and event details available on transform related classes such asReportGridDisplayCell
for generating this information.static java.lang.String
getSinglePivotLink(ViewBean vb, java.lang.String fromAxis, java.lang.String fromPos, java.lang.String toAxis, java.lang.String toPos, boolean applyNow, java.lang.String extraURL, boolean addState, EventManager eventManager)
Deprecated.Please useEventManager
and event details available on transform related classes such asReportGridDisplayCell
for generating this information.static int
getSortsubtotalPostion(ViewBean vb)
Deprecated.Please use getSortsubtotalPostion(ViewBean vb, int axis)static int
getSortsubtotalPostion(ViewBean vb, int axis)
get the subtotal position for sortingstatic int
getSortsubtotalPostion(WebTemplate template, int axis)
get the subtotal position for sortingstatic java.lang.String
getTemplatePropertyDefaultValue(ViewBean vb, java.lang.String propertySetName, java.lang.String propertyName)
Get a template property's default valuestatic int
getToPageByPosition(ViewBean vb)
get the target position for a pivot to pageby axis actionstatic java.lang.String
getUnitCellId(java.lang.String gridBoneId, int axis, int depth, int subDepth)
static WebObjectInfo
getWebObjectInfo(WebTemplateUnit unit)
Deprecated.static boolean
ignoreOldStyle(ViewBean vb)
whether the report is old or new formattingstatic boolean
isDrillPathsInOldFormat(ViewBean vb)
static java.lang.String
mapCssFileNameToStyleName(java.lang.String fileName)
map a css file name to a style namestatic java.lang.String
mapStyleNameToCssFileName(java.lang.String styleName)
map a style name to a css file namestatic java.lang.String
ReadReportSettings(ViewBean vb, java.lang.String PropertySet, java.lang.String PropertyName)
get report property valuestatic void
renderColTags(int dpi, double zoom, MarkupOutput out, ViewBean vb)
Deprecated.transforms should extendReportGridTransformImpl
and use protected method renderColTagsHtmlstatic void
setFormalParameters(WebComponent wc, boolean designMode, FormalParameters formalParameters)
Sets the template formal parametersstatic java.lang.String
setReportPropertyValue(ViewBean vb, java.lang.String propertyName, java.lang.String propertyValue)
static boolean
showAttributeForms(ViewBean vb)
Check whether to show the attribute form names on the view bean
-
-
-
Field Detail
-
MAX_CACHED_OBJECTS
protected static final int MAX_CACHED_OBJECTS
- See Also:
- Constant Field Values
-
CACHED_URL_TYPICAL_BEAN_STATES
protected static final java.lang.String CACHED_URL_TYPICAL_BEAN_STATES
- See Also:
- Constant Field Values
-
CACHED_DRILL_EVENT
protected static final java.lang.String CACHED_DRILL_EVENT
- See Also:
- Constant Field Values
-
CACHED_IMAGE_FOLDER
protected static final java.lang.String CACHED_IMAGE_FOLDER
- See Also:
- Constant Field Values
-
CACHED_ADVANCED_DRILL_EVENT
protected static final java.lang.String CACHED_ADVANCED_DRILL_EVENT
- See Also:
- Constant Field Values
-
CACHED_DRILL_EDITOR_PROCESS_EVENT
protected static final java.lang.String CACHED_DRILL_EDITOR_PROCESS_EVENT
- See Also:
- Constant Field Values
-
CACHED_ADVANCED_DRILL_EDITOR_PROCESS_EVENT
protected static final java.lang.String CACHED_ADVANCED_DRILL_EDITOR_PROCESS_EVENT
- See Also:
- Constant Field Values
-
CACHED_DRILL_FILTERONSELECTION_PROCESS_EVENT
protected static final java.lang.String CACHED_DRILL_FILTERONSELECTION_PROCESS_EVENT
- See Also:
- Constant Field Values
-
CACHED_SORT_EVENT
protected static final java.lang.String CACHED_SORT_EVENT
- See Also:
- Constant Field Values
-
CACHED_APPLIED_SORT_ARRAY
protected static final java.lang.String CACHED_APPLIED_SORT_ARRAY
- See Also:
- Constant Field Values
-
CACHED_DRILL_EDITOR_NAME
protected static final java.lang.String CACHED_DRILL_EDITOR_NAME
- See Also:
- Constant Field Values
-
CACHED_SORT_SUBTOTAL_POSITION
protected static final java.lang.String CACHED_SORT_SUBTOTAL_POSITION
- See Also:
- Constant Field Values
-
CACHED_IFRAME_REQUEST
protected static final java.lang.String CACHED_IFRAME_REQUEST
- See Also:
- Constant Field Values
-
CACHED_DRILL_FILTER_PAGEBY
protected static final java.lang.String CACHED_DRILL_FILTER_PAGEBY
- See Also:
- Constant Field Values
-
CACHED_IS_NETSCAPE
protected static final java.lang.String CACHED_IS_NETSCAPE
- See Also:
- Constant Field Values
-
CACHED_SPECIFY_WIDTH_FOR_CELL
protected static final java.lang.String CACHED_SPECIFY_WIDTH_FOR_CELL
- See Also:
- Constant Field Values
-
CACHED_SPECIFY_ID_FOR_FOR_TITLE_CELL
protected static final java.lang.String CACHED_SPECIFY_ID_FOR_FOR_TITLE_CELL
- See Also:
- Constant Field Values
-
CACHED_MAX_COL_HEADER_DEPTH
protected static final java.lang.String CACHED_MAX_COL_HEADER_DEPTH
- See Also:
- Constant Field Values
-
CACHED_FORMAL_PARAMETERS
protected static final java.lang.String CACHED_FORMAL_PARAMETERS
- See Also:
- Constant Field Values
-
SORT_DESCENDING
public static final java.lang.String SORT_DESCENDING
- See Also:
- Constant Field Values
-
SORT_ASCENDING
public static final java.lang.String SORT_ASCENDING
- See Also:
- Constant Field Values
-
SORT_CUSTOM
public static final java.lang.String SORT_CUSTOM
- See Also:
- Constant Field Values
-
DRILL_RETAIN_THRESHOLDS_NO
public static final java.lang.String DRILL_RETAIN_THRESHOLDS_NO
- See Also:
- Constant Field Values
-
DRILL_RETAIN_THRESHOLDS_YES
public static final java.lang.String DRILL_RETAIN_THRESHOLDS_YES
- See Also:
- Constant Field Values
-
DRILL_RETAIN_THRESHOLDS_USE_DRILL_PATH
public static final java.lang.String DRILL_RETAIN_THRESHOLDS_USE_DRILL_PATH
- See Also:
- Constant Field Values
-
LOCK_HEADERS_PROPERTY_GROUP
public static final java.lang.String LOCK_HEADERS_PROPERTY_GROUP
- See Also:
- Constant Field Values
-
LOCK_ROW_HEADERS_PROPERTY_NAME
public static final java.lang.String LOCK_ROW_HEADERS_PROPERTY_NAME
- See Also:
- Constant Field Values
-
LOCK_ROW_HEADERS_PROPERTY_ON
public static final java.lang.String LOCK_ROW_HEADERS_PROPERTY_ON
- See Also:
- Constant Field Values
-
LOCK_ROW_HEADERS_PROPERTY_OFF
public static final java.lang.String LOCK_ROW_HEADERS_PROPERTY_OFF
- See Also:
- Constant Field Values
-
LOCK_COLUMN_HEADERS_PROPERTY_NAME
public static final java.lang.String LOCK_COLUMN_HEADERS_PROPERTY_NAME
- See Also:
- Constant Field Values
-
LOCK_COLUMN_HEADERS_PROPERTY_ON
public static final java.lang.String LOCK_COLUMN_HEADERS_PROPERTY_ON
- See Also:
- Constant Field Values
-
LOCK_COLUMN_HEADERS_PROPERTY_OFF
public static final java.lang.String LOCK_COLUMN_HEADERS_PROPERTY_OFF
- See Also:
- Constant Field Values
-
-
Method Detail
-
getRemoveWorkingSetUnitEvent
public static WebEvent getRemoveWorkingSetUnitEvent(ViewBean vb, WebObjectInfo object, boolean applyNow)
-
getRemoveWorkingSetAllMetricsEvent
public static WebEvent getRemoveWorkingSetAllMetricsEvent(ViewBean vb, boolean applyNow)
-
getRemoveTemplateUnitEvent
public static WebEvent getRemoveTemplateUnitEvent(ViewBean vb, java.lang.String fromAxis, java.lang.String fromPos, boolean applyNow)
get an event object for a remove action- Parameters:
vb
- the ViewBean objectfromAxis
- the origin axisfromPos
- the origin positionapplyNow
- whether to apply change- Returns:
- the event object
-
getRemoveMetricEvent
public static WebEvent getRemoveMetricEvent(ViewBean vb, java.lang.String metricPos, boolean applyNow)
get an event object for a remove metric action- Parameters:
vb
- the ViewBean objectmetricPos
- the metric positionapplyNow
- whether to apply change- Returns:
- the event object
-
getMoveMetricEvent
public static WebEvent getMoveMetricEvent(ViewBean vb, java.lang.String fromPos, java.lang.String toPos, boolean applyNow)
get an event object for a move metric action- Parameters:
vb
- the ViewBean objectfromPos
- the origin positiontoPos
- the target positionapplyNow
- whether to apply change- Returns:
- the event object
-
mapStyleNameToCssFileName
public static java.lang.String mapStyleNameToCssFileName(java.lang.String styleName)
map a style name to a css file name- Parameters:
styleName
- style name- Returns:
- css file name
-
mapCssFileNameToStyleName
public static java.lang.String mapCssFileNameToStyleName(java.lang.String fileName)
map a css file name to a style name- Parameters:
fileName
- css file name- Returns:
- style name
-
getObjectIDInfo
public static java.lang.String getObjectIDInfo(WebTemplateUnit unit)
Based on the type of unit instance, obtain its ID- Parameters:
unit
-WebTemplateUnit
instance to analyze- Returns:
- String value with the object ID information.
-
getObjectTypeInfo
public static int getObjectTypeInfo(WebTemplateUnit unit)
Get the object type defined for theWebTemplateUnit
specified- Parameters:
unit
-WebTemplateUnit
instance to analyze- Returns:
- value from the
EnumDSSXMLObjectTypes
enumeration indicating the object type of the instance
-
getUnitCellId
public static java.lang.String getUnitCellId(java.lang.String gridBoneId, int axis, int depth, int subDepth)
- Parameters:
gridBoneId
- identifier of the grid where the unit is locatedaxis
- axis location of the unitdepth
- depth location of the unit in the axissubDepth
- sub-depth location of the unit in the axis- Returns:
- a String with an ID value for a Template Unit
-
getObjectID
public static java.lang.String getObjectID(WebTemplateUnit unit)
- Parameters:
unit
-WebTemplateUnit
object- Returns:
- object identifier from a template unit.
-
getObjectType
public static int getObjectType(WebTemplateUnit unit)
- Parameters:
unit
-WebTemplateUnit
object- Returns:
- object type from a template unit.
-
getObjectSubType
public static int getObjectSubType(WebTemplateUnit unit)
- Parameters:
unit
-WebTemplateUnit
object- Returns:
- object type from a template unit.
- Since:
- MicroStrategy Web 8.1.0
-
getObjectDescription
public static java.lang.String getObjectDescription(WebTemplateUnit unit)
- Parameters:
unit
-WebTemplateUnit
object- Returns:
- object description from a template unit.
-
generateRowTitleSortID
public static java.lang.String generateRowTitleSortID(WebTitle title, WebSubTitle subTitle)
generate the sort id for row title- Parameters:
title
-WebTitle
objectsubTitle
-WebSubTitle
object- Returns:
- the sort id
-
generateTitleSortID
public static java.lang.String generateTitleSortID(WebTitle title, WebAttributeForm attForm, int axis)
- Since:
- MicroStrategy Web 8.0.2
-
generateRowTitleSortID
public static java.lang.String generateRowTitleSortID(WebTitle title, WebAttributeForm attForm)
- Parameters:
title
-WebTitle
objectattForm
-WebAttributeForm
- Returns:
- the sort id for row title
-
generateColTitleSortID
public static java.lang.String generateColTitleSortID(WebTitle title, WebAttributeForm attForm)
- Since:
- MicroStrategy Web 8.0.2
-
generateRowTitleSortID
public static java.lang.String generateRowTitleSortID(WebSubTitle parentSubTitle, WebSubTitle childSubTitle)
generate the sort id for row title.- Parameters:
parentSubTitle
-WebSubTitle
objectchildSubTitle
-WebSubTitle
object- Returns:
- the sort id
-
generateColTitleSortID
public static java.lang.String generateColTitleSortID(WebSubTitle parentSubTitle, WebSubTitle childSubTitle)
generate the sort id for col title.- Parameters:
parentSubTitle
-WebSubTitle
objectchildSubTitle
-WebSubTitle
object- Returns:
- the sort id
- Since:
- MicroStrategy Web 9.0.0
-
generateHeaderSortID
public static java.lang.String generateHeaderSortID(ViewBean vb, WebHeader header, int axis, int sortAxis)
generat the sort id for column header- Parameters:
vb
- the ViewBean objectheader
- the WebHeader object- Returns:
- the sort id
- Since:
- MicroStrategy Web 9.0.0
-
generateColHeaderSortID
public static java.lang.String generateColHeaderSortID(ViewBean vb, WebHeader header)
generat the sort id for column header- Parameters:
vb
- the ViewBean objectheader
- the WebHeader object- Returns:
- the sort id
-
generateRowHeaderSortID
public static java.lang.String generateRowHeaderSortID(ViewBean vb, WebHeader header)
generat the sort id for column header- Parameters:
vb
- the ViewBean objectheader
- the WebHeader object- Returns:
- the sort id
- Since:
- MicroStrategy Web 9.0.0
-
generateHeaderSortDisplayString
public static java.lang.String generateHeaderSortDisplayString(ViewBean vb, WebHeader header, int axis)
generate the sort display for column header.- Parameters:
vb
- the ViewBean objectheader
- the WebHeader object- Returns:
- the sort display
- Since:
- MicroStrategy Web 9.0.0
-
generateColHeaderSortDisplayString
public static java.lang.String generateColHeaderSortDisplayString(ViewBean vb, WebHeader header)
generate the sort display for column header.- Parameters:
vb
- the ViewBean objectheader
- the WebHeader object- Returns:
- the sort display
-
getPageByHeadersByIndex
public static WebHeaders getPageByHeadersByIndex(ViewBean vb, WebGridHeaders pageHeaders, int titleIndex)
get the index for a pageby header- Parameters:
vb
- the ViewBean objectpageHeaders
- the pageby headerstitleIndex
- the index of the pageby item in the pageby axis- Returns:
- the pageby header at that index
-
setFormalParameters
public static void setFormalParameters(WebComponent wc, boolean designMode, FormalParameters formalParameters)
Sets the template formal parameters- Parameters:
wc
-WebComponent
base instancedesignMode
- boolean indicating if the environment is design mode or notformalParameters
-FormalParameters
instance with the values to set
-
getToPageByPosition
public static int getToPageByPosition(ViewBean vb)
get the target position for a pivot to pageby axis action- Parameters:
vb
- theViewBean
object- Returns:
- the target position
-
ReadReportSettings
public static java.lang.String ReadReportSettings(ViewBean vb, java.lang.String PropertySet, java.lang.String PropertyName)
get report property value- Parameters:
vb
- the ViewBean objectPropertySet
- the property set namePropertyName
- the property name- Returns:
- the property value
-
checkReportSettingsDefault
public static boolean checkReportSettingsDefault(ViewBean vb, java.lang.String PropertySet, java.lang.String PropertyName)
check if this report property is set to default- Parameters:
vb
- the ViewBean objectPropertySet
- the property set namePropertyName
- the property name- Returns:
- the property value
-
getTemplatePropertyDefaultValue
public static java.lang.String getTemplatePropertyDefaultValue(ViewBean vb, java.lang.String propertySetName, java.lang.String propertyName)
Get a template property's default value- Parameters:
vb
- the ViewBean objectPropertySet
- the property set namePropertyName
- the property name- Returns:
- default property value
-
getProjectProperty
public static java.lang.String getProjectProperty(WebSessionInfo sessionInfo, java.lang.String propertySetName, java.lang.String propertyName)
Get a project level property value- Parameters:
sessionInfo
- the WebSessionInfo object- Returns:
- the project property
-
getCartesianJoinDisabledTooltip
public static java.lang.String getCartesianJoinDisabledTooltip(WebBean wb)
Get disabled reason for cartesian join drop down- Returns:
- the disabled reason
-
showAttributeForms
public static boolean showAttributeForms(ViewBean vb)
Check whether to show the attribute form names on the view bean- Parameters:
vb
-ViewBean
base instance- Returns:
- whether to show the attribute form names
-
getSortsubtotalPostion
@Deprecated public static int getSortsubtotalPostion(ViewBean vb)
Deprecated.Please use getSortsubtotalPostion(ViewBean vb, int axis)get the subtotal position for sorting- Parameters:
vb
- the ViewBean object- Returns:
- the subtotal position for sorting
-
getSortsubtotalPostion
public static int getSortsubtotalPostion(ViewBean vb, int axis)
get the subtotal position for sorting- Parameters:
vb
- the ViewBean objectaxis
- the axisEnumDSSXMLAxisName
where the sorting is defined- Returns:
- the subtotal position for sorting
- Since:
- MicroStrategy Web 8.0.2
-
getSortsubtotalPostion
public static int getSortsubtotalPostion(WebTemplate template, int axis)
get the subtotal position for sorting- Parameters:
template
-axis
- the axisEnumDSSXMLAxisName
where the sorting is defined- Returns:
- the subtotal position for sorting
- Since:
- MicroStrategy Web 8.1.0
-
determineDrillRetainParent
@Deprecated public static java.lang.String determineDrillRetainParent(ViewBean vb, java.lang.String preferenceValue)
Deprecated.This method is no longer used. The backend determines the value of this setting if it is set to use report definition.get the drill retain parent- Parameters:
vb
- theViewBean
objectpreferenceValue
- value of the preference related with this feature as defined by the user- Returns:
- the drill retain parent
-
determineDrillRetainThreshold
@Deprecated public static java.lang.String determineDrillRetainThreshold(ViewBean vb, java.lang.String preferenceValue)
Deprecated.This method is no longer used. The backend determines the value of this setting if it is set to use report definition.get the drill retain thresholds- Parameters:
vb
- the ViewBean objectpreferenceValue
- the preference value- Returns:
- the drill retain thresholds
-
getReportPropertyValue
public static java.lang.String getReportPropertyValue(ViewBean vb, java.lang.String propertyName)
-
setReportPropertyValue
public static java.lang.String setReportPropertyValue(ViewBean vb, java.lang.String propertyName, java.lang.String propertyValue)
-
getReportStyleID
public static java.lang.String getReportStyleID(ViewBean vb)
get report style id from report property- Parameters:
vb
- theViewBean
object- Returns:
- report style id
-
getReportStyleName
public static java.lang.String getReportStyleName(ViewBean vb)
get report style name from report property- Parameters:
vb
- theViewBean
object- Returns:
- report style name from report property
-
getReportStyleLocalizedName
public static java.lang.String getReportStyleLocalizedName(ViewBean vb)
get report localized style name- Parameters:
vb
- theViewBean
object- Returns:
- localized style name
-
ignoreOldStyle
public static boolean ignoreOldStyle(ViewBean vb)
whether the report is old or new formatting- Parameters:
vb
- the ViewBean object- Returns:
- whether the report is old or new formatting
-
getGridBoneFormalParameters
public static void getGridBoneFormalParameters(Transform t, JsonGenerator json)
Sets formal paramters used by grid bones for client-side template manipulations as properties of aJsonGenerator
.- Parameters:
t
-Transform
instancejson
-JsonGenerator
that will accept the new properties
-
getGridFeatures
@Deprecated public static JsonGenerator getGridFeatures(WebFeatures featuresManager, boolean isDesignMode, boolean hasMetrics)
Deprecated.Creates a json generator for the client-side template features property.- Parameters:
featuresManager
-WebFeatures
the report features manager used to check if a feature is availableisDesignMode
- boolean that indicates if the interface is in design mode or nothasMetrics
- boolen that indicates if the template has metrics- Returns:
- a
JsonGenerator
with the template features.
-
getGridFeatures
public static JsonGenerator getGridFeatures(WebFeatures featuresManager, boolean isDesignMode)
Creates a json generator for the client-side template features property.- Parameters:
featuresManager
-WebFeatures
the report features manager used to check if a feature is availableisDesignMode
- boolean that indicates if the interface is in design mode or not- Returns:
- a
JsonGenerator
with the template features.
-
getGridFeatures
@Deprecated public static JsonGenerator getGridFeatures(WebComponent bean, boolean isDesignMode, boolean hasMetrics)
Deprecated.Creates a json generator for the client-side template features property.- Parameters:
bean
-WebComponent
the report features manager used to check if a feature is availableisDesignMode
- boolean that indicates if the interface is in design mode or nothasMetrics
- boolen that indicates if the template has metrics- Returns:
- a
JsonGenerator
with the template features.
-
getGridFeatures
public static JsonGenerator getGridFeatures(WebComponent bean, boolean isDesignMode)
Creates a json generator for the client-side template features property.- Parameters:
bean
-WebComponent
the report features manager used to check if a feature is availableisDesignMode
- boolean that indicates if the interface is in design mode or not- Returns:
- a
JsonGenerator
with the template features.
-
getFeaturesList
public static final java.lang.String[] getFeaturesList()
- Returns:
- a copy of the features String array that is sent to the report
- Since:
- MicroStrategy Web 9.0.0
-
renderColTags
@Deprecated public static void renderColTags(int dpi, double zoom, MarkupOutput out, ViewBean vb)
Deprecated.transforms should extendReportGridTransformImpl
and use protected method renderColTagsHtmlRenders the col tags for a grid column widths.- Parameters:
dpi
- int containing the dpi of the clientzoom
- value for zoom property to useout
-MarkupOutput
instance where the HTML contents to render are to be savedvb
-ViewBean
base instance
-
getAddAttFormLink
public static java.lang.String getAddAttFormLink(ViewBean vb, java.lang.String attID, java.lang.String attFormID, boolean isBase, int toPos, java.lang.String extraURL, boolean addState, EventManager eventManager, java.lang.String datasetID)
-
getAddAttFormEvent
public static WebEvent getAddAttFormEvent(ViewBean vb, java.lang.String attID, java.lang.String attFormID, boolean isBase, java.lang.String toPos, java.lang.String datasetID)
-
getRemoveAttFormLink
public static java.lang.String getRemoveAttFormLink(ViewBean vb, java.lang.String attID, java.lang.String attFormID, boolean isBase, java.lang.String extraURL, boolean addState, EventManager eventManager, java.lang.String datasetID)
-
getRemoveAttFormEvent
public static WebEvent getRemoveAttFormEvent(ViewBean vb, java.lang.String attID, java.lang.String attFormID, boolean isBase, java.lang.String datasetID)
-
getOpenAttFormEditorLink
public static java.lang.String getOpenAttFormEditorLink(ViewBean vb, java.lang.String attID, java.lang.String extraURL, boolean addState, EventManager eventManager)
-
getOpenAttFormEditorEvent
public static WebEvent getOpenAttFormEditorEvent(ViewBean vb, java.lang.String attID)
-
generateAttributeFormListForContextMenus
public static java.lang.String generateAttributeFormListForContextMenus(WebWorkingSet ws, WebAttribute att, boolean isRWDoc)
Generates aString
with the list of attribute forms.
This is used for the object browser context menus during client-side manipulations- Parameters:
ws
- WebWorkingSet the working setatt
- WebTemplateUnit the web attribute objectisRWDoc
- boolean indicates its an rwd.- Returns:
- a String
-
generateAttributeFormListForContextMenus
public static java.lang.String generateAttributeFormListForContextMenus(WebWorkingSet ws, WebTemplateAttribute wta, boolean isRWDoc)
Generates aString
with the list of attribute forms.
This is used for the context menus on client-side manipulations- Parameters:
ws
- WebWorkingSet the working setwta
- WebTemplateAttribute the viewbean template attributeisRWDoc
- boolean indicates its an rwd.- Returns:
- a String
-
isDrillPathsInOldFormat
public static boolean isDrillPathsInOldFormat(ViewBean vb)
- Since:
- MicroStrategy Web 8.0.1
-
getOutlineModeMaxLevels
public static int getOutlineModeMaxLevels(ViewBean vb)
- Since:
- MicroStrategy Web 8.0.2
-
getDefaultOutlineModeExpansionLevel
public static int getDefaultOutlineModeExpansionLevel(ViewBean vb)
-
getRemoveUnitLink
@Deprecated public static java.lang.String getRemoveUnitLink(ViewBean vb, java.lang.String fromAxis, java.lang.String fromPos, boolean applyNow, java.lang.String extraURL, boolean addState, EventManager eventManager)
Deprecated.please use the new approach for generating context menu options, seeReportCellRemoveFromReport
andReportCellRemoveFromGrid
; or about the generation of remove manipulations available onReportGridDisplayCell
get a link for a remove action- Parameters:
vb
- the ViewBean objectfromAxis
- the origin axisfromPos
- the origin positionapplyNow
- whether to apply changeextraURL
- extra url information to appendaddState
- whether add the beans's stateeventManager
- EventManager object- Returns:
- the link as String
-
getRemoveMetricLink
@Deprecated public static java.lang.String getRemoveMetricLink(ViewBean vb, java.lang.String metricPos, boolean applyNow, java.lang.String extraURL, boolean addState, EventManager eventManager)
Deprecated.please consult the transform class for remove manipulationsget a link for a remove metric action- Parameters:
vb
- the ViewBean objectmetricPos
- the metric positionapplyNow
- whether to apply changeextraURL
- extra url information to appendaddState
- whether add the beans's stateeventManager
- EventManager object- Returns:
- the link as String
-
getMoveMetricLink
@Deprecated public static java.lang.String getMoveMetricLink(ViewBean vb, java.lang.String fromPos, java.lang.String toPos, boolean applyNow, java.lang.String extraURL, boolean addState, EventManager eventManager)
Deprecated.please use the transform and cell information for pivot manipulationsget a link for a move metric action- Parameters:
vb
- the ViewBean objectfromPos
- the origin positiontoPos
- the target positionapplyNow
- whether to apply changeextraURL
- extra url information to appendaddState
- whether add the beans's stateeventManager
- EventManager object- Returns:
- the link as String
-
generateMoveContextMenu
@Deprecated public static boolean generateMoveContextMenu(ViewBean vb, int pos, boolean isFirst, boolean isLast, boolean applyNow, java.lang.String extraUrl, boolean isIFrame, ContextMenu rhMenu, ContextMenuManager cmm, EventManager eventManager)
Deprecated.please use the new approach for generating context menu options, seeReportCellMove
generate a move RMC for a single metric- Parameters:
vb
- the ViewBean objectpos
- metric positionisFirst
- if it's the first metricisLast
- if it's the last metricapplyNow
- whether to apply changeextraUrl
- extra url info to the linkisIFrame
- whether it is iframerhMenu
- ContextMenu objectcmm
- ContextMenuManager objecteventManager
- EventManager object- Returns:
- whether the move item is added to the context menu
-
generateMoveContextMenu
@Deprecated public static boolean generateMoveContextMenu(ViewBean vb, int pos, boolean isFirst, boolean isLast, ContextMenu rhMenu, ContextMenuManager cmm)
Deprecated.please use the new approach for generating context menu options, seeReportCellMove
generate a client-side move RMC for a single metric- Parameters:
vb
- theViewBean
objectpos
- metric positionisFirst
- if it's the first metricisLast
- if it's the last metricrhMenu
- ContextMenu objectcmm
- ContextMenuManager object- Returns:
- whether the move item is added to the context menu
-
generateMoveContextMenu
@Deprecated public static void generateMoveContextMenu(ViewBean vb, int axis, int pos, boolean isFirst, boolean isLast, boolean applyNow, java.lang.String extraUrl, boolean isIFrame, ContextMenu rhMenu, ContextMenuManager cmm, EventManager eventManager)
Deprecated.please use the new approach for generating context menu options, seeReportCellMove
generate a move RMC for a template unit- Parameters:
vb
- the ViewBean objectaxis
- template unit axispos
- template unit positionisFirst
- if it's the first unit in the axisisLast
- if it's the last unit in the axisapplyNow
- whether to apply changeextraUrl
- extra url info to the linkisIFrame
- whether it is iframe enabledrhMenu
- ContextMenu objectcmm
- ContextMenuManager objecteventManager
- EventManager object
-
generateMoveContextMenu
@Deprecated public static void generateMoveContextMenu(ViewBean vb, int axis, int pos, boolean isFirst, boolean isLast, ContextMenu rhMenu, ContextMenuManager cmm)
Deprecated.please use the new approach for generating context menu options, seeReportCellMove
generate a client-side move RMC for a template unit- Parameters:
vb
- the ViewBean objectaxis
- template unit axispos
- template unit positionisFirst
- if it's the first unit in the axisisLast
- if it's the last unit in the axisrhMenu
- ContextMenu objectcmm
- ContextMenuManager object
-
generateRemoveWorkingSetUnitContextMenu
@Deprecated public static void generateRemoveWorkingSetUnitContextMenu(ViewBean vb, WebObjectInfo object, boolean applyNow, java.lang.String extraUrl, boolean isIframe, ContextMenu rhMenu, EventManager eventManager)
Deprecated.please use the new approach for generating context menu options, seeReportCellRemoveFromReport
andReportCellRemoveFromGrid
generate Remove context menu for working set specified by axis and position.- Parameters:
vb
- the ViewBean objectobject
- the object to remove from the working set of the reportapplyNow
- whether to apply changeextraUrl
- extra url info on the urlisIframe
- whether it is iframe enabledrhMenu
- ContextMenu objecteventManager
- EventManager object
-
generateRemoveWorkingSetAllMetricsContextMenu
@Deprecated public static void generateRemoveWorkingSetAllMetricsContextMenu(ViewBean vb, boolean applyNow, java.lang.String extraUrl, boolean isIframe, ContextMenu rhMenu, EventManager eventManager)
Deprecated.please use the new approach for generating context menu options, seeReportCellRemoveFromReport
andReportCellRemoveFromGrid
-
generateRemoveContextMenu
@Deprecated public static void generateRemoveContextMenu(ViewBean vb, int pos, boolean applyNow, java.lang.String extraUrl, boolean isIframe, ContextMenu rhMenu, EventManager eventManager)
Deprecated.please use the new approach for generating context menu options, seeReportCellRemoveFromReport
andReportCellRemoveFromGrid
generate Remove context menu for single metric- Parameters:
vb
- the ViewBean objectpos
- metric positionapplyNow
- whether to apply changeextraUrl
- extra url info to the linkisIframe
- whether it is iframe enabledrhMenu
- ContextMenu objecteventManager
- EventManager object
-
generateClientSideRemoveContextMenu
@Deprecated public static void generateClientSideRemoveContextMenu(ViewBean vb, int pos, ContextMenu rhMenu, boolean enableExtraRemove)
Deprecated.please use the new approach for generating context menu options, seeReportCellRemoveFromReport
andReportCellRemoveFromGrid
generate client-side Remove context menu for single metric- Parameters:
vb
- the ReportBean objectpos
- metric positionrhMenu
- ContextMenu objectenableExtraRemove
- boolean value indicating if Remove From Report option should be displayed if available
-
generateRemoveTemplateUnitContextMenu
@Deprecated public static void generateRemoveTemplateUnitContextMenu(ViewBean vb, int axis, int pos, boolean applyNow, java.lang.String extraUrl, boolean isIframe, ContextMenu rhMenu, EventManager eventManager)
Deprecated.please use the new approach for generating context menu options, seeReportCellRemoveFromReport
andReportCellRemoveFromGrid
generate Remove context menu for template unit- Parameters:
vb
- the ViewBean objectaxis
- template unit axispos
- template unit positionapplyNow
- whether to apply changeextraUrl
- extra url info to the linkisIframe
- whether it is iframe enabledrhMenu
- ContextMenu objecteventManager
- EventManager object
-
generateRemoveClientSideContextMenu
@Deprecated public static void generateRemoveClientSideContextMenu(ViewBean vb, int axis, int pos, ContextMenu rhMenu, boolean enableExtraRemove)
Deprecated.please use the new approach for generating context menu options, seeReportCellRemoveFromReport
andReportCellRemoveFromGrid
generate client-side Remove context menu for template unit- Parameters:
vb
- the ViewBean objectaxis
- template unit axispos
- template unit positionrhMenu
- ContextMenu objectenableExtraRemove
- boolean value indicating if Remove From Report option should be displayed if available
-
getWebObjectInfo
@Deprecated public static WebObjectInfo getWebObjectInfo(WebTemplateUnit unit)
Deprecated.- Parameters:
unit
-WebTemplateUnit
object- Returns:
WebObjectInfo
corresponding to theWebTemplateUnit
instance
-
generateFilterOnContextMenu
@Deprecated public static void generateFilterOnContextMenu(ViewBean vb, WebObjectInfo objInfo, java.lang.String unitAlias, ContextMenu cm, EventManager eventManager, boolean isIFrame)
Deprecated.please use the new approach for generating context menu options, seeReportCellFilterOn
Adds new context menu to either col or row header title for allow end-users to filter on given attribute or metric- Parameters:
vb
- ViewBeanobjInfo
- WebObjectInfounitAlias
- Stringcm
- ContextMenueventManager
- EventManagerisIFrame
- boolean
-
generateShortcutMetricsContextMenu
@Deprecated public static void generateShortcutMetricsContextMenu(ViewBean vb, java.lang.String metricID, ContextMenu rhMenu, ContextMenuManager cmm, EventManager eventManager, boolean isIFrame)
Deprecated.please use the new approach for generating context menu options, seeReportCellInsertMetric
-
getSinglePivotLink
@Deprecated public static java.lang.String getSinglePivotLink(ViewBean vb, java.lang.String fromAxis, java.lang.String fromPos, java.lang.String toAxis, java.lang.String toPos, boolean applyNow, java.lang.String extraURL, boolean addState, EventManager eventManager)
Deprecated.Please useEventManager
and event details available on transform related classes such asReportGridDisplayCell
for generating this information.get a link for a pivot action- Parameters:
vb
- the ViewBean objectfromAxis
- the origin axisfromPos
- the origin positiontoAxis
- the target axistoPos
- the target positionapplyNow
- whether to apply changeextraURL
- extra url information to appendaddState
- whether add the beans's stateeventManager
- EventManager object- Returns:
- the link as String
-
getSinglePivotEvent
@Deprecated public static WebEvent getSinglePivotEvent(ViewBean vb, java.lang.String fromAxis, java.lang.String fromPos, java.lang.String toAxis, java.lang.String toPos, boolean applyNow)
Deprecated.Please useEventManager
and event details available on transform related classes such asReportGridDisplayCell
for generating this information.get event object for a pivot action- Parameters:
vb
- the ViewBean objectfromAxis
- the origin axisfromPos
- the origin positiontoAxis
- the target axistoPos
- the target positionapplyNow
- whether to apply change- Returns:
- the
WebEvent
object
-
generateFormattingContextMenu
@Deprecated public static void generateFormattingContextMenu(ViewBean vb, int pos, java.lang.String extraUrl, boolean isIframe, ContextMenu rhMenu, EventManager eventManager)
Deprecated.please use the new approach for generating context menu options, seeReportCellFormat
generate Formatting context menu for single metric. It uses the value sent as position (pos) minus one.- Parameters:
vb
- the ViewBean objectpos
- metric positionextraUrl
- extra url info to the linkisIframe
- whether it is iframe enabledrhMenu
- ContextMenu objecteventManager
- EventManager object
-
generateFormattingContextMenu
@Deprecated public static void generateFormattingContextMenu(ViewBean vb, int axis, int pos, java.lang.String extraUrl, boolean isIframe, ContextMenu rhMenu, EventManager eventManager)
Deprecated.please use the new approach for generating context menu options, seeReportCellFormat
generate Formatting context menu for template unit.- Parameters:
vb
- the ViewBean objectaxis
- template unit axispos
- template unit positionextraUrl
- extra url info to the linkisIframe
- whether it is iframe enabledrhMenu
- ContextMenu objecteventManager
- EventManager object
-
generateFormattingContextMenuForRWB
@Deprecated public static void generateFormattingContextMenuForRWB(ViewBean vb, int pos, java.lang.String extraUrl, boolean isIframe, ContextMenu rhMenu, EventManager eventManager, java.lang.String viewerID)
Deprecated.please use the new approach for generating context menu options, seeReportCellFormat
generate Formatting context menu for single metric in case of a view bean in a RW document. It uses the value sent as position (pos) minus one.- Parameters:
vb
- the ViewBean objectpos
- metric positionextraUrl
- extra url info to the linkisIframe
- whether it is iframe enabledrhMenu
- ContextMenu objecteventManager
- EventManager objectviewerID
- The bone ID of the RW sviewer
-
generateFormattingContextMenuForRWB
@Deprecated public static void generateFormattingContextMenuForRWB(ViewBean vb, int axis, int pos, java.lang.String extraUrl, boolean isIframe, ContextMenu rhMenu, EventManager eventManager, java.lang.String viewerID)
Deprecated.please use the new approach for generating context menu options, seeReportCellFormat
generate Formatting context menu for template unit in case of a view bean in a RW document.- Parameters:
vb
- the ViewBean objectaxis
- template unit axispos
- template unit positionextraUrl
- extra url info to the linkisIframe
- whether it is iframe enabledrhMenu
- ContextMenu objecteventManager
- EventManager objectviewerID
- The bone ID of the RW sviewer
-
generateFormattingContextMenuForRWB
@Deprecated public static void generateFormattingContextMenuForRWB(ViewBean vb, ContextMenu rhMenu, java.lang.String viewerID)
Deprecated.please use the new approach for generating context menu options, seeReportCellFormat
generate client-side Formatting context menu for template unit in case of a view bean in a RW document.- Parameters:
vb
- the ViewBean objectrhMenu
- ContextMenu objectviewerID
- The bone ID of the RW sviewer
-
generateRenameContextMenuForRWB
@Deprecated public static void generateRenameContextMenuForRWB(ViewBean vb, int key, java.lang.String extraUrl, boolean isIframe, ContextMenu rhMenu, EventManager eventManager)
Deprecated.please use the new approach for generating context menu options, seeReportCellRename
-
generateRenameContextMenu
@Deprecated public static void generateRenameContextMenu(ViewBean vb, int key, java.lang.String extraUrl, boolean isIframe, ContextMenu rhMenu, EventManager eventManager)
Deprecated.please use the new approach for generating context menu options, seeReportCellRename
-
generateAttributeFormContextMenu
@Deprecated public static void generateAttributeFormContextMenu(ViewBean vb, WebTemplateUnit tu, boolean isIFrame, ContextMenu rhMenu, ContextMenuManager cmm, java.lang.String datasetID)
Deprecated.please use the new approach for generating context menu options, seeReportCellAttributeForms
Generates the Attribute forms context menu.- Parameters:
vb
- ViewBean the view bean to displaytu
- WebTemplateUnit the template unit objectisIFrame
- booleanrhMenu
- ContextMenucmm
- ContextMenuManagerdatasetID
- String dataset ID. This assumes is a dataset inside a RW document.
-
getBlockProps
public static Block getBlockProps(WebTemplate template, java.lang.String[] properties, int axis, int position, int level, AppContext context) throws java.lang.Exception
- Throws:
java.lang.Exception
-
generateFormattingInfoBlock
public static Block generateFormattingInfoBlock(WebTemplate template, AppContext context) throws java.lang.Exception
- Throws:
java.lang.Exception
- Since:
- MicroStrategy Web 9.0.0
-
generateFormattingInfoBlock
public static void generateFormattingInfoBlock(WebTemplate template, AppContext context, Block all) throws java.lang.Exception
- Throws:
java.lang.Exception
- Since:
- MicroStrategy Web 9.0.0
-
generateGraphPropertiesInfoBlock
public static Block generateGraphPropertiesInfoBlock(WebGraph graph, AppContext context) throws WebObjectsException
- Throws:
WebObjectsException
-
generateGraphProperties
public static void generateGraphProperties(WebGraph graphObject, AppContext appContext, Block rootBlock)
-
-