Class ReportSavePropertiesTransform
- 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.ReportSavePropertiesTransform
-
- All Implemented Interfaces:
AppTransform
,Transform
public class ReportSavePropertiesTransform extends AbstractReportTransform
ReportSavePropertiesTransform is the class that generates the output for a Report to be exported.
Please note this transform generates a form which will be submitted automatically after displayed,
therefore it is required the bean is transformed last in the page so any previous HTML/Javascript code
generated by other beans on the page is executed first.- Since:
- MicroStrategy Web 7.3.1 or earlier
-
-
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 protected FormalParameter
addFileNameToURL
Determines whether to add the file name at the end of the URL.protected FormalParameter
allowCloseWindow
Formal parameter that displays special HTML to allow users the possiblity to close the window where this transform will be renderedprotected FormalParameter
eventToForwardTo
This is the name of the event to redirect to after updating the report page state.protected FormalParameter
reloadPageName
Defines the name of the Parent Page to reload after saving Properties on the options page (used for HTML mode) Default value is "report" Allowed values - String value.protected FormalParameter
setEventArguments
Defines if the arguments of the event to forward to should be set or not.protected FormalParameter
useURLRedirect
Determines whether to use a fake URL to avoid a problem with IE having two excel files open at the same time inside the browser.-
Fields inherited from class com.microstrategy.web.app.transforms.AbstractReportTransform
BLANK_SUBSET_REPORT_ID, 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 ReportSavePropertiesTransform()
Default empty constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description java.lang.String
getDescription()
Return description for this TransformWebEvent
getExecuteReportEvent()
Deprecated.usegetReloadPageEvent()
instead.protected java.lang.String
getFormActionName()
WebEvent
getReloadPageEvent()
Return the event to reload the parent page.protected java.lang.String
getSuggestedFileName()
void
initializeTransform(Transformable data)
This method initialize the private and protected fields of the transform.protected void
renderCloseWindowLink(Tag div)
Renders the anchor that displays the "Close window" message.void
renderShell(MarkupOutput out)
Generates the shell for this Transformvoid
transformForRequestProcessing(MarkupOutput mo)
Generates the output when the bean's status isEnumRequestStatus.WebBeanRequestProcessing
.void
transformForRequestSuccessful(MarkupOutput mo)
Transform when the status is "Successful".-
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, getSupportedBeanType, getViewDetailsEvent, getWebReexecuteEvent, initializeImages, initializeProperties, initializeWebComponent, isCubeReport, isDatamart, isDesignMode, 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, getAttributesShellDiv, getBeanPath, getBoneId, getClientSideHelper, getContainerServices, getContext, getContextMenu, getContextMenuManager, getContextMenuManagerName, getContextMenusDefinition, getCssPrefix, getDateFormat, getDebugOut, getDescriptor, getDescriptor, getDescriptor, getDescriptor, getDisplayMode, getDisplayName, getErrorMessage, getErrorTitle, getEventManager, getFirstDayOfWeek, getFloatValue, getHelpPath, getID, getIntValue, getJSNameSpace, getLayoutContext, getLocale, getLocale, getPreferenceValue, getProjectID, getRefreshEvent, getRequestKeys, getResourcesFolder, getScriptClass, getStringValue, getStyleRequestContext, getStyleShellDiv, getTagsFactory, getTimeFormat, getUnitsLabel, getWebBeanErrorInfo, hasSubBlock, initHeightAndWidthFromPreferences, initializeCss, 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, renderSubBlock, renderUserHelpAnchor, setBoneProperties, setDisplayMode, setHasSubBlock, setHeight, setIFrameDisplayMode, setIsDormant, setRenderSubBlock, setShellAttributeOnClosedComponent, setWidth, shouldDisplay, transform, transformForRequestCanceled, 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, supports, supports
-
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.Transform
getFormalParams, getPreview, isPreviewAvailable, isResolved, supports, supports
-
-
-
-
Field Detail
-
allowCloseWindow
protected FormalParameter allowCloseWindow
Formal parameter that displays special HTML to allow users the possiblity to close the window where this transform will be rendered- Since:
- MicroStrategy Web 8.0.2
-
eventToForwardTo
protected FormalParameter eventToForwardTo
This is the name of the event to redirect to after updating the report page state.
Allowed Values: integer values representing WebEvent. It shall be defined in appBeanEvents.xml or mdBeanEvents.xml.
-
setEventArguments
protected FormalParameter setEventArguments
Defines if the arguments of the event to forward to should be set or not.
Default is true, to be set to false when only passing the bean state is required.
Allowed Values: TRUE/FALSE.
-
reloadPageName
protected FormalParameter reloadPageName
Defines the name of the Parent Page to reload after saving Properties on the options page (used for HTML mode) Default value is "report" Allowed values - String value. Should be a page name.- Since:
- MicroStrategy Web 8.0.1
-
useURLRedirect
protected FormalParameter useURLRedirect
Determines whether to use a fake URL to avoid a problem with IE having two excel files open at the same time inside the browser.
The fake URL has the following format:
- for aspx:"Microstrategy/asp/number.exp.aspx"
- for jsp: "Microstrategy/export/number"
where the number is a unique identifier.
Internally we will redirect to the appropiate ASP/servlet.- Since:
- MicroStrategy Web 8.0.2
-
addFileNameToURL
protected FormalParameter addFileNameToURL
Determines whether to add the file name at the end of the URL.
This is added to aid the browser on choosing a file name when a PDF or Excel file is saved when displayed embeded in the browser.
The file name is added in the form:
...mstrWeb?n=/FileName.pdf
-
-
Method Detail
-
initializeTransform
public void initializeTransform(Transformable data)
Description copied from class:AbstractReportTransform
This method initialize the private and protected fields of the transform. After calling the initializeTransform on super, it calls initializeProperties if the XMLStatus of the reportBean is WebBeanRequestSuccessful- Specified by:
initializeTransform
in interfaceAppTransform
- Overrides:
initializeTransform
in classAbstractReportTransform
- Parameters:
data
- the bean to transform.- Since:
- MicroStrategy Web 8.0.1
-
getFormActionName
protected java.lang.String getFormActionName()
- Since:
- MicroStrategy Web 8.0.2
-
getSuggestedFileName
protected java.lang.String getSuggestedFileName()
- Since:
- MicroStrategy Web 9.0.0
-
transformForRequestProcessing
public void transformForRequestProcessing(MarkupOutput mo)
Description copied from class:AbstractAppTransform
Generates the output when the bean's status isEnumRequestStatus.WebBeanRequestProcessing
. This is the case when the iServer is still executing the request and a wait page is displayed to the end user.
This method generates the default wait page contents. It callsrenderProcessingInfo
andrenderProcessingButtons
.- Overrides:
transformForRequestProcessing
in classAbstractAppTransform
- Parameters:
mo
- output by this transform- See Also:
AbstractAppTransform.checkStatus(com.microstrategy.web.beans.MarkupOutput)
-
transformForRequestSuccessful
public void transformForRequestSuccessful(MarkupOutput mo)
Transform when the status is "Successful".- Specified by:
transformForRequestSuccessful
in classAbstractAppTransform
- Parameters:
mo
- output by this transform- See Also:
AbstractAppTransform.checkStatus(com.microstrategy.web.beans.MarkupOutput)
-
renderCloseWindowLink
protected void renderCloseWindowLink(Tag div)
Renders the anchor that displays the "Close window" message.- Parameters:
div
- the DIV tag where the anchor tag is rendered.
-
getReloadPageEvent
public WebEvent getReloadPageEvent()
Return the event to reload the parent page.
Used in HTML to refresh the parent page after printing or exporting to PDF.- Returns:
- WebEvent the event to execute a report.
- Since:
- MicroStrategy Web 8.0.1
-
getExecuteReportEvent
public WebEvent getExecuteReportEvent()
Deprecated.usegetReloadPageEvent()
instead.Return the event to execute a report.
Used in HTML to refresh the Report page after printing or exporting to PDF.- Returns:
- WebEvent the event to execute a report.
- Since:
- MicroStrategy Web 8.0.0
-
renderShell
public void renderShell(MarkupOutput out)
Generates the shell for this Transform- Overrides:
renderShell
in classAbstractAppTransform
- Parameters:
out
- MarkupOutput the markup output- Since:
- MicroStrategy Web 8.0.0
-
getDescription
public java.lang.String getDescription()
Return description for this Transform- Returns:
- description for this Transform
-
-