Class DocumentExportTransform
- 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.AbstractDocumentTransform
-
- com.microstrategy.web.app.transforms.DocumentSimpleTransform
-
- com.microstrategy.web.app.transforms.DocumentExportTransform
-
- All Implemented Interfaces:
AppTransform,Transform
public class DocumentExportTransform extends DocumentSimpleTransform
DocumentExportTransform is the class that generates the output for a DocumentBean for exporting.
If the document is still executing it shows a wait image.
If its ready it transforms eachReportBeancontained on the Document, using the style specified on the formal parameter styleExcel.- 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 FormalParameterexportFormatDetermines the type of export format for the document.FormalParameterstyleExcelThe name of the style from the Style Catalog Editor to be used to export the document in excel.FormalParameterstylePageByInfoThe name of the style from the Style Catalog Editor to be used to display the page by information for the document.-
Fields inherited from class com.microstrategy.web.app.transforms.AbstractDocumentTransform
imgError
-
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 DocumentExportTransform()Default no argument constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringgetDescription()Return description for this Transformprotected TransformInstancegetPageByTransform(ReportBean rb)protected TransformInstancegetReportExcelTransform(ReportBean rb)voidinitializeTransform(Transformable data)This method initialize the private and protected fields of the transform.voidrenderPageByInfo(MarkupOutput mo, ReportBean rb)Renders the page by information.voidrenderShell(MarkupOutput out)Generates the shell for this Transform.voidtransformForRequestSuccessful(MarkupOutput out)Transform when the status is "Successful".-
Methods inherited from class com.microstrategy.web.app.transforms.DocumentSimpleTransform
renderDocument
-
Methods inherited from class com.microstrategy.web.app.transforms.AbstractDocumentTransform
canTransform, getCancelEvent, getContinueEvent, getDocumentBean, getDocumentStatus, getErrorMessage, getErrorMessageFromMSTRDocumentException, getErrorTitle, getHistoryListEvent, getInboxSource, getJobExpiredMessage, getReexecuteButtonDescription, getRefreshEvent, getSupportedBeanType, getWebReexecuteEvent, initializeImages, renderErrorButtons, renderErrorInfo, renderHistoryListButton, renderImage, renderProcessingButtons, renderProcessingInfo, renderProcessingInfoDetails, setWebReexecuteEventArguments, transformForRequestInError, transformForRequestNotInited
-
Methods inherited from class com.microstrategy.web.app.transforms.AbstractWebBeanTransform
generateErrorForIframe, getReexcuteEventFromBean, getTaskProcessorBaseURL, renderJobExpiredSection
-
Methods inherited from class com.microstrategy.web.app.transforms.AbstractAppTransform
addContactInfo, addDynamicScriptClass, addDynamicScriptFile, addFormalParameter, checkLevel, checkProcessingButtonsFlag, checkProcessingInfoFlag, checkStatus, displayError, displayError, displayError, emptyCell, excludeStaticTags, generateAnchor, 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, getRequestKeys, getResourcesFolder, getScriptClass, getStringValue, getStyleRequestContext, getStyleShellDiv, getTagsFactory, getTimeFormat, getUnitsLabel, getWebBeanErrorInfo, hasSubBlock, initHeightAndWidthFromPreferences, initializeCss, initializeWebComponent, is508, isBlockMode, isContextMenusEnabled, isDhtml, isDialog, isDormant, isFeatureAvailable, isIFrameDisplayMode, isIFrameEnabled, 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, 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, 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
-
exportFormat
public FormalParameter exportFormat
Determines the type of export format for the document.
This is the format to which the document would be exported to. Usually the value would be read from a preference named exportFormatDocuments.
Allowed Values:
The available export formats are specified in the pageConfig file under the nodefor the bean-type equal to DocumentBean. Usage:
You could set this value to excelWithoutFormatting or htmlDocuments
-
styleExcel
public FormalParameter styleExcel
The name of the style from the Style Catalog Editor to be used to export the document in excel.
Based on the style name we will use the corresponding transform to export the document in excel. The transform associated with the style must be able to tranform the document bean though.
-
stylePageByInfo
public FormalParameter stylePageByInfo
The name of the style from the Style Catalog Editor to be used to display the page by information for the document.
Based on the style name we will use the corresponding transform to render the page by information. The transform associated with the style must be able to tranform the document bean though.
-
-
Method Detail
-
initializeTransform
public void initializeTransform(Transformable data)
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:
initializeTransformin interfaceAppTransform- Overrides:
initializeTransformin classAbstractDocumentTransform- Parameters:
data- the bean to transform.- Since:
- MicroStrategy Web 8.0.0
-
getReportExcelTransform
protected TransformInstance getReportExcelTransform(ReportBean rb)
- Since:
- MicroStrategy Web 8.0.0
-
transformForRequestSuccessful
public void transformForRequestSuccessful(MarkupOutput out)
Transform when the status is "Successful".- Overrides:
transformForRequestSuccessfulin classDocumentSimpleTransform- Parameters:
out- Output by this transform- See Also:
AbstractAppTransform.checkStatus(com.microstrategy.web.beans.MarkupOutput)
-
getDescription
public java.lang.String getDescription()
Return description for this Transform- Specified by:
getDescriptionin interfaceTransform- Overrides:
getDescriptionin classDocumentSimpleTransform- Returns:
- ' This Transform generates the output for a DocumentBean for exporting. If the Export format is "excelWithoutFormatting" then it assumes that the results are XML and transforms the result of each report XML with the XSL provided as formal parameter for other export formats it just returns the Document results'
-
getPageByTransform
protected TransformInstance getPageByTransform(ReportBean rb)
- Since:
- MicroStrategy Web 8.0.0
-
renderPageByInfo
public void renderPageByInfo(MarkupOutput mo, ReportBean rb)
Renders the page by information.- Parameters:
mo- Output by this transformrb- TheReportBeanwhose page by information we are going to render.
-
renderShell
public void renderShell(MarkupOutput out)
Description copied from class:AbstractAppTransformGenerates the shell for this Transform.
The shell is a
The attributes to append to this<div>tag that automatically surrounds the content generated by the Transform. It's used among other things by the javascript to identify the HTML associated with a bone, and by the iFrame update technology to identify a component in the page.<div>are obtained from thegetAttributesShellDivmethod; the style from thegetStyleShellDivmethod.
This method callsrenderCssLinkandcheckStatusto generate the Transform's content.- Overrides:
renderShellin classAbstractAppTransform- Parameters:
out- output by this transform- Since:
- MicroStrategy Web 8.0.2
-
-