Interface ViewBean

    • Field Detail

      • expandedRow

        static final java.lang.ThreadLocal<WebHeaders> expandedRow
    • Method Detail

      • getViewInstance

        WebViewInstance getViewInstance()
                                 throws WebBeanException

        Returns the underling WebViewInstance containing the grid data.

        Returns:
        the underlying WebViewInstance
        Throws:
        WebBeanException - if there is a problem obtaining the data from the Intelligence Server, or a problem with the data itself
      • getGraphBean

        GraphBean getGraphBean()

        Returns a GraphBean for retrieving graph data. Note that this functions independently of the view mode. Although it's possible to obtain a GraphObject from the WebViewInstance, a GraphBean may be saved and restored unlike the former.

        Returns:
        the associated GraphBean
      • getViewMode

        int getViewMode()

        Returns whether whether the bean is currently displaying a grid, graph or both.

        Returns:
        the view mode in the definition
        See Also:
        EnumWebReportViewMode
      • setViewMode

        void setViewMode​(int viewMode)

        The view mode is a state variable indicating what the bean is currently displaying (i.e. grid, graph or both). It is intended for book-keeping purposes, and does not actually affect data retrieval.

        Parameters:
        viewMode - the new view mode
        See Also:
        EnumWebReportViewMode
      • setVisualizationViewMode

        void setVisualizationViewMode​(int mode)
                               throws WebBeanException
        Sets visualization view mode
        Parameters:
        mode - visualization view mode
        Throws:
        WebBeanException
        Since:
        MicroStrategy Web 8.0.2
      • getViewName

        java.lang.String getViewName()
                              throws WebBeanException
        Returns the view name.
        Returns:
        the name of the View. It returns the display name for the view bean in case of RW documents or the report name for the case for reports.
        Throws:
        WebBeanException - thrown if the object name can be retrieved.
        Since:
        MicroStrategy Web 8.0.2
      • isTemplateEmpty

        boolean isTemplateEmpty()
        Returns true if template is empty
        Returns:
        true if template is empty
        Since:
        MicroStrategy Web 8.1.0
      • getFormat

        WebFormat getFormat​(int formatType)
        Returns a format object for the given format type. Note: returns null for reports
        Parameters:
        formatType - format type (a value from @link com.microstrategy.web.objects.rw.EnumRWFormatTypes)
        Returns:
        WebFormat
        Since:
        MicroStrategy Web 8.1.1
      • getSliceID

        int getSliceID()
        Returns the sliced window ID of the grid graph object.
        Returns:
        the sliced window ID.
        Since:
        MicroStrategy Web 8.1.1
      • setRedisplay

        void setRedisplay()
        Indicates that the grid must be redisplayed. This method is meant to be used for grids iside RS documents.
      • setPartialUpdate

        void setPartialUpdate()
        Indicates that the grid and all related units must be partial updated.
      • usePageAxisForGrandTotal

        boolean usePageAxisForGrandTotal()
        Whether to use Page axis for Grand Total in Percent to Total.
        Returns:
        boolean