Class ReportFlashTransform
- java.lang.Object
-
- com.microstrategy.web.transform.AbstractTransform
-
- com.microstrategy.web.transform.AbstractLayoutTransform
-
- com.microstrategy.web.app.transforms.AbstractAppTransform
-
- com.microstrategy.web.app.transforms.AbstractWebBeanTransform
-
- com.microstrategy.web.app.transforms.AbstractReportTransform
-
- com.microstrategy.web.app.transforms.AbstractReportDataTransform
-
- com.microstrategy.web.app.transforms.AbstractReportDataVisualizationTransform
-
- com.microstrategy.web.app.transforms.ReportFlashTransform
-
- All Implemented Interfaces:
AppTransform
,ReportDataTransform
,LayoutTransform
,Transform
public class ReportFlashTransform extends AbstractReportDataVisualizationTransform
This Transform generates an embeded flash object tag. It can include the report XML for the Flash to use or a URL that can be used to obtain the report XML.- Since:
- MicroStrategy Web 8.0.2
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class com.microstrategy.web.app.transforms.AbstractAppTransform
AbstractAppTransform.Context
-
-
Field Summary
Fields Modifier and Type Field Description static int
BROWSER_FIREFOX
static int
BROWSER_INTERNET_EXPLORER
protected FormalParameter
extraFlashVars
Deprecated.to add extra flashvars please extend Transform and overwritegetFlashVars()
FormalParameter
flashFile
The name of the flash SWF file to include.static java.lang.String
HIDE_RESIZING_JS
protected FormalParameter
hideResizingJs
In this Transform's output we have some bone-based JavaScript Strings.protected FormalParameter
includeBaseURL
Adds a FlashVar named "baseURL" that contains a URL that can be used to access MicroStrategy Web from Flash.protected FormalParameter
nodeKeys
A list of grid keys to be requested by the Flash code when the visualization is applied to a grid in a document.
This list may have multiple elements if Secondary Data Providers are enabled.
The list is a comma separated list of keys and sliceIDs: "K44:0,W45:1,W46:2"protected FormalParameter
useJS
Whether to use Javascript to render the embeded Flash Object.static java.lang.String
VISUALIZATION_XML_ACCESS_METHOD_TASK_URL
URL to get the XML using the tasks infrastructure - "CustomURL" flashVarstatic java.lang.String
VISUALIZATION_XML_ACCESS_METHOD_URL
URL to get the XML - "CustomURL" flashVarstatic java.lang.String
VISUALIZATION_XML_ACCESS_METHOD_XML
XML directly - "CustomXML" flashVarstatic java.lang.String
VISUALIZATIONS_DEFAULT_LOCATION
-
Fields inherited from class com.microstrategy.web.app.transforms.AbstractReportDataVisualizationTransform
containerHeight, containerWidth, documentStyle, mojoWidgetId, renderElementListOnSelectionDataJson, renderShell, reportXMLPageName, reportXMLStyle, rwPageName, useAbsoluteURLs
-
Fields inherited from class com.microstrategy.web.app.transforms.AbstractReportDataTransform
_blankImage, _cssBottom, _cssCenter, _cssLeft, _cssRight, _cssTop, _ifLeftArrowImage, _ifRightArrowImage, advancedDrillingContextMenuDisplay, BLANK_SUBSET_REPORT_ID, cssBottom, cssCenter, cssLeft, cssRight, cssTop, customJavaScriptFeatures, drillRetainThresholds, drillWithinBehavior, gridGraphUnitKeyContext, groupContextMenuDrillPathsByType, hasIncreFetchForColumnOnLeft, hasIncreFetchForColumnOnRight, id, ifLeftArrowImage, ifRightArrowImage, incrementalFetchStyleForRow, quickSwitch, quickSwitchCurrent, rwbViewerID, showDrillPathSetNamesSubMenuAtTopLevel, showIncreFetchForColumn, showIncreFetchForRowOnBottom, showIncreFetchForRowOnTop, showSubtitlePara, sortSetNamesAndDrillPaths, transformContext, uniqueReportId
-
Fields inherited from class com.microstrategy.web.app.transforms.AbstractReportTransform
BLANK_XDA_REPORT_ID, cssErrorMessage, cssErrorTitle, cssUseFileContent, generateJSForDrillCheckBoxesForIncFetch, iFramePara, imgError, showScroller, useBuiltInFormatPara
-
Fields inherited from class com.microstrategy.web.app.transforms.AbstractAppTransform
_bean, _componentBlock, _cssPrefix, _imgBlank, _imgWait, _selfOutput, _subOutput, appliesTo, CLASS_INPUT, CLASS_MESSAGE, contextMenus, cssFile, cssPrefix, debugErrorFlags, debugFlags, dragMode, extraInput, extraUrl, FP_APPLIES_TO, FP_CONTEXT_MENUS, FP_CSS_ERROR_MESSAGE, FP_CSS_ERROR_TITLE, FP_CSS_FILE, FP_CSS_PREFIX, FP_DEBUG_ERROR_FLAGS, FP_DEBUG_FLAGS, FP_DRAG_MODE, FP_EXTRA_INPUT, FP_EXTRA_URL, FP_HEIGHT, FP_IFRAME_ENABLED, FP_IMG_WAIT, FP_INITIAL_INDENT, FP_ORIENTATION, FP_ORIENTATIONS_ALLOWED, FP_PARTIAL_IFRAME_UPDATE, FP_PROCESSING_BUTTONS_FLAGS, FP_PROCESSING_INFO_FLAGS, FP_RESIZE_LEVEL, FP_SCRIPT_CLASS, FP_TYPE, FP_USE_DHTML, FP_WIDTH, globalCssErrorMessage, globalCssErrorTitle, height, iframeEnabled, imgWait, indent, initialIndent, isDHTML, orientation, orientationsAllowed, partialIframeUpdate, PROCESSING_BUTTONS_ALL, PROCESSING_BUTTONS_CANCEL, PROCESSING_BUTTONS_HISTORY_LIST, PROCESSING_BUTTONS_REFRESH, PROCESSING_BUTTONS_VIEW_DETAILS, PROCESSING_INFO_ALL, PROCESSING_INFO_DESCRIPTION, PROCESSING_INFO_LAST_UPDATE, PROCESSING_INFO_NAME, PROCESSING_INFO_NONE, PROCESSING_INFO_STATUS, processingButtonsFlags, processingInfoFlags, RESIZE_ALL, RESIZE_HORIZONTAL, RESIZE_NONE, RESIZE_VERTICAL, resizeLevel, scriptClass, scriptEndTagEncoder, type, useDHTML, width
-
-
Constructor Summary
Constructors Constructor Description ReportFlashTransform()
Default no-args constructor, initializes formal parameters.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description protected HashList
getFlashVars()
Returns the collection of flashVars to be added to the embedded Flash object.static java.lang.String
getVersion(AppContext appContext)
Generate a web version.void
initializeProperties()
ExtendsinitializeProperties
by invokinginitializeTranformContext
protected void
renderEmbededFlashObjectTag(MarkupOutput out)
Renders an embeded object flash file based on the values set on the formal parameters.protected static void
renderEmbededFlashObjectTag(MarkupOutput out, java.lang.String movie, HashList flashVarsList, java.lang.String extraFlashVars, java.lang.String imgWidth, java.lang.String imgHeight, int browserType)
Deprecated.use renderEmbededFlashObjectTag(MarkupOutput out, String movie, HashList flashVarsList, String extraFlashVars, String width, String height, AppContext appContext, String beanPath)protected static void
renderEmbededFlashObjectTag(MarkupOutput out, java.lang.String movie, HashList flashVarsList, java.lang.String extraFlashVars, java.lang.String width, java.lang.String height, AppContext appContext, java.lang.String beanPath)
Renders an embeded object flash file.protected static void
renderEmbededFlashObjectTag(MarkupOutput out, java.lang.String movie, HashList flashVarsList, java.lang.String extraFlashVars, java.lang.String width, java.lang.String height, AppContext appContext, java.lang.String beanPath, java.lang.String containerID)
Renders an embeded object flash file.protected static void
renderEmbededFlashObjectTag(MarkupOutput out, java.lang.String movie, HashList flashVarsList, java.lang.String extraFlashVars, java.lang.String width, java.lang.String height, AppContext appContext, java.lang.String beanPath, java.lang.String containerID, boolean useJS)
protected static void
renderEmbededFlashObjectTag(MarkupOutput out, java.lang.String movie, HashList flashVarsList, java.lang.String extraFlashVars, java.lang.String width, java.lang.String height, AppContext appContext, java.lang.String beanPath, java.lang.String containerID, boolean useJS, boolean hideResizingJS)
Renders an embeded object flash file.protected 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
renderVisualization(MarkupOutput out)
Renders an embeded Flash object tag.void
transformForRequestSuccessful(MarkupOutput out)
Transform when the status is "Successful".-
Methods inherited from class com.microstrategy.web.app.transforms.AbstractReportDataVisualizationTransform
getAttributesBone, getBaseURL, getBaseURL, getControlLinksJson, getCustomReportXML, getDescription, getGridKeys, getMojoWidgetId, getResultFlags, getRWBean, getSelectionDataJSON, getSupportedBeanType, getTaskBaseURL, getTaskBaseURL, getTaskURLForCustomReportXML, getTaskURLForReportContent, getTaskURLForReportData, getURLForCustomReportXML, getWebReportGrid, hasCenter, initializeTransform, isDesignMode, isGraphTransform, isGridTransform, renderCenter, renderData, renderEmptyCase, renderLayout, setBoneProperties, setMojoWidgetId, supports
-
Methods inherited from class com.microstrategy.web.app.transforms.AbstractReportDataTransform
createBlockEditorProperties, createBlockEditorProperties, generatePageHistoryItems, getAttributesShellDiv, getBeanPath, getBoneId, getDisplayMode, getFrameBean, getGridData, getGridScriptClass, getGridWidths, getID, getMetricAxisName, getReportSetting, getTransformContext, getViewBean, getWebTemplate, hasBottom, hasLeft, hasRight, hasTop, initializeCss, initializeImages, initializeTranformContext, initializeWebComponent, isCalledFromPrinting, isGridEmpty, isQuickSwitchEnabled, isRWBean, renderBottom, renderContent, renderIncreFetchOnColumnLeftPart, renderIncreFetchOnColumnRightPart, renderIncreFetchOnRow, renderLeft, renderRight, renderRowsIncrementalFetch, renderTop, shouldRenderGridInfo, showSubtitle, showSubtitle, showSubTitleOnly, supports
-
Methods inherited from class com.microstrategy.web.app.transforms.AbstractReportTransform
canTransform, generateAnchor, generateErrorForIframe, generateErrorForIframe, generateIncFetchAnchor, generateIncFetchOpenAnchor, getCancelEvent, getContinueEvent, getErrorMessage, getErrorTitle, getHistoryListEvent, getInboxSource, getJobExpiredMessage, getNextColumnsEvent, getPreviousColumnsEvent, getReexecuteButtonDescription, getReportBean, getReportStatus, getReportStatusDescriptorKey, getRepromptEvent, getViewDetailsEvent, getWebReexecuteEvent, isCubeReport, isDatamart, isIFrameEnabled, isIncRefreshReport, isNonViewableReport, renderColumnsIncrementalFetch, renderColumnsIncrementalFetchNext, renderColumnsIncrementalFetchPrevious, renderContinueFormForRequestInError, renderErrorButtons, renderErrorInfo, renderHistoryListButton, renderImage, renderJobExpiredSection, renderProcessingButtons, renderProcessingInfo, renderProcessingInfoDetails, renderViewDetailsButton, setWebReexecuteEventArguments, transformForRequestInError, transformForRequestNotInited, useBuiltInFormat
-
Methods inherited from class com.microstrategy.web.app.transforms.AbstractWebBeanTransform
getReexcuteEventFromBean, getTaskProcessorBaseURL
-
Methods inherited from class com.microstrategy.web.app.transforms.AbstractAppTransform
addContactInfo, addDynamicScriptClass, addDynamicScriptFile, addFormalParameter, checkLevel, checkProcessingButtonsFlag, checkProcessingInfoFlag, checkStatus, displayError, displayError, displayError, emptyCell, excludeStaticTags, generateAnchorForExport, generateHiddenInputsForEvent, generateIFrameTag, getAppContext, getArgumentName, getClientSideHelper, getContainerServices, getContext, getContextMenu, getContextMenuManager, getContextMenuManagerName, getContextMenusDefinition, getCssPrefix, getDateFormat, getDebugOut, getDescriptor, getDescriptor, getDescriptor, getDescriptor, getDisplayMode, getDisplayName, getErrorMessage, getErrorTitle, getEventManager, getFirstDayOfWeek, getFloatValue, getHelpPath, getIntValue, getJSNameSpace, getLayoutContext, getLocale, getLocale, getPreferenceValue, getProjectID, getRefreshEvent, getRequestKeys, getResourcesFolder, getScriptClass, getStringValue, getStyleRequestContext, getStyleShellDiv, getTagsFactory, getTimeFormat, getUnitsLabel, getWebBeanErrorInfo, hasSubBlock, initHeightAndWidthFromPreferences, is508, isBlockMode, isContextMenusEnabled, isDhtml, isDialog, isDormant, isFeatureAvailable, isIFrameDisplayMode, isIFrameRequest, isJobExpired, isModal, isOpen, isPortlet, isTrue, localIsIFrameDisplayMode, newContext, newHiddenInputBuilder, newNamespaceEncoder, newURIBuilder, redirectToDisplayError, renderBean, renderBean, renderBean, renderBean, renderCancelButton, renderContextMenus, renderCssLink, renderDescriptor, renderDescriptor, renderErrorButton, renderHiddenInputFromRequest, renderLayout, renderProcessingButton, renderProcessingButton, renderProcessingButton, renderProcessingButtonForGet, renderProcessingButtonForGet, renderProcessingInfoData, renderProcessingInfoImage, renderProcessingInfoSubtitle, renderProcessingInfoTitle, renderProcessingObjectName, renderRefreshButton, renderRegisterBone, renderSelf, renderShell, renderSubBlock, renderUserHelpAnchor, setDisplayMode, setHasSubBlock, setHeight, setIFrameDisplayMode, setIsDormant, setRenderSubBlock, setShellAttributeOnClosedComponent, setWidth, shouldDisplay, transform, transformForRequestCanceled, transformForRequestProcessing, transformForRequestWaitingForUserInput
-
Methods inherited from class com.microstrategy.web.transform.AbstractLayoutTransform
getLayoutDefinition, setLayoutDefinition, transformUsingLayout
-
Methods inherited from class com.microstrategy.web.transform.AbstractTransform
addFormalParam, getEvents, getFormalParams, getPreview, isPreviewAvailable, isResolved, removeFormalParam, setAnnotation, setDeprecated
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface com.microstrategy.web.transform.LayoutTransform
getLayoutDefinition, setLayoutDefinition
-
Methods inherited from interface com.microstrategy.web.transform.Transform
canTransform, getFormalParams, getPreview, isPreviewAvailable, isResolved, transform
-
-
-
-
Field Detail
-
VISUALIZATION_XML_ACCESS_METHOD_XML
public static final java.lang.String VISUALIZATION_XML_ACCESS_METHOD_XML
XML directly - "CustomXML" flashVar- Since:
- MicroStrategy Web 8.1.0
- See Also:
- Constant Field Values
-
VISUALIZATION_XML_ACCESS_METHOD_URL
public static final java.lang.String VISUALIZATION_XML_ACCESS_METHOD_URL
URL to get the XML - "CustomURL" flashVar- Since:
- MicroStrategy Web 8.1.0
- See Also:
- Constant Field Values
-
VISUALIZATION_XML_ACCESS_METHOD_TASK_URL
public static final java.lang.String VISUALIZATION_XML_ACCESS_METHOD_TASK_URL
URL to get the XML using the tasks infrastructure - "CustomURL" flashVar- Since:
- MicroStrategy Web 8.1.0
- See Also:
- Constant Field Values
-
VISUALIZATIONS_DEFAULT_LOCATION
public static final java.lang.String VISUALIZATIONS_DEFAULT_LOCATION
- Since:
- MicroStrategy Web 8.1.0
- See Also:
- Constant Field Values
-
HIDE_RESIZING_JS
public static final java.lang.String HIDE_RESIZING_JS
- See Also:
- Constant Field Values
-
flashFile
public FormalParameter flashFile
The name of the flash SWF file to include. Allowed values: String values
-
extraFlashVars
protected FormalParameter extraFlashVars
Deprecated.to add extra flashvars please extend Transform and overwritegetFlashVars()
The value of this parameter specifies a collection of extra flashVar variables that will be passed to the embedded flash object. These variables consist of name/value pairs in the following format:
"name1=value1&name2=value2&name3=value3"
If set through the styleCatalog.xml, the '&' must be encoded, so it should be "name1=value1&name2=value2&name3=value3"
-
includeBaseURL
protected FormalParameter includeBaseURL
Adds a FlashVar named "baseURL" that contains a URL that can be used to access MicroStrategy Web from Flash.
This link includes the session manager state which is used to restore the session
-
useJS
protected FormalParameter useJS
Whether to use Javascript to render the embeded Flash Object.
Javascript is used validate that the proper version of Flash is installed on the client.
Its value can be specified on the request as "useJS" and this will overwrite the existing value.- Since:
- MicroStrategy Web 8.1.1
-
nodeKeys
protected FormalParameter nodeKeys
A list of grid keys to be requested by the Flash code when the visualization is applied to a grid in a document.
This list may have multiple elements if Secondary Data Providers are enabled.
The list is a comma separated list of keys and sliceIDs: "K44:0,W45:1,W46:2"
-
hideResizingJs
protected FormalParameter hideResizingJs
In this Transform's output we have some bone-based JavaScript Strings. These JavaScript are not used for Mojo Modes. So we use this boolean-typed FormalParameter to control whether we show the JavaScript or not.
-
BROWSER_INTERNET_EXPLORER
public static final int BROWSER_INTERNET_EXPLORER
- See Also:
- Constant Field Values
-
BROWSER_FIREFOX
public static final int BROWSER_FIREFOX
- See Also:
- Constant Field Values
-
-
Method Detail
-
initializeProperties
public void initializeProperties()
Description copied from class:AbstractReportDataTransform
ExtendsinitializeProperties
by invokinginitializeTranformContext
- Overrides:
initializeProperties
in classAbstractReportDataVisualizationTransform
- Since:
- MicroStrategy Web 8.1.1
-
renderVisualization
public void renderVisualization(MarkupOutput out)
Renders an embeded Flash object tag.- Specified by:
renderVisualization
in classAbstractReportDataVisualizationTransform
- Parameters:
out
- The Markup output
-
getFlashVars
protected HashList getFlashVars()
Returns the collection of flashVars to be added to the embedded Flash object. Based on the value ofEnumWebPreferences.WebPreferenceVisualizationsXMLAccessMethod
, it adds "customURL" or "customXML" with their corresponding values. It may also add a baseURL if specified in the formal parameter. This method can be overritten to add more flashVars.- Returns:
- the collection of flashVars to be added to the embedded Flash object
-
renderEmbededFlashObjectTag
protected void renderEmbededFlashObjectTag(MarkupOutput out)
Renders an embeded object flash file based on the values set on the formal parameters.- Parameters:
out
- the Markup output
-
renderEmbededFlashObjectTag
protected static void renderEmbededFlashObjectTag(MarkupOutput out, java.lang.String movie, HashList flashVarsList, java.lang.String extraFlashVars, java.lang.String width, java.lang.String height, AppContext appContext, java.lang.String beanPath)
Renders an embeded object flash file.
This can be used when extending this class to embed a flash file different from the one specified by the formal parameter values.- Parameters:
out
- the Markup outputmovie
- the flash movie pathflashVarsList
- the collection (value-name pair) of flashVars to includewidth
- the width of the movieheight
- the height of the movie (if "-1", the flash will be resized when loaded on the browser)appContext
- the AppContext object (only used when height is set to -1)- Since:
- MicroStrategy Web 8.1.0
-
renderEmbededFlashObjectTag
protected static void renderEmbededFlashObjectTag(MarkupOutput out, java.lang.String movie, HashList flashVarsList, java.lang.String extraFlashVars, java.lang.String width, java.lang.String height, AppContext appContext, java.lang.String beanPath, java.lang.String containerID)
Renders an embeded object flash file.
This can be used when extending this class to embed a flash file different from the one specified by the formal parameter values.- Parameters:
out
- the Markup outputmovie
- the flash movie pathflashVarsList
- the collection (value-name pair) of flashVars to includewidth
- the width of the movieheight
- the height of the movie (if "-1", the flash will be resized when loaded on the browser)appContext
- the AppContext object (only used when height is set to -1)containerID
- a unique identifier to use for the Div that will contain the FlashPlayer- Since:
- MicroStrategy Web 8.1.0
-
renderEmbededFlashObjectTag
protected static void renderEmbededFlashObjectTag(MarkupOutput out, java.lang.String movie, HashList flashVarsList, java.lang.String extraFlashVars, java.lang.String width, java.lang.String height, AppContext appContext, java.lang.String beanPath, java.lang.String containerID, boolean useJS)
-
renderEmbededFlashObjectTag
protected static void renderEmbededFlashObjectTag(MarkupOutput out, java.lang.String movie, HashList flashVarsList, java.lang.String extraFlashVars, java.lang.String width, java.lang.String height, AppContext appContext, java.lang.String beanPath, java.lang.String containerID, boolean useJS, boolean hideResizingJS)
Renders an embeded object flash file.
This can be used when extending this class to embed a flash file different from the one specified by the formal parameter values.- Parameters:
out
- the Markup outputmovie
- the flash movie pathflashVarsList
- the collection (value-name pair) of flashVars to includewidth
- the width of the movieheight
- the height of the movie (if "-1", the flash will be resized when loaded on the browser)appContext
- the AppContext object (only used when height is set to -1)containerID
- a unique identifier to use for the Div that will contain the FlashPlayeruseJS
- Whether to use Javascript to render the embeded Flash Object.hideResizingJS
- Whether to hide bone-based Javascript to render the embeded Flash Object.- Since:
- MicroStrategy Web 8.1.1
-
renderJavascript
protected void renderJavascript(MarkupOutput out)
Description copied from class:AbstractReportDataTransform
This method renders the javascript code that needs to be generated on the server side because its content is dynamic. In particular this method invokesrenderRegisterBone
which initializes and registers a grid's bone..- Overrides:
renderJavascript
in classAbstractReportDataTransform
- Parameters:
out
- MarkupOutput to generate the HTML.
-
getVersion
public static java.lang.String getVersion(AppContext appContext)
Generate a web version.- Parameters:
appContext
- used to get the active session used to identify web version- Returns:
- web version
-
renderEmbededFlashObjectTag
protected static void renderEmbededFlashObjectTag(MarkupOutput out, java.lang.String movie, HashList flashVarsList, java.lang.String extraFlashVars, java.lang.String imgWidth, java.lang.String imgHeight, int browserType)
Deprecated.use renderEmbededFlashObjectTag(MarkupOutput out, String movie, HashList flashVarsList, String extraFlashVars, String width, String height, AppContext appContext, String beanPath)Renders an embeded object flash file.
This can be used when extending this class to embed a flash file different from the one specified by the formal parameter values.- Parameters:
out
- the Markup outputmovie
- the flash movie pathflashVarsList
- the collection (value-name pair) of flashVars to includeimgWidth
- the width of the movieimgHeight
- the height of the moviebrowserType
- for which browser to optimize the output: 1 means InternetExplorer (only <object> tag is generated), 2 means Firefox (only <embed> tag is generated). Any other value generates both tags.
-
transformForRequestSuccessful
public void transformForRequestSuccessful(MarkupOutput out)
Description copied from class:AbstractReportDataTransform
Transform when the status is "Successful". This is the main entry point of the Transform. It will check if a layout-xml has been specified and use it, otherwise it callsrenderContent
.
After the content has been generated it callsrenderJavascript
to generate any necessary client-side information.- Overrides:
transformForRequestSuccessful
in classAbstractReportDataVisualizationTransform
- Parameters:
out
- MarkupOutput to generate the HTML.- See Also:
AbstractAppTransform.checkStatus(com.microstrategy.web.beans.MarkupOutput)
-
-