Class PreferencesExportTransform

    • Constructor Detail

      • PreferencesExportTransform

        public PreferencesExportTransform()
    • Method Detail

      • renderFormStart

        public void renderFormStart​(MarkupOutput out,
                                    WebEvent event)
        Renders the start of the Preference's Form. This method also renders the hidden inputs associated with the event
        Overrides:
        renderFormStart in class AbstractPreferencesTransform
        Parameters:
        out - the output object
        event - the WebEvent to render
      • getUniqueID

        protected java.lang.String getUniqueID()
        Returns:
        a unique ID used to be appended to the target of the URL generated for exporting
        Since:
        MicroStrategy Web 8.0.1
      • getDescription

        public java.lang.String getDescription()
        Returns the textual description of the transform
        Specified by:
        getDescription in interface Transform
        Overrides:
        getDescription in class AbstractOptionsTransform
        Returns:
        the textual description of the transform
        Since:
        MicroStrategy Web 7.5.1
      • initializeTransform

        public void initializeTransform​(Transformable data)
        This method initialize the private and protected fields of the transform. In particular it initialize the indent field based on the value of the initialIndent formal parameter, and the isDhtml() based on the bean's OutputFormat. It also invokes the initializeImages and initializeCss methods. This method is call from the transform method of the Transform instance.
        Specified by:
        initializeTransform in interface AppTransform
        Overrides:
        initializeTransform in class AbstractOptionsTransform
        Parameters:
        data - the bean to transform.
        Since:
        MicroStrategy Web 7.5.1
      • renderExportSection

        public void renderExportSection​(MarkupOutput out)
        Renders pulldown list for selecting whether to export the 'whole report' or the 'portion displayed'.
        Parameters:
        out - the output object
      • renderExportLimitsMessage

        public void renderExportLimitsMessage​(MarkupOutput out)
        Renders section that shows the export limits message :'You cannot export this report..'. Used only in the options page.
        Parameters:
        out - the output object
      • renderExportFormatGrids

        public void renderExportFormatGrids​(MarkupOutput out)
        Renders list of radio buttons with the possible export formats for grids. The export formats are initialized from a configuration file and are passed on exportFormatList
        Parameters:
        out - the output object
        Since:
        MicroStrategy Web 7.5.1
      • renderExportFormatGraphs

        public void renderExportFormatGraphs​(MarkupOutput out)
        Renders list of radio buttons with the possible export formats for graphs. The export formats are initialized from a configuration file and are passed on exportFormatList.
        Parameters:
        out - the output object
        Since:
        MicroStrategy Web 7.5.1
      • renderExportFormatDocuments

        public void renderExportFormatDocuments​(MarkupOutput out)
        Renders list of radio buttons with the possible export formats for documents. The export formats are initialized from a configuration file and are passed on exportFormatList.
        Parameters:
        out - the output object
        Since:
        MicroStrategy Web 7.5.1
      • renderNewWindow

        public void renderNewWindow​(MarkupOutput out)
        Deprecated.
        This preference has been moved to General Preferences
        Renders checkbox for opening a new window when exporting. Displayed only in the preferences page.
        Parameters:
        out - the output object
      • renderMaxCells

        public void renderMaxCells​(MarkupOutput out)
        Renders textboxes to enter the maximum number of cells to export. Displayed only on the preferences page on the Project Defaults section.
        Parameters:
        out - the output object
      • renderMaxCellsPlainText

        public void renderMaxCellsPlainText​(MarkupOutput out)
        Renders textboxes to enter the maximum number of cells to export to plaintext. Displayed only on the preferences page on the Project Defaults section.
        Parameters:
        out - the output object
        Since:
        MicroStrategy Web 7.5.1
      • renderMaxCellsHTML

        public void renderMaxCellsHTML​(MarkupOutput out)
        Renders textboxes to enter the maximum number of cells to export to HTML. Displayed only on the preferences page on the Project Defaults section.
        Parameters:
        out - the output object
        Since:
        MicroStrategy Web 7.5.1
      • renderExcelVersion

        public void renderExcelVersion​(MarkupOutput out)
        Renders option for the Excel version
        Parameters:
        out - the output object
        Since:
        MicroStrategy Web 8.0.1
      • renderExportMetricValuesAsText

        public void renderExportMetricValuesAsText​(MarkupOutput out)
        Renders checkboxes for exporting headers and metric values as text.
        Parameters:
        out - the output object
        Since:
        MicroStrategy Web 7.5.1
      • renderExportHeaderAsText

        public void renderExportHeaderAsText​(MarkupOutput out)
        Renders checkboxes for exporting headers and metric values as text.
        Parameters:
        out - the output object
        Since:
        MicroStrategy Web 7.5.1
      • renderExportFilterDetails

        public void renderExportFilterDetails​(MarkupOutput out)
        Renders checkbox for exporting the filter details.
        Parameters:
        out - the output object
      • renderExportReportTitle

        public void renderExportReportTitle​(MarkupOutput out)
        Renders checkbox for exporting the filter details.
        Parameters:
        out - the output object
        Since:
        MicroStrategy Web 9.0.0
      • renderExportPageByInfo

        public void renderExportPageByInfo​(MarkupOutput out)
        Renders checkbox for exporting the filter details.
        Parameters:
        out - the output object
        Since:
        MicroStrategy Web 9.0.0
      • renderEnableExportPDF

        public void renderEnableExportPDF​(MarkupOutput out)
        Deprecated.
        Renders checkbox for enabling export to PDF.
        Parameters:
        out - the output object
      • renderOptions

        public void renderOptions​(MarkupOutput out)
        Renders checkbox for showing the options page before exporting.
        Parameters:
        out - the output object
      • renderExpandPageByFields

        public void renderExpandPageByFields​(MarkupOutput out)
        Renders checkbox for expanding page by fields.
        Parameters:
        out - the output object
        Since:
        MicroStrategy Web 8.0.1
      • renderUseSeparateSheets

        public void renderUseSeparateSheets​(MarkupOutput out)
        Renders checkbox for using separate sheets when exporting.
        Parameters:
        out - the output object
        Since:
        MicroStrategy Web 8.0.1
      • renderUseLiveChartGraphs

        public void renderUseLiveChartGraphs​(MarkupOutput out)
        Renders checkbox for using bitmaps for graphs when exporting.
        Parameters:
        out - the output object
        Since:
        MicroStrategy Web 8.0.1
      • renderOverlapGridTitles

        public void renderOverlapGridTitles​(MarkupOutput out)
        Renders checkbox for overlap the grid titles when exporting.
        Parameters:
        out - the output object
        Since:
        MicroStrategy Web 8.0.1
      • renderReportOfficeRefresh

        public void renderReportOfficeRefresh​(MarkupOutput out)
        Allow MicroStrategy Office to refresh Reports after exporting to Excel
        Parameters:
        out - the output object
        Since:
        MicroStrategy Web 8.0.1
      • renderExportHeaderTextArea

        public void renderExportHeaderTextArea​(MarkupOutput out)
        Deprecated.
        we now use display this on a separate page
        Renders the text area for Export Header in the Export tab of the Admin(Project Defaults) Preference page
        Parameters:
        out -
        Since:
        MicroStrategy Web 8.0.2
      • renderExportFooterTextArea

        public void renderExportFooterTextArea​(MarkupOutput out)
        Deprecated.
        we now use display this on a separate page
        Renders the text area for Export Footer in the Export tab of the Admin(Project Defaults) Preference page
        Parameters:
        out -
        Since:
        MicroStrategy Web 8.0.2
      • getTitle

        public java.lang.String getTitle()
        Generates the Header of the Preferences dialog. Over ride the method in AbstractPreferenceTransform
        Overrides:
        getTitle in class AbstractOptionsTransform
        Returns:
        the Header of the Preferences dialog
      • renderEmbedImages

        public void renderEmbedImages​(MarkupOutput out)
        Renders checkbox for embedding images
        Parameters:
        out - the output object
        Since:
        MicroStrategy Web 9.0.0
      • isShowEmbedImagesForUser

        public boolean isShowEmbedImagesForUser()
        Returns:
        true if the default setting hide the embed all images option
        Since:
        MicroStrategy Web 11.3.0
      • renderDoNotPrompt

        public void renderDoNotPrompt​(MarkupOutput out)
                               throws UnmodifiableException
        Generates a checkbox to allow the user to save the "do not prompt me again" preferences in the options page.
        Parameters:
        out - the markup output object
        Throws:
        UnmodifiableException
        Since:
        MicroStrategy Web 8.0.1
      • renderExportButton

        public void renderExportButton​(MarkupOutput out)
        Generates the submit input and related hidden inputs used to submit the information to export the report.
        Parameters:
        out - the markup output object
        Since:
        MicroStrategy Web 8.0.1
      • renderExportAdminHeaderFooterButton

        public void renderExportAdminHeaderFooterButton​(MarkupOutput out)
        Renders link to edit the export admin header and footer.
        Parameters:
        out - the output object
        Since:
        MicroStrategy Web 9.0.0
      • renderEncodeCSVForExportingToExcel

        public void renderEncodeCSVForExportingToExcel​(MarkupOutput out)
        Whether to encode the exporting CSV results as ISO8859_1 so they can be read using Excel.
        Parameters:
        out - the output object
        Since:
        MicroStrategy Web 9.0.0
      • getExportFormatsCount

        public int getExportFormatsCount()
        Deprecated.
        not used anymore
        Returns:
        the number of formats available for exporting
        Since:
        MicroStrategy Web 8.0.1
      • getExportEvent

        public WebEvent getExportEvent()
        Returns:
        the event used to export the report.
        Since:
        MicroStrategy Web 8.0.1
      • getExportSavePropertiesEvent

        public WebEvent getExportSavePropertiesEvent()
        Deprecated.
        use getSaveReportPropertiesEvent()
        Returns:
        the event used to save the corresponding report properties.
        Since:
        MicroStrategy Web 8.0.1
      • isCellsLimitExceeded

        public boolean isCellsLimitExceeded()
        Returns:
        true if the number of rows in the report has exceeded the limit imposed by the administrator's preferences to use when exporting reports.
        Since:
        MicroStrategy Web 8.0.1
      • isNotExcel2000

        public boolean isNotExcel2000()
        Returns:
        true if the version used is not Excel 2000 SR1 (set through preferences).
        Since:
        MicroStrategy Web 8.0.1
      • getExportEventID

        protected java.lang.String getExportEventID()
        Description copied from class: AbstractOptionsTransform
        Returns the ID of the export event used when this transform is used for the Options Page (examples are Export, PDF and Print)
        This will be used to pass as the "eventToForwardTo" on the Save Report Properties page.
        Overrides:
        getExportEventID in class AbstractOptionsTransform
        Returns:
        The ID of the final event used when this transform is used for the Options Page (examples are Export, PDF and Print)
        Since:
        MicroStrategy Web 9.0.0