Interface WebReportInstance
-
- All Superinterfaces:
EnumWebPersistableState,Persistable,WebResultSetInstance,WebViewInstance
public interface WebReportInstance extends WebViewInstance, WebResultSetInstance
The WebReportInstance interface represents an instance of a report. A report instance is identified by its message ID and state. This interface can be used to retrieve the results of a report, to access its template (encapsulated by
WebViewInstance), filter, or working set, or to obtain several of the other objects which allow report manipulation. The WebReportInstance can be obtained from theWebReportSourceinterface or from a method which performs any type of report manipulation.- Since:
- MicroStrategy Web 7.3.1 or earlier
-
-
Field Summary
-
Fields inherited from interface com.microstrategy.utils.serialization.EnumWebPersistableState
BARE_MINIMAL_STATE_INFO, MAXIMAL_STATE_INFO, MINIMAL_STATE_INFO, TYPICAL_STATE_INFO
-
-
Method Summary
All Methods Instance Methods Abstract Methods Deprecated Methods Modifier and Type Method Description voidclearDatamartInfo()clears the datamart info.WebSubscriptioncreateNewSubscription(int deliveryMode)Creates a newWebSubscriptionobject which can then be used to define relevant subscription properties and can be saved in order to create a new Narrowcast subscription.WebReportInstancedirectSave(int saveAsDisplayMode)Direct save the current report instance.WebReportInstancedirectSave(int saveAsDisplayMode, java.lang.String desc)Direct save the current report instance.WebReportInstancedirectSave(int saveAsDisplayMode, java.lang.String desc, int saveFlags)Direct save the current report instance.byte[]getBinaryData()Returns binary data for this instance in the format specified by the execution mode (seesetExecutionMode(int)).
NOTE: Currently, if the execution mode isEnumWebReportExecutionModes.REPORT_MODE_PLAIN_TEXT, exporting less than the whole report is not supported (seeWebReportExportSettings.getMode()).java.lang.StringgetCSVData()Deprecated.replace byWebReportPlainTextExportSettingsjava.lang.StringgetCubeName()WebDatamartgetDatamartInfo(boolean convertIfNot)Retrieves the datamart information asWebDatamart.intgetDefaultExpansionLevel(WebAttribute attribute)Returns the default expansion level for the specified Recursive Attribute.intgetDESourceMode(WebAttribute attr)java.lang.StringgetEmmaSourceTablesAsJSON()This funnction will get emma source tables information in the emma cube.java.lang.StringgetEmmaSourceTablesAsJSON(int browseReportFlag, int bindingTableObjectType, int dataPreviewJsonFlag, int autoMapFlag)This funnction will get emma source tables information in the emma cube with three parameters for controlling the return result from Iserverbyte[]getExcelBinaryData()Returns the binary data corresponding toEnumWebReportExecutionModes.REPORT_MODE_EXCEL.java.lang.StringgetExcelData()intgetExecutionMode()Returns the specified execution mode.WebReportExportSettingsgetExportSettings()Returns export settings object that corresponds to the current execution mode (getExecutionMode()).WebFiltergetFilter()Returns the current state of the view filter object, according to the Intelligence Server.WebFiltergetFilter(boolean populate)Deprecated.getFilter()should suffice all use cases for getting filter.intgetGatewayJsonVersion()gatewayJsonVersion is transient property for gateway JSON generation.WebGraphLabelsgetGraphLabels(int labelType)Returns the collectionWebGraphLabelsthat represents the list of labels in either the series or categories axis available for the particular graphWebGraphgetGraphObject()Returns aWebGraphobject, which allows a user to manipulate and load a graph data stream.WebGridWidthsgetGridWidths()Returns aWebGridWidthsobject, which can be used to manipulate the column width settings of the report.intgetInboxMsgResultFlags()Get Inbox message result flags, integral value of EnumDSSXMLInboxMsgResultFlags constants.intgetJobId()Get job id of report instancesjava.lang.StringgetLogMessageAsXML()Returns log message for the current report.WebMDXCubegetMDXCube()Returns the MDX cube object that is the source for the report, if the report is an MDX report.WebReportMessagegetMessage()Returns AWebReportMessageobject for the current report.WebReportMessagegetMessage(boolean populate)Returns AWebReportMessageobject for the current report.byte[]getPDFData()Returns the data corresponding to this instance in pdf format.java.lang.StringgetPlainTextData()Returns the text data corresponding to this instance.WebPropertySetgetPropertySet(int reportObjectType, java.lang.String propertySetName)Returns theWebPropertySetfor the given report object type.SimpleListgetPropertySetFilter(int reportObjectType)This method modifies the set of report property sets returned from the getPropertySets call.WebPropertyGroupgetPropertySets(int reportObjectType)Returns theWebPropertyGroupfor the given report object type.WebReportManipulationgetReportManipulator()Returns aWebReportManipulationobject, which allow the setting of options and submission of a report manipulation operation.WebReportManipulationgetReportManipulator(boolean validateStatus)This is convenience method which fetches the manipulator by optionally avoiding the ready status check.intgetResultFlags()Returns the current result flags setting, which determines the information which the Intelligence Server will return in its report XML.WebReportDatagetResults()Attempts to obtain the report results from the Intelligence Server, and load those results into aWebReportDataobject.java.lang.StringgetResultsAsJSON()Attempts to obtain the report results from the Intelligence Server, and return those results in JSON format.java.lang.ObjectgetResultsAsJSON(int mode)java.lang.StringgetResultsAsXML()Attempts to obtain the report results from the Intelligence Server, and return those results in XML format.WebResultSettingsgetResultSettings()Returns an object ofWebResultSettingstype, which can be used to define settings which affect the results returned from the Intelligence Server.WebResultWindowgetResultWindow()Returns aWebResultWindowobject, which can be used to modify the report window being returned from the Intelligence Server.intgetSaveAsDisplayMode()Returns the display mode for the saveAs call.intgetSaveAsFlags()Returns the flags for the saveAs call.intgetSaveStateID()Returns the current save state ID set on the report instance.WebObjectInfogetSourceCube()Get the source cube information of view reportWebTablegetSourceTable()Returns the source table for the report, if the report comes from an XDA source.WebTemplategetTemplate(boolean populate)Deprecated.WebViewInstance.getTemplate()should suffice all use cases for getting template.WebExpressiongetUnitLimit(WebObjectInfo object)Returns unit limit associated with the specified report objectWebVisualizationSettingsgetVisualizationSettings()Returns aWebVisualizationSettingsobject, that can be used to set the visualization settings of the report instance.WebWorkingSetgetWorkingSet()Returns aWebWorkingSetobject, which can be used to get the working set objects, the base filter of a report instance, or perform other operations relating to the working set of the report.intgetXdaType()booleanisDatamart()Indicates whether the report that this instance corresponds to is a datamart report.booleanisDrilled()Indicates whether the report that this instance corresponds to is a drilled report.booleanisExpansionLevelInhereted(WebAttribute attribute)Returns true if the default expansion level was inhereted from the attribute definitionbooleanisPrompted(boolean includeDormant)Returns whether the report is prompted or not.booleanisRepromptable()booleanisSerializeReportData()This flag indicates whether the report XML of the actual report data will be saved when serializing.java.lang.StringpollStatusOnly(java.lang.String extParams)Checks the status (seeEnumDSSXMLStatus) with extendable parametersvoidremoveUnitLimit(java.lang.String unitId)Removes unit limit for the specified report objectvoidresetDelta()Reset Delta.WebObjectInfosaveAs(WebFolder parentFolder)Saves the current report instance, or template of the current report instance, or filter of the current report instance into the given folder with the given name and description.WebObjectInfosaveAs(WebFolder parentFolder, java.lang.String name)Saves the current report instance, or template of the current report instance, or filter of the current report instance into the given folder with the given name and description.WebObjectInfosaveAs(WebFolder parentFolder, java.lang.String name, java.lang.String description)Saves the current report instance, or template of the current report instance, or filter of the current report instance into the given folder with the given name and description.java.lang.StringsaveDerivedElements(java.lang.String attId, java.lang.String folderId, java.lang.String name, java.lang.String description, boolean overwrite)voidsendExportData(IContentConsumer streamingContext)voidsetCubeRepublishType(int cubeRepublishType)Sets cube republish type.voidsetDataLanguages(boolean isUseAllLocales, java.util.List<java.lang.String> localeIds)Sets data languages.voidsetDataPartition(java.lang.String partitionAttributeId, int partitionNumber, int dataDistributionMode)Sets data partition.voidsetDefaultExpansionLevel(WebAttribute attribute, int value)Sets the default expansion level for the specified Recursive Attribute.voidsetDefaultForProperty(int reportObjectType, java.lang.String propertySetName, java.lang.String propertyName)Sets the current value for the given property to be its default value.voidsetExecutionMode(int mode)Sets the right execution mode.voidsetGatewayJsonVersion(int version)voidsetInboxMsgResultFlags(int inboxMsgResultFlags)Set inbox message result flags, integral value of EnumDSSXMLInboxMsgResultFlags constants..voidsetInboxMsgType(int type)voidsetIRROptions(java.lang.String targetCubeId, int loadFlag, int incrementType, int refreshType)Set the incremental refresh report specific options.voidsetJobId(int jobId)Set job id.voidsetProperty(int reportObjectType, java.lang.String propertySetName, java.lang.String propertyName, java.lang.String value)Sets the given property on the given report object to the given value.voidsetResultFlags(int resultFlags)Sets the current result flags setting, which determines the information which the Intelligence Server will return in its report XML.voidsetSaveAsDisplayMode(int saveAsDisplayMode)Sets the display mode for the saveAs call.voidsetSaveAsFlags(int saveAsFlags)Sets the flags for the saveAs call.voidsetSerializeReportData(boolean serialize)Sets the "Serialize Report Data" flag.voidsetUnitLimit(WebObjectInfo object, WebExpression expr)Sets unit limit for the specified report objectvoidvalidateEmmaSourceTables(java.lang.String string)-
Methods inherited from interface com.microstrategy.utils.serialization.Persistable
restoreState, restoreState, saveState, saveState, saveState, saveState
-
Methods inherited from interface com.microstrategy.web.objects.WebResultSetInstance
CancelReprompt, createNewSchedule, getCacheID, getCacheLastUpdate, getCacheType, getIconPath, getIsPVPartialExecution, getMaxWait, getMessageID, getPollingFrequency, getPrompts, getPrompts, getStateID, getStatus, getViewMediaSettings, isAsync, isModified, isPrompted, isPromptStatus, isPromptStatus, isReprompted, isResolved, isResultOrPromptStatus, isResultStatus, isResultStatus, pollStatus, pollStatusOnly, schedule, schedule, setAsync, setIconPath, setIsPVPartialExecution, setMaxWait, setPollingFrequency
-
Methods inherited from interface com.microstrategy.web.objects.WebViewInstance
getDerivedElements, getDrillInstance, getGridData, getLimitSummary, getTemplate, getTemplatePropertySet, getTemplatePropertySetFilter, getTemplatePropertySets, isReadOnly, setDefaultForTemplateProperty, setTemplateProperty, shouldAppendCSS
-
-
-
-
Method Detail
-
getTemplate
@Deprecated WebTemplate getTemplate(boolean populate) throws WebObjectsException
Deprecated.WebViewInstance.getTemplate()should suffice all use cases for getting template. Note that getTemplate() always ensures that a populated template is returned. The template population is currently asynchronous. In future release, the template population would be tied to a report instance property e.g.WebResultSetInstance.setAsync(boolean)Returns aWebTemplateobject, referring to the template contained on this report. If populate is true, then the template will be populated with the current definition of the template according to the Intelligence Server. If it is false, then an empty template will be returned, and it must be populated from an existing template XML. This functionality is primarily used to avoid returning to the server to reload template XML for every web page.- Parameters:
populate- If this is true, then the template will be obtained from the Intelligence Server.- Returns:
- A
WebTemplateobject which contains the template information for this report instance. - Throws:
WebObjectsException- Indicates an inability to obtain the template definition from the Intelligence Server.
-
getFilter
WebFilter getFilter() throws WebObjectsException
Returns the current state of the view filter object, according to the Intelligence Server.- Returns:
- A
WebFilterobject, which represents the current state of the view filter. This can be used to modify the view filter. - Throws:
WebObjectsException- Signals an error occurred while obtaining the view filter XML from the Intelligence Server.
-
getFilter
@Deprecated WebFilter getFilter(boolean populate) throws WebObjectsException
Deprecated.getFilter()should suffice all use cases for getting filter. Note that getFilter() always ensures that a populated filter is returned. The filter population is currently asynchronous. In future release, the filter population would be tied to a report instance property e.g.WebResultSetInstance.setAsync(boolean)Returns aWebFilterobject, which can be used to modify the report's view filter. The populate argument will tell whether or not the returnedWebFiltershould be populated with XML from the Intelligence server. If populate is false, then an emptyWebFilterobject should be returned instead.- Parameters:
populate- True if the returned filter should be populated, false if it should not be populated before returning.- Returns:
- A
WebFilterobject, which can be used to modify the view filter. - Throws:
WebObjectsException- Signals an error occurred while obtaining the view filter XML from the Intelligence Server.
-
getResults
WebReportData getResults() throws WebObjectsException
Attempts to obtain the report results from the Intelligence Server, and load those results into aWebReportDataobject. For a page-by report, only the current page is returned. To retrieve another page, you need to callWebTemplateUnit.setCurrentElement(String)orWebTemplateUnit.setCurrentElement(String, int)to switch to another page. After that, you need to obtain the results again.- Returns:
- The resultant
WebReportDataobject. - Throws:
WebObjectsException- Thrown if the method has difficulty in contacting the Intelligence Server.
-
getLogMessageAsXML
java.lang.String getLogMessageAsXML() throws WebObjectsExceptionReturns log message for the current report. The parse method didn't provide here, if you want to parse the log message, please refer to com.microstrategy.MSTRTester.MSTRTesterModel#parseToMap(java.io.BufferedReader) and com.microstrategy.MSTRTester.MSTRTesterModel#parseToCSV(com.microstrategy.utils.json.JSONObject) for more detail- Returns:
- log message for the current report.
- Throws:
WebObjectsException- indicates an inability to obtain the message information from the Intelligence Server.
-
getResultsAsXML
java.lang.String getResultsAsXML() throws WebObjectsExceptionAttempts to obtain the report results from the Intelligence Server, and return those results in XML format. For a page-by report, only the current page is returned. To retrieve another page, you need to callWebTemplateUnit.setCurrentElement(String)orWebTemplateUnit.setCurrentElement(String, int)to switch to another page. After that, you need to obtain the results again.- Returns:
- The resultant report XML, or an empty string if it is not yet ready.
- Throws:
WebObjectsException- Thrown if the method has difficulty in contacting the Intelligence Server.
-
getResultsAsJSON
java.lang.String getResultsAsJSON() throws WebObjectsExceptionAttempts to obtain the report results from the Intelligence Server, and return those results in JSON format.- Returns:
- The resulting report JSON, or an empty string if it is not yet ready.
- Throws:
WebObjectsException- Thrown if the method has difficulty in contacting For compressed JSON, the return is an Object, instancof String or byte[] the Intelligence Server.
-
getResultsAsJSON
java.lang.Object getResultsAsJSON(int mode) throws WebObjectsException- Throws:
WebObjectsException
-
getResultFlags
int getResultFlags()
Returns the current result flags setting, which determines the information which the Intelligence Server will return in its report XML.- Returns:
- The current result flags setting; this value should be the bitwise
or (|) of values from
EnumDSSXMLResultFlags. - See Also:
setResultFlags(int)
-
setResultFlags
void setResultFlags(int resultFlags)
Sets the current result flags setting, which determines the information which the Intelligence Server will return in its report XML.- Parameters:
resultFlags- The desired result flags setting; this value should be the bitwise or (|) of values fromEnumDSSXMLResultFlags.- See Also:
getResultFlags()
-
getResultWindow
WebResultWindow getResultWindow()
Returns aWebResultWindowobject, which can be used to modify the report window being returned from the Intelligence Server.- Returns:
- A
WebResultWindowobject, which can be used to modify several window-related settings. A reference to this object will be kept internally, and when necessary, the WebReportInstance object will query theWebResultWindowobject in order to obtain the user's settings.
-
getWorkingSet
WebWorkingSet getWorkingSet() throws WebObjectsException
Returns aWebWorkingSetobject, which can be used to get the working set objects, the base filter of a report instance, or perform other operations relating to the working set of the report. The working set population from IServer is currently asynchronous. In future release, it would be tied to a report instance property e.g.WebResultSetInstance.setAsync(boolean)- Specified by:
getWorkingSetin interfaceWebViewInstance- Returns:
- A
WebWorkingSetobject which gives access to working set functionality. - Throws:
WebObjectsException- Thrown if the working set XML is not cached in the report instance, and an error occurs when retrieving it from the Intelligence Server.
-
getReportManipulator
WebReportManipulation getReportManipulator() throws WebObjectsException
Returns aWebReportManipulationobject, which allow the setting of options and submission of a report manipulation operation. The check to ensure ready status is currently asynchronous. In future release, it would be tied to a report instance property e.g.WebResultSetInstance.setAsync(boolean)- Returns:
- A
WebReportManipulationobject, which can be used to make manipulations to the current report instance. The default execution flag in this object will be EnumDSSXMLExecutionFlags.DssXmlExecutionUseCache | EnumDSSXMLExecutionFlags.DssXmlExecutionUpdateCache, and the default result flags will be EnumDSSXMLResultFlags.DssXmlResultPreserve | EnumDSSXMLResultFlags.DssXmlResultNoDerivedPromptXML. - Throws:
WebObjectsException- Thrown if the report is not determined to be in the correct state.
-
getReportManipulator
WebReportManipulation getReportManipulator(boolean validateStatus) throws WebObjectsException
This is convenience method which fetches the manipulator by optionally avoiding the ready status check.- Returns:
- Throws:
WebObjectsException
-
getGraphObject
WebGraph getGraphObject() throws WebObjectsException
Returns aWebGraphobject, which allows a user to manipulate and load a graph data stream. This object would normally be used in a interface page or component that outputs a binary stream representing the graph image.Given the session ID, message ID and state ID of the report to be graphed. Other properties may be changed to manipulate the style of that graph produced.- Specified by:
getGraphObjectin interfaceWebViewInstance- Returns:
- A
WebGraphobject for this report instance. - Throws:
WebObjectsException- Thrown if the report is not determined to be in the correct state.
-
setSaveAsFlags
void setSaveAsFlags(int saveAsFlags)
Sets the flags for the saveAs call. These flags determine what is saved and the state it is saved in. This value should be the bitwise or (|) of values fromEnumDSSXMLReportSaveAsFlags.- Parameters:
saveAsFlags- The value to use as the save as flags.- See Also:
getSaveAsFlags()
-
getSaveAsFlags
int getSaveAsFlags()
Returns the flags for the saveAs call. These flags determine what is saved and the state it is saved in. This value should be the bitwise or (|) of values fromEnumDSSXMLReportSaveAsFlags.- Returns:
- The current setting of the save as flags.
- See Also:
setSaveAsFlags(int)
-
getSaveStateID
int getSaveStateID()
Returns the current save state ID set on the report instance.- Returns:
- The save state ID of the report instance.
- Since:
- MicroStrategy Web 9.3.1
-
setSaveAsDisplayMode
void setSaveAsDisplayMode(int saveAsDisplayMode)
Sets the display mode for the saveAs call. These flags determine the format that the report is saved in. This value should be fromEnumDSSXMLDisplayMode.- Parameters:
saveAsDisplayMode- The value to use as the save as display mode.- See Also:
getSaveAsDisplayMode()
-
getSaveAsDisplayMode
int getSaveAsDisplayMode()
Returns the display mode for the saveAs call. These flags determine the format that the report is saved in. This value should be fromEnumDSSXMLDisplayMode.- Returns:
- The current setting for display mode.
- See Also:
setSaveAsDisplayMode(int)
-
saveAs
WebObjectInfo saveAs(WebFolder parentFolder) throws WebObjectsException
Saves the current report instance, or template of the current report instance, or filter of the current report instance into the given folder with the given name and description. The saveAsFlags and saveAsDisplayMode control how the object is saved. One flag in saveAsFlags controls whether to save the report or template or filter of the current report. The new saved object returned without being populated.- Parameters:
parentFolder- The folder to place the new report in, an object of typeWebFolder.- Returns:
- The WebObjectInfo object of saved object, it can be report or a filter or a template.
- Throws:
WebObjectsException- Signals an error in sending the command to the Intelligence Server, or receiving of an invalid DSS ID from the IServer corresponding to the saved object.
-
saveAs
WebObjectInfo saveAs(WebFolder parentFolder, java.lang.String name, java.lang.String description) throws WebObjectsException
Saves the current report instance, or template of the current report instance, or filter of the current report instance into the given folder with the given name and description. The saveAsFlags and saveAsDisplayMode control how the object is saved. One flag in saveAsFlags controls whether to save the report or template or filter of the current report. The new saved object returned without being populated.- Parameters:
parentFolder- The folder to place the new report in, an object of typeWebFolder.name- The name of the new object to be saved.description- The description of the new object.- Returns:
- The WebObjectInfo object of saved object, it can be report or a filter or a template.
- Throws:
WebObjectsException- Signals an error in sending the command to the Intelligence Server, receiving of an invalid DSS ID from the IServer corresponding to the saved object, or an invalid object name.
-
saveAs
WebObjectInfo saveAs(WebFolder parentFolder, java.lang.String name) throws WebObjectsException
Saves the current report instance, or template of the current report instance, or filter of the current report instance into the given folder with the given name and description. The saveAsFlags and saveAsDisplayMode control how the object is saved. One flag in saveAsFlags controls whether to save the report or template or filter of the current report. The new saved object returned without being populated.- Parameters:
parentFolder- The folder to place the new report in, an object of typeWebFolder.name- The name of the new object to be saved.- Returns:
- The WebObjectInfo object of saved object, it can be report or a filter or a template.
- Throws:
WebObjectsException- Signals an error in sending the command to the Intelligence Server, receiving of an invalid DSS ID from the IServer corresponding to the saved object, or an invalid object name.
-
directSave
WebReportInstance directSave(int saveAsDisplayMode) throws WebObjectsException
Direct save the current report instance.- Parameters:
saveAsDisplayMode- The value to use as the save as display mode.- Returns:
- The new report instance.
- Throws:
WebObjectsException
-
directSave
WebReportInstance directSave(int saveAsDisplayMode, java.lang.String desc) throws WebObjectsException
Direct save the current report instance.- Parameters:
saveAsDisplayMode- The value to use as the save as display mode.desc- The description of the report- Returns:
- The new report instance.
- Throws:
WebObjectsException
-
directSave
WebReportInstance directSave(int saveAsDisplayMode, java.lang.String desc, int saveFlags) throws WebObjectsException
Direct save the current report instance.- Parameters:
saveAsDisplayMode- The value to use as the save as display mode.desc- The description of the reportsaveFlags- current options of what flags are set to save the report- Returns:
- The new report instance.
- Throws:
WebObjectsException
-
getMessage
WebReportMessage getMessage() throws WebObjectsException
Returns AWebReportMessageobject for the current report.- Returns:
WebReportMessagefor the current report.- Throws:
WebObjectsException- indicates an inability to obtain the message information from the Intelligence Server.
-
getMessage
WebReportMessage getMessage(boolean populate) throws WebObjectsException
Returns AWebReportMessageobject for the current report. If populate is true, the information is retreived from Intelligence Server.- Parameters:
populate- Whether the message should be populated with the inbox information for the message. This may cause an additional call to the Intelligence Server if it is set to true.- Returns:
WebReportMessagefor the current report.- Throws:
WebObjectsException- indicates an inability to obtain the message information from the Intelligence Server.
-
getPDFData
byte[] getPDFData() throws WebObjectsExceptionReturns the data corresponding to this instance in pdf format.- Throws:
WebObjectsException- Since:
- MicroStrategy Web 8.0.0
- See Also:
setExecutionMode(int)
-
getExcelData
@Deprecated java.lang.String getExcelData() throws WebObjectsExceptionDeprecated.Returns the data corresponding toEnumWebReportExecutionModes.REPORT_MODE_PLAIN_TEXT.NOTE: this has changed from 8.0.0 - it used to be associated with
EnumWebReportExecutionModes.REPORT_MODE_EXCEL.- Returns:
- the excel data corresponding to this instance
- Throws:
WebObjectsException- Since:
- MicroStrategy Web 8.0.0
-
getExcelBinaryData
byte[] getExcelBinaryData() throws WebObjectsExceptionReturns the binary data corresponding toEnumWebReportExecutionModes.REPORT_MODE_EXCEL.- Returns:
- formatted excel data
- Throws:
WebObjectsException- Since:
- MicroStrategy Web 8.0.1
- See Also:
setExecutionMode(int)
-
getCSVData
@Deprecated java.lang.String getCSVData() throws WebObjectsExceptionDeprecated.replace byWebReportPlainTextExportSettingsReturns the data corresponding to this instance as comma separated values This corresponds toEnumWebReportExecutionModes.REPORT_MODE_CSV- Returns:
- the text data corresponding to this instance
- Throws:
WebObjectsException- Since:
- MicroStrategy Web 8.0.0
- See Also:
setExecutionMode(int)
-
getPlainTextData
java.lang.String getPlainTextData() throws WebObjectsExceptionReturns the text data corresponding to this instance. By default, they will be comma delimited, but may be customized via ((WebReportPlainTextExportSettings)WebReportPlainTextExportSettings).- Returns:
- text data corresponding to this instance
- Throws:
WebObjectsException- Since:
- MicroStrategy Web 8.0.1
-
getBinaryData
byte[] getBinaryData() throws java.lang.IllegalStateException, WebObjectsExceptionReturns binary data for this instance in the format specified by the execution mode (seesetExecutionMode(int)).
NOTE: Currently, if the execution mode isEnumWebReportExecutionModes.REPORT_MODE_PLAIN_TEXT, exporting less than the whole report is not supported (seeWebReportExportSettings.getMode()). In this case, anIllegalStateExceptionwill be thrown. UsegetPlainTextData()for this case.- Returns:
- Binary data (PDF, Excel binary, plain text, etc.) for the report instance.
- Throws:
java.lang.IllegalStateException- If the current mode (as indicated byWebReportExportSettings.getMode()) is to display less than the whole report, or the execution mode (seesetExecutionMode(int)) is not set correctly for exporting.WebObjectsException- Since:
- MicroStrategy Web 8.1.0
-
isPrompted
boolean isPrompted(boolean includeDormant) throws WebObjectsExceptionReturns whether the report is prompted or not. The includeDormant parameter will determine whether dormant prompts should be considered in the result.- Parameters:
includeDormant- True if the presence of a dormant prompt should cause this method to return true, false if this method should only consider the report prompted if it contains used prompts.- Returns:
- Whether the report is prompted.
- Throws:
WebObjectsException- Throws if an I-Server error occurs or the report is in an unexpected status.
-
getPropertySetFilter
SimpleList getPropertySetFilter(int reportObjectType)
This method modifies the set of report property sets returned from the getPropertySets call. This method returns aSimpleListobject which can be used to filter the property sets returned from the getPropertySets call. The way the property sets work is that there is one property set for each value inEnumDSSXMLReportObjects. Each report object type has a SimpleList of Strings as it's filter - if this list is empty, then all properties will be retrieved for this property set. However, if there are one or more property set names in the filter, then only those property sets will be retrieved from the backend when calling getPropertySets with the same object type.- Parameters:
reportObjectType- The report object to retrieve the property set filter for; this should be a value fromEnumDSSXMLReportObjects.- Returns:
- A
SimpleListobject, which contains Strings corresponding to the property sets to retrieve.
-
getPropertySets
WebPropertyGroup getPropertySets(int reportObjectType) throws WebObjectsException
Returns theWebPropertyGroupfor the given report object type. If the property sets have not yet been retrieved from the Intelligence Server, then this method will trigger a call to the Intelligence Server to retrieve those property sets.If the property set filter associated with the given report object type is set, then the property set returned will be constrained to only have those property sets in the filter.
- Parameters:
reportObjectType- The report object whose properties are to be retrieved, fromEnumDSSXMLReportObjects.- Returns:
- The property sets associated with the report object.
- Throws:
WebObjectsException- Thrown if an error occurs in asking the Intelligence Server for properties.
-
getPropertySet
WebPropertySet getPropertySet(int reportObjectType, java.lang.String propertySetName) throws WebObjectsException, java.lang.IllegalArgumentException
Returns theWebPropertySetfor the given report object type. If this property set has not yet been retrieved from the Intelligence Server, then this method will trigger a call to the Intelligence Server to retrieve it.- Parameters:
reportObjectType- The report object whose properties are to be retrieved, fromEnumDSSXMLReportObjects.- Returns:
- The property set associated with the report object and the name provided.
- Throws:
WebObjectsException- Thrown if an error occurs in asking the Intelligencejava.lang.IllegalArgumentException- Thrown if the propertySetName provided is not valid Server for properties.
-
setProperty
void setProperty(int reportObjectType, java.lang.String propertySetName, java.lang.String propertyName, java.lang.String value) throws java.lang.IllegalArgumentException, WebObjectsExceptionSets the given property on the given report object to the given value.- Parameters:
reportObjectType- The report object which contains the property to change, fromEnumDSSXMLReportObjects.propertySetName- The name of the property set which contains the property to change.propertyName- The name of the property to change.value- The value to which the property should be set.- Throws:
java.lang.IllegalArgumentException- Thrown if a parameter passed to this method does not make sense.WebObjectsException- Thrown if an error occurs when setting the property value.
-
setDefaultForProperty
void setDefaultForProperty(int reportObjectType, java.lang.String propertySetName, java.lang.String propertyName) throws java.lang.IllegalArgumentException, WebObjectsExceptionSets the current value for the given property to be its default value.- Parameters:
reportObjectType- The report object which contains the property to change, fromEnumDSSXMLReportObjects.propertySetName- The name of the property set which contains the property to change.propertyName- The name of the property to change.- Throws:
java.lang.IllegalArgumentException- Thrown if a parameter passed to this method does not make sense.WebObjectsException- Thrown if an error occurs when setting the property value.
-
getGridWidths
WebGridWidths getGridWidths() throws WebObjectsException
Returns aWebGridWidthsobject, which can be used to manipulate the column width settings of the report.- Specified by:
getGridWidthsin interfaceWebViewInstance- Returns:
- A
WebGridWidthsobject associated with this report instance. - Throws:
WebObjectsException- Thrown when this report instance is not in ready state.
-
getResultSettings
WebResultSettings getResultSettings()
Returns an object ofWebResultSettingstype, which can be used to define settings which affect the results returned from the Intelligence Server.- Returns:
- A
WebResultSettingsobject which can be used to change the result settings flags. - See Also:
setExecutionMode(int)
-
isSerializeReportData
boolean isSerializeReportData()
This flag indicates whether the report XML of the actual report data will be saved when serializing.- Returns:
- The current value for the "serialize report data" flag.
-
setSerializeReportData
void setSerializeReportData(boolean serialize)
Sets the "Serialize Report Data" flag. This flag indicates whether the report XML of the actual report data will be saved when serializing. The default is false.- Parameters:
serialize- Whether the flag should be true or false.
-
createNewSubscription
WebSubscription createNewSubscription(int deliveryMode) throws WebObjectsException
Creates a newWebSubscriptionobject which can then be used to define relevant subscription properties and can be saved in order to create a new Narrowcast subscription.- Specified by:
createNewSubscriptionin interfaceWebResultSetInstance- Parameters:
deliveryMode-EnumWebSubscriptionDeliveryMode- Returns:
- the new subscription
- Throws:
WebObjectsException- Since:
- MicroStrategy Web 7.5.2
-
getSourceTable
WebTable getSourceTable() throws WebObjectsException
Returns the source table for the report, if the report comes from an XDA source. Returns null for a report whose source is the warehouse (i.e. a non-XDA report). The returned table can be queried for it's XDA type.- Returns:
- A
WebTableobject which describes the source for an XDA-based report, null if the report came from the warehouse. - Throws:
WebObjectsException- Thrown if an error occurs.- Since:
- MicroStrategy Web 8.0.0
-
getExecutionMode
int getExecutionMode()
Returns the specified execution mode. If one is not explicitly set, the default value isEnumWebReportExecutionModes.REPORT_MODE_DEFAULT- Returns:
- the specified execution mode
- Since:
- MicroStrategy Web 8.0.0
-
setExecutionMode
void setExecutionMode(int mode)
Sets the right execution mode. An execution mode indicates what the intended usage of this bean is. This allows for executing the underlying report with the right set of execution flags- Parameters:
mode- a value from the enumerationEnumWebReportExecutionModes- Since:
- MicroStrategy Web 8.0.0
-
getExportSettings
WebReportExportSettings getExportSettings()
Returns export settings object that corresponds to the current execution mode (getExecutionMode()). This object can be used to customize the export output.
The following describes the execution mode associations, and the export settings subclass, whichWebReportExportSettingsmay be cast into:EnumWebReportExecutionModes.REPORT_MODE_PLAIN_TEXT:WebReportPlainTextExportSettingsEnumWebReportExecutionModes.REPORT_MODE_EXCEL:WebReportExcelExportSettingsEnumWebReportExecutionModes.REPORT_MODE_PDF:WebReportPDFExportSettings
It can be used as follows:
getReportBean().setExecutionMode(EnumWebReportExecutionModes.REPORT_MODE_PLAIN_TEXT);
WebReportPlainTextExportSettings exportSettings = (WebReportPlainTextExportSettings) getReportBean().getReportInstance().getExportSettings();
exportSettings.setSeparator("|");
byte[] data = getReportBean().getReportInstance().getBinaryData();
String stringData = new String(data, "UnicodeLittle"); // optional (this should be avoided if possible)
- Returns:
- export settings object associated with the current execution mode.
- Since:
- MicroStrategy Web 8.0.0
-
getDatamartInfo
WebDatamart getDatamartInfo(boolean convertIfNot) throws WebObjectsException
Retrieves the datamart information asWebDatamart.- Parameters:
convertIfNot- indicates whether the current instance should be converted into a datamart report if it is not one already. The method returns null if this is a datamart instance and the boolean parameter is false- Throws:
WebObjectsException- Since:
- MicroStrategy Web 8.0.1
-
isDatamart
boolean isDatamart() throws WebObjectsExceptionIndicates whether the report that this instance corresponds to is a datamart report.- Throws:
WebObjectsException- Since:
- MicroStrategy Web 8.0.1
-
clearDatamartInfo
void clearDatamartInfo()
clears the datamart info. This is equivalent to unsetting the datamart.- Since:
- MicroStrategy Web 8.0.1
-
isDrilled
boolean isDrilled()
Indicates whether the report that this instance corresponds to is a drilled report. This is only supported against server versions higher than 8.0.2.- Since:
- MicroStrategy Web 8.0.2
-
getMDXCube
WebMDXCube getMDXCube() throws WebObjectsException
Returns the MDX cube object that is the source for the report, if the report is an MDX report.- Returns:
- A
WebMDXCubeobject that can be used to browse the cube contents. - Throws:
WebObjectsException- Since:
- MicroStrategy Web 8.0.2
-
getVisualizationSettings
WebVisualizationSettings getVisualizationSettings() throws WebObjectsException
Returns aWebVisualizationSettingsobject, that can be used to set the visualization settings of the report instance.- Specified by:
getVisualizationSettingsin interfaceWebViewInstance- Returns:
- A
WebVisualizationSettingsobject, which governs the visualization settings of the report instance. - Throws:
WebObjectsException- Since:
- MicroStrategy Web 8.0.2
-
getGraphLabels
WebGraphLabels getGraphLabels(int labelType)
Returns the collectionWebGraphLabelsthat represents the list of labels in either the series or categories axis available for the particular graph- Parameters:
labelType- fromEnumWebGraphLabelType
-
sendExportData
void sendExportData(IContentConsumer streamingContext) throws WebObjectsException
- Throws:
WebObjectsException- Since:
- MicroStrategy Web 9.0.0
-
saveDerivedElements
java.lang.String saveDerivedElements(java.lang.String attId, java.lang.String folderId, java.lang.String name, java.lang.String description, boolean overwrite) throws WebObjectsException, WebReportValidationException- Throws:
WebObjectsExceptionWebReportValidationException- Since:
- MicroStrategy Web 9.0.0
-
getCubeName
java.lang.String getCubeName()
- Since:
- MicroStrategy Web 9.0.0
-
getSourceCube
WebObjectInfo getSourceCube()
Get the source cube information of view report- Returns:
- source cube object, and null if no source object
- Throws:
WebObjectsException
-
getUnitLimit
WebExpression getUnitLimit(WebObjectInfo object)
Returns unit limit associated with the specified report object- Parameters:
object-
-
setUnitLimit
void setUnitLimit(WebObjectInfo object, WebExpression expr)
Sets unit limit for the specified report object- Parameters:
object-expr-
-
setDefaultExpansionLevel
void setDefaultExpansionLevel(WebAttribute attribute, int value)
Sets the default expansion level for the specified Recursive Attribute. If there is no any limit expression specified for this attribute, then report will contain elements up to specified level.- Parameters:
attribute- A recursive attribute within this reportvalue- An expansion level - a positive integer starting with 1 or one of the special values:- -1 means that all levels shall be present
- -2 means that the setting from the attribute definition will be used
-
getDefaultExpansionLevel
int getDefaultExpansionLevel(WebAttribute attribute)
Returns the default expansion level for the specified Recursive Attribute.- Parameters:
attribute- A recursive attribute within this report- Returns:
-
isExpansionLevelInhereted
boolean isExpansionLevelInhereted(WebAttribute attribute)
Returns true if the default expansion level was inhereted from the attribute definition- Returns:
-
removeUnitLimit
void removeUnitLimit(java.lang.String unitId)
Removes unit limit for the specified report object- Parameters:
unitId-
-
isRepromptable
boolean isRepromptable()
-
getXdaType
int getXdaType() throws WebObjectsException- Throws:
WebObjectsException
-
getDESourceMode
int getDESourceMode(WebAttribute attr) throws WebObjectsException
- Throws:
WebObjectsException
-
pollStatusOnly
java.lang.String pollStatusOnly(java.lang.String extParams) throws WebObjectsExceptionChecks the status (seeEnumDSSXMLStatus) with extendable parameters- Parameters:
extParams-- Returns:
- Throws:
WebObjectsException
-
getEmmaSourceTablesAsJSON
java.lang.String getEmmaSourceTablesAsJSON() throws WebObjectsExceptionThis funnction will get emma source tables information in the emma cube.- Returns:
- json result returned from iserver
- Throws:
WebObjectsException- Since:
- MicroStrategy Web 10.7
-
getEmmaSourceTablesAsJSON
java.lang.String getEmmaSourceTablesAsJSON(int browseReportFlag, int bindingTableObjectType, int dataPreviewJsonFlag, int autoMapFlag) throws WebObjectsExceptionThis funnction will get emma source tables information in the emma cube with three parameters for controlling the return result from Iserver- Parameters:
browseReportFlag-EnumDSSBrowseReportFlagsbindingTableObjectType-EnumDSSBindingTableObjectTypesdataPreviewJsonFlag-EnumDSSDataPreviewJSONFlagsautoMapFlag- Indicate whether need to trigger 'auto-mapping' or not. 1 for true, 0 for false- Returns:
- Throws:
MSTRWebAPIExceptionWebObjectsException
-
validateEmmaSourceTables
void validateEmmaSourceTables(java.lang.String string) throws WebObjectsException- Throws:
WebObjectsException
-
getGatewayJsonVersion
int getGatewayJsonVersion()
gatewayJsonVersion is transient property for gateway JSON generation. It is currently only used for gateway JSON generation workflow Version 1: all attributes in rows and metrics in column; Subtotal not supported; Result in de-normalized JSON tree structure Version 2: Normalized JSON structure including lookup table for attribute elements, row and column headers; Cross-tab and subtotal supported.
-
setGatewayJsonVersion
void setGatewayJsonVersion(int version)
-
setJobId
void setJobId(int jobId)
Set job id.- Parameters:
jobId- Jod id of report instance
-
getJobId
int getJobId()
Get job id of report instances- Returns:
- Jod id of report instances
-
resetDelta
void resetDelta()
Reset Delta.
-
setCubeRepublishType
void setCubeRepublishType(int cubeRepublishType)
Sets cube republish type.- Parameters:
cubeRepublishType- the cube republish typeEnumDSSCubeRepublishBehaviorType
-
setDataLanguages
void setDataLanguages(boolean isUseAllLocales, java.util.List<java.lang.String> localeIds)Sets data languages.- Parameters:
isUseAllLocales- the is use all localeslocaleIds- the locale ids
-
setDataPartition
void setDataPartition(java.lang.String partitionAttributeId, int partitionNumber, int dataDistributionMode)Sets data partition.- Parameters:
partitionAttributeId- the partition attribute idpartitionNumber- the partition numberdataDistributionMode- the data distribution modeEnumDSSDataDistributionMode
-
setIRROptions
void setIRROptions(java.lang.String targetCubeId, int loadFlag, int incrementType, int refreshType)Set the incremental refresh report specific options.- Parameters:
targetCubeId- the target cube, could be null.loadFlag- the load flagEnumDSSXMLIncrementalRefreshReportLoadFlagincrementType- the increment typeEnumDSSXMLCubeIncrementTyperefreshType- the refresh typeEnumDSSXMLCubeRefreshType
-
getInboxMsgResultFlags
int getInboxMsgResultFlags()
Get Inbox message result flags, integral value of EnumDSSXMLInboxMsgResultFlags constants.- Returns:
- inbox message flags.
-
setInboxMsgResultFlags
void setInboxMsgResultFlags(int inboxMsgResultFlags)
Set inbox message result flags, integral value of EnumDSSXMLInboxMsgResultFlags constants..- Parameters:
inboxMsgResultFlags- inbox messagee result flags.
-
setInboxMsgType
void setInboxMsgType(int type)
-
-