Package com.microstrategy.web.objects
Interface WebReportSource
- 
public interface WebReportSourceThe WebReportSource interface allows the user to execute and retrieve report instances, along with giving access to many objects which have a supplemental usage in report execution. All report instances returned from this interface will have default result flag as EnumDSSXMLResultFlags.DssXmlResultPreserve bitwise or (|) EnumDSSXMLResultFlags.DssXmlResultNoDerivedPromptXML.- Since:
 - MicroStrategy Web 7.3.1 or earlier
 
 
- 
- 
Method Summary
All Methods Instance Methods Abstract Methods Deprecated Methods Modifier and Type Method Description WebReportInstancechangeImportedCube(int sheetIndex, java.lang.String colHeaders, java.lang.String reportID, java.lang.String msgID, boolean isUrl, java.lang.String transformations)Change the sheet index or insert new column headers on a imported cubeWebReportInstancechangeImportedCube(int sheetIndex, java.lang.String colHeaders, java.lang.String reportID, java.lang.String msgID, boolean isUrl, java.lang.String transformations, java.lang.String dbRoleID, java.lang.String sourceAccountID, int behaviorFlags)Change the sheet index or insert new column headers on a imported cube, with support to cubes imported from OAuth source, and support idc behavior change flagsWebReportInstancechangeImportedCube(int sheetIndex, java.lang.String colHeaders, java.lang.String reportID, java.lang.String msgID, boolean isUrl, java.lang.String transformations, java.lang.String dbRoleID, java.lang.String sourceAccountID, int behaviorFlags, java.lang.String documentID)Change the sheet index or insert new column headers on a imported cube, with support to cubes imported from OAuth source, and support idc behavior change flagsjava.lang.StringgetBinaryFileContent(PostedFile fileInfo, int maxNumElements, boolean preserveWhiteSpace, java.lang.String outputDelimiter)get the contents from binary filejava.lang.StringgetDIProjectSettings(int settingID)get the Data import related project settings.WebElementSourcegetElementSource(java.lang.String messageID)Returns aWebElementSourceobject which can be used to get elements within the working set of the given report.intgetExecutionFlags()Returns the current setting for the execution flags, which will be used when submitting a report for execution to the Intelligence Server.intgetExecutionFlagsExtension()Returns the current setting for the execution flags extension, which will be used when submitting a report for execution to the Intelligence Server.WebReportExportSettingsgetExportSettings(int executionMode)ReturnsWebReportExportSettingswhich can be used to define the type of export and the various parameters for the exportWebGraphPropertiesgetGraphProperties()Return aWebGraphPropertiesobject, which can be used to set the web graph properties.WebReportInstancegetInstance(java.lang.String messageID)Returns aWebReportInstancerepresenting the report execution with the given message ID.WebReportInstancegetInstance(java.lang.String messageID, int stateID)Returns aWebReportInstancerepresenting the report execution with the given message ID and state ID.WebReportInstancegetInstanceFromHistoryList(java.lang.String messageID)Returns aWebReportInstancerepresenting the report execution with the given message ID.WebReportInstancegetInstanceFromRWDrill(RWDrill2ReportSettings drillSettings)Create a report instance based on the drill from a document.WebReportInstancegetInstanceFromRWDrill(RWDrill2ReportSettings drillSettings, int drillOption)Create a report instance based on the drill from a document/dossier (report editor)WebReportInstancegetInstanceFromSchedule(WebSchedule schedule)Deprecated.Starting with version 9.0 and the advent of Distribution Services, all schedule objects are replaced by subscriptions.WebReportInstancegetInstanceFromState(SAXSupport parser, java.lang.String uri, java.lang.String local, java.lang.String qName, org.xml.sax.Attributes attrs)Create a report instance based on the pre-stored report state, which can be obtained by calling WebReportInstance.saveState().WebReportInstancegetInstanceFromState(java.lang.String savedStateStr)Create a report instance based on the pre-stored report state, which can be obtained by calling WebReportInstance.saveState().WebReportInstancegetInstanceFromSubscription(WebSubscription subscription)Create a report instance based on the subscription object.WebReportInstancegetNewInstance()Generates a report instance by executing what is considered to be the "new report" report in metadata.WebReportInstancegetNewInstance(WebReportExecutionSettings settings)Generates a new report instance by executing the report with the given report ID, and returns the resultantWebReportInstance.WebReportInstancegetNewInstance(java.lang.String reportID)Generates a new report instance by executing the report with the given report ID, and returns the resultantWebReportInstance.WebReportInstancegetNewInstanceEx(java.lang.String reportID, java.lang.String extParams, int requestTimeout)Generates a new report instance by executing the report with the given report ID and extendable parameter, and returns the resultantWebReportInstance.WebReportInstancegetNewInstanceFT(java.lang.String filterID, java.lang.String templateID)Generates a new report instance by executing the given filter and template IDs as a report, and returning the resultantWebReportInstance.intgetPreviewRows()Get the number of rows for preview.java.lang.StringgetPromptAnswer()Returns the prompt answer, if any, which will be used to pre-answer prompts when executing a new report.intgetResultFlags()Returns the current setting for the result flags, which will be used when submitting a report for execution to the Intelligence Server or getting the results of a report.WebResultWindowgetResultWindow()Returns aWebResultWindowobject, which can be used to set the window of data that an execution or results retrieval will return.RWDrill2ReportSettingsgetRWDrill2ReportSettings()java.lang.StringgetStyleID()Get the DSSID of the style on this report source, if the style was set by ID.java.lang.StringgetStyleName()Get the name of the style on this report, if the style was set by name.WebFiltergetViewFilter()Get view filter from report sourcejava.lang.StringgetViewSettings()Returns the current setting of the view settings XML, which will be sent to the Intelligence Server upon executing a report.WebReportInstanceimportCube(PostedFile fileInfo, java.lang.String reportID)Create a cube on the IServer based on an imported fileWebReportInstanceimportCube(PostedFile fileInfo, java.lang.String reportID, java.lang.String documentID)Create a cube on the IServer based on an imported fileWebReportInstanceimportCube(PostedFile fileInfo, java.lang.String reportID, java.lang.String documentID, int behaviorFlags)Create a cube on the IServer based on an imported file, with support to idc import behavior change flagsWebReportInstanceimportCube(PostedFile fileInfo, java.lang.String msgID, java.lang.String tableID, java.lang.String reportID, java.lang.String documentID, int behaviorFlags)Create a cube on the IServer based on an imported file, with support to EMMA source table IDWebReportInstanceimportCube(PostedFile fileInfo, java.lang.String msgID, java.lang.String tableID, java.lang.String reportID, java.lang.String documentID, java.lang.String numOfChunks, java.lang.String chunkSize, java.lang.String index, int behaviorFlags)Create a cube on the IServer based on an imported file, with support to EMMA source table ID.WebReportInstanceimportCube(java.lang.String url, java.lang.String reportID)Create a cube on the IServer based on a file at the specified urlWebReportInstanceimportCube(java.lang.String reportID, java.lang.String documentID, int behaviorFlags, java.lang.String data)Create a cube on the IServer based on a file at the specified url, with support to idc import behavior change flagsWebReportInstanceimportCube(java.lang.String url, java.lang.String reportID, java.lang.String documentID)Create a cube on the IServer based on a file at the specified urlWebReportInstanceimportCube(java.lang.String url, java.lang.String reportID, java.lang.String documentID, int behaviorFlags)Create a cube on the IServer based on a file at the specified url, with support to idc import behavior change flagsWebReportInstanceimportCube(java.lang.String msgID, java.lang.String tableID, java.lang.String reportID, java.lang.String documentID, int behaviorFlags, java.lang.String data)Create a cube on the IServer based on an imported file, with support to EMMA source table IDWebReportInstanceimportCube(java.lang.String url, java.lang.String msgID, java.lang.String tableID, java.lang.String reportID, java.lang.String documentID, int behaviorFlags)Create a cube on the IServer based on a file at the specified url, with support to msgID and tableID for EMMA cubeWebReportInstanceimportCube(java.lang.String msgID, java.lang.String tableID, java.lang.String reportID, java.lang.String documentID, java.lang.String numOfChunks, java.lang.String chunkSize, java.lang.String index, long fileSize, java.lang.String fileName, java.lang.String fileType, int behaviorFlags)Create a cube on the IServer based on an imported file, with support to EMMA source table ID.WebReportExecutionSettingsnewExecutionSettings()WebReportInstancerefresh(java.lang.String messageID)Refresh the report instance specified by the message id and latest state.WebReportInstancerefresh(java.lang.String messageID, boolean reprompt)Refresh the report instance specified by the message id and latest state.WebReportInstancerefresh(java.lang.String messageID, int stateID)Refresh the report instance specified by the message id and state id.WebReportInstancerefresh(java.lang.String messageID, int stateID, boolean reprompt)Refresh the report instance specified by the message id and state id.java.lang.StringsetCubeMapping(java.lang.String msgID, java.lang.String mappingXML)Set the row/column to attribute/metric mapping for the specified imported cubejava.lang.StringsetCubeMapping(java.lang.String msgID, java.lang.String mappingXML, java.lang.String cubeRepublishBehavior)Set the row/column to attribute/metric mapping for the specified imported cube, with support to cube republishing behavior flagjava.lang.StringsetCubeMapping(java.lang.String msgID, java.lang.String mappingXML, java.lang.String cubeRepublishBehavior, java.lang.String documentID)Set the row/column to attribute/metric mapping for the specified imported cube, with support to cube republishing behavior flagvoidsetExecutionFlags(int executionFlags)Sets the execution flags, which will be used when submitting a report for execution to the Intelligence Server.voidsetExecutionFlagsExtension(int executionFlagsExtension)Sets the execution flags extension, which will be used when submitting a report for execution to the Intelligence Server.voidsetLastExecutionMode(int execMode)voidsetPreviewRows(int previewRows)Set the number of rows for preview.voidsetPromptAnswer(java.lang.String promptAnswer)Sets a prompt answer which will be used to pre-answer any reports executed by this object.voidsetResultFlags(int resultFlags)Sets the result flags, which will be used when submitting a report for execution to the Intelligence Server.voidsetStyleID(java.lang.String styleID)Set a style by style DSSID.voidsetStyleName(java.lang.String styleName)Set a style by style name.voidsetViewFilter(WebFilter viewFilter)Set view filter to instance, which will be applied before running the report.voidsetViewSettings(java.lang.String viewSettings)Sets the view settings XML, which will be sent to the Intelligence Server upon executing a report.java.lang.StringuploadWallet(PostedFile fileInfo, java.lang.String msgID, java.lang.String tableID, java.lang.String reportID, java.lang.String documentID, int behaviorFlags, java.lang.String did)Upload wallet file for parsing or save it to backend. 
 - 
 
- 
- 
Method Detail
- 
getNewInstance
WebReportInstance getNewInstance() throws WebObjectsException
Generates a report instance by executing what is considered to be the "new report" report in metadata.- Returns:
 - A 
WebReportInstanceobject representing the executed report. - Throws:
 WebObjectsException- Signals an error when executing the report.
 
- 
getNewInstance
WebReportInstance getNewInstance(java.lang.String reportID) throws WebObjectsException
Generates a new report instance by executing the report with the given report ID, and returns the resultantWebReportInstance.- Parameters:
 reportID- The DSSID of the report to execute.- Returns:
 - A 
WebReportInstanceobject, representing the report executed by this method. - Throws:
 WebObjectsException- Signals an error when executing the report.
 
- 
getNewInstanceEx
WebReportInstance getNewInstanceEx(java.lang.String reportID, java.lang.String extParams, int requestTimeout) throws WebObjectsException
Generates a new report instance by executing the report with the given report ID and extendable parameter, and returns the resultantWebReportInstance.- Parameters:
 reportID- The DSSID of the report to execute.extParams- extendable parameter when executing the reportrequestTimeout- Request timeout value. It is used to override the default session request timeout value for the saving job. By default it's -1.- Returns:
 - A 
WebReportInstanceobject, representing the report executed by this method. - Throws:
 WebObjectsException- Signals an error when executing the report.
 
- 
getNewInstanceFT
WebReportInstance getNewInstanceFT(java.lang.String filterID, java.lang.String templateID) throws WebObjectsException
Generates a new report instance by executing the given filter and template IDs as a report, and returning the resultantWebReportInstance.- Parameters:
 filterID- The filter ID of the report to execute.templateID- The template ID of the report to execute.- Returns:
 - A 
WebReportInstanceobject, representing the report executed by this method. - Throws:
 WebObjectsException- Signals an error when executing the report.
 
- 
getInstance
WebReportInstance getInstance(java.lang.String messageID) throws WebObjectsException
Returns aWebReportInstancerepresenting the report execution with the given message ID. Note that this does not cause a report execution to begin, but rather can be used to obtain the results of an already existing report instance.- Parameters:
 messageID- The message ID of the job submitted to the Intelligence Server.- Returns:
 - A 
WebReportInstanceobject, representing the report with the given message ID. - Throws:
 WebObjectsException- Thrown if the operation cannot be completed successfully.
 
- 
getInstanceFromHistoryList
WebReportInstance getInstanceFromHistoryList(java.lang.String messageID) throws WebObjectsException
Returns aWebReportInstancerepresenting the report execution with the given message ID. Note that this does not cause a report execution to begin, but rather can be used to obtain the results of an already existing report instance.- Parameters:
 messageID- The message ID of the job submitted to the Intelligence Server.- Returns:
 - A 
WebReportInstanceobject, representing the report with the given message ID. - Throws:
 WebObjectsException- Thrown if the operation cannot be completed successfully.
 
- 
getInstance
WebReportInstance getInstance(java.lang.String messageID, int stateID) throws WebObjectsException
Returns aWebReportInstancerepresenting the report execution with the given message ID and state ID. Note that this does not cause a report execution to begin, but rather can be used to obtain the results of an already existing report instance.- Parameters:
 messageID- The message ID of the job submitted to the Intelligence Server.stateID- The state ID of the job submitted to the iIntelligence Server.- Returns:
 - A 
WebReportInstanceobject, representing the report with the given message ID. - Throws:
 WebObjectsException- Thrown if the operation cannot be completed successfully.
 
- 
getGraphProperties
WebGraphProperties getGraphProperties()
Return aWebGraphPropertiesobject, which can be used to set the web graph properties. These properties will be passed as a parameter when a report is executed. First time call of this method will return aWebGraphPropertiesobject with no property inside it. User can use the methods exposed byWebGraphPropertiesinterface to add and manipulate the properties inside it. The other calls will return the current setting.- Returns:
 - Return a 
WebGraphPropertiesobject to represent current settings of graph properties. First call will return an emptyWebGraphProperties. 
 
- 
getExecutionFlags
int getExecutionFlags()
Returns the current setting for the execution flags, which will be used when submitting a report for execution to the Intelligence Server.- Returns:
 - The current execution flags, the bitwise or of values from 
EnumDSSXMLExecutionFlags. - See Also:
 setExecutionFlags(int)
 
- 
setExecutionFlags
void setExecutionFlags(int executionFlags)
Sets the execution flags, which will be used when submitting a report for execution to the Intelligence Server.- Parameters:
 executionFlags- The execution flags setting to use. This should be the bitwise or of values fromEnumDSSXMLExecutionFlags.- See Also:
 getExecutionFlags()
 
- 
getExecutionFlagsExtension
int getExecutionFlagsExtension()
Returns the current setting for the execution flags extension, which will be used when submitting a report for execution to the Intelligence Server.- Returns:
 - The current execution flags extension, the bitwise or of values from 
EnumDSSXMLExecutionFlagsExtension. - See Also:
 setExecutionFlagsExtension(int)
 
- 
setExecutionFlagsExtension
void setExecutionFlagsExtension(int executionFlagsExtension)
Sets the execution flags extension, which will be used when submitting a report for execution to the Intelligence Server.- Parameters:
 executionFlagsExtension- The execution flags extension setting to use. This should be the bitwise or of values fromEnumDSSXMLExecutionFlagsExtension.- See Also:
 getExecutionFlagsExtension()
 
- 
getResultFlags
int getResultFlags()
Returns the current setting for the result flags, which will be used when submitting a report for execution to the Intelligence Server or getting the results of a report.- Returns:
 - The current result flags, the bitwise or of values from 
EnumDSSXMLResultFlags. - See Also:
 setResultFlags(int)
 
- 
setResultFlags
void setResultFlags(int resultFlags)
Sets the result flags, which will be used when submitting a report for execution to the Intelligence Server.- Parameters:
 resultFlags- The result flags setting to use. This should be the bitwise or of values fromEnumDSSXMLResultFlags.- See Also:
 getResultFlags()
 
- 
getViewSettings
java.lang.String getViewSettings() throws WebObjectsExceptionReturns the current setting of the view settings XML, which will be sent to the Intelligence Server upon executing a report.- Returns:
 - The current setting of the view settings XML.
 - Throws:
 WebObjectsException- Thrown when error in generating the current view setting.- See Also:
 setViewSettings(java.lang.String)
 
- 
setViewSettings
void setViewSettings(java.lang.String viewSettings) throws WebObjectsExceptionSets the view settings XML, which will be sent to the Intelligence Server upon executing a report.- Parameters:
 viewSettings- The new value of the view settings XML.- Throws:
 WebObjectsException- Thrown when the format of the input string is wrong.- See Also:
 getViewSettings()
 
- 
getPromptAnswer
java.lang.String getPromptAnswer()
Returns the prompt answer, if any, which will be used to pre-answer prompts when executing a new report.- Returns:
 - The current prompt answer which will be used when executing reports.
 - See Also:
 setPromptAnswer(java.lang.String)
 
- 
setPromptAnswer
void setPromptAnswer(java.lang.String promptAnswer)
Sets a prompt answer which will be used to pre-answer any reports executed by this object.- Parameters:
 promptAnswer- The value to pre-answer prompts with when executing reports via getNewInstance() or getNewInstanceFT().- See Also:
 getPromptAnswer()
 
- 
getResultWindow
WebResultWindow getResultWindow()
Returns aWebResultWindowobject, which can be used to set the window of data that an execution or results retrieval will return.- Returns:
 - A 
WebResultWindowobject, which can be edited to change the result window of the report. 
 
- 
getElementSource
WebElementSource getElementSource(java.lang.String messageID)
Returns aWebElementSourceobject which can be used to get elements within the working set of the given report.- Parameters:
 messageID- The message ID of the report instance of the working set that the elements will come from.- Returns:
 - A 
WebElementSourceobject set to return elements within the given report's working set. 
 
- 
setStyleID
void setStyleID(java.lang.String styleID)
Set a style by style DSSID.- Parameters:
 styleID- the DSSID of the style object to be applied.- See Also:
 getStyleID()
 
- 
setStyleName
void setStyleName(java.lang.String styleName)
Set a style by style name.- Parameters:
 styleName- the name of the style object to be applied.- See Also:
 getStyleName()
 
- 
getStyleID
java.lang.String getStyleID()
Get the DSSID of the style on this report source, if the style was set by ID.- Returns:
 - The DSSID of the style on this report source. null will be returned in two cases, when there is no style set for this report source, and when the style was set by Name. At the second case, you should use getStyleName() to check whether there is a style set by name.
 - See Also:
 setStyleID(java.lang.String)
 
- 
getStyleName
java.lang.String getStyleName()
Get the name of the style on this report, if the style was set by name.- Returns:
 - The name of the style on this report source. null will be returned in two cases, when there is no style set for this report source, and when the style was set by ID. At the second case, you should use getStyleID() to check whether there is a style set by ID.
 - See Also:
 setStyleName(java.lang.String)
 
- 
getPreviewRows
int getPreviewRows()
Get the number of rows for preview.- Returns:
 - the number of rows for preview.
 - See Also:
 setPreviewRows(int)
 
- 
setPreviewRows
void setPreviewRows(int previewRows)
Set the number of rows for preview.- Parameters:
 previewRows- The number of rows for preview.- See Also:
 getPreviewRows()
 
- 
refresh
WebReportInstance refresh(java.lang.String messageID) throws WebObjectsException
Refresh the report instance specified by the message id and latest state. This refresh will not reopen the answered prompt, if there is any. Dynamic reports (e.g. drilled reports) cannot be refreshed.- Parameters:
 messageID- The message ID of the report instance to be refreshed.- Returns:
 - The refreshed 
WebReportInstance. - Throws:
 WebObjectsException- Thrown when there is any error occurs during refresh process.
 
- 
refresh
WebReportInstance refresh(java.lang.String messageID, int stateID) throws WebObjectsException
Refresh the report instance specified by the message id and state id. This refresh will not reopen the answered prompt, if there is any. Dynamic reports (e.g. drilled reports) cannot be refreshed.- Parameters:
 messageID- The message ID of the report instance to be refreshed.stateID- The state ID of the report instance to be refreshed.- Returns:
 - The refreshed 
WebReportInstance. - Throws:
 WebObjectsException- Thrown when there is any error occurs during refresh process.
 
- 
refresh
WebReportInstance refresh(java.lang.String messageID, boolean reprompt) throws WebObjectsException
Refresh the report instance specified by the message id and latest state. If there is any prompt in this report, based on the reprompt parameter, this refresh will or will not reopen the answered prompt.- Parameters:
 messageID- The message ID of the report instance to be refreshed.reprompt- When there is prompt in this report, if this is true, the refresh will reopen the prompt; if this is false, the refresh will use the original prompt answer.- Returns:
 - The refreshed 
WebReportInstance. - Throws:
 WebObjectsException- Thrown when there is any error occurs during refresh process.
 
- 
refresh
WebReportInstance refresh(java.lang.String messageID, int stateID, boolean reprompt) throws WebObjectsException
Refresh the report instance specified by the message id and state id. If there is any prompt in this report, based on the reprompt parameter, this refresh will or will not reopen the answered prompt.- Parameters:
 messageID- The message ID of the report instance to be refreshed.stateID- The state ID of the report instance to be refreshed.reprompt- When there is prompt in this report, if this is true, the refresh will reopen the prompt; if this is false, the refresh will use the original prompt answer.- Returns:
 - The refreshed 
WebReportInstance. - Throws:
 WebObjectsException- Thrown when there is any error occurs during refresh process.
 
- 
getInstanceFromState
WebReportInstance getInstanceFromState(java.lang.String savedStateStr) throws WebObjectsException
Create a report instance based on the pre-stored report state, which can be obtained by calling WebReportInstance.saveState().- Parameters:
 savedStateStr- The saved state of a report instance, which is obtained by calling WebReportInstance.saveState().- Returns:
 - WebReportInstance A report instance restored to state specified by the input parameter.
 - Throws:
 WebObjectsException- Thrown when error ocurrs during create the report instance according to the input string.
 
- 
getInstanceFromState
WebReportInstance getInstanceFromState(SAXSupport parser, java.lang.String uri, java.lang.String local, java.lang.String qName, org.xml.sax.Attributes attrs) throws WebObjectsException
Create a report instance based on the pre-stored report state, which can be obtained by calling WebReportInstance.saveState().- Parameters:
 parser- SAX parser.uri- The Namespace URI, or the empty string if the element has no Namespace URI or if Namespace processing is not being performed.local- The local name (without prefix), or the empty string if Namespace processing is not being performed.qName- The qualified name (with prefix), or the empty string if qualified names are not available. attrs The attributes attached to the element. If there are no attributes, it shall be an empty Attributes object- Returns:
 - WebReportInstance A report instance restored to state specified by the input parameter.
 - Throws:
 WebObjectsException- Thrown when error ocurrs during create the report instance according to the input.
 
- 
getInstanceFromSchedule
@Deprecated WebReportInstance getInstanceFromSchedule(WebSchedule schedule) throws WebObjectsException
Deprecated.Starting with version 9.0 and the advent of Distribution Services, all schedule objects are replaced by subscriptions. Please usegetInstanceFromSubscription(WebSubscription)instead.Create a report instance based on the schedule object. Thus, a report instance with the state similar to a scheduled report can be obtained using this method.- Parameters:
 schedule- The schedule object.- Returns:
 - WebReportInstance A report instance built using the schedule information.
 - Throws:
 WebObjectsException- Thrown when error ocurrs during creating the report instance
 
- 
getInstanceFromSubscription
WebReportInstance getInstanceFromSubscription(WebSubscription subscription) throws WebObjectsException
Create a report instance based on the subscription object. Thus, a report instance with the state similar to a subscribed report can be obtained using this method.- Parameters:
 subscription- The subscription object.- Returns:
 - WebReportInstance A report instance built using the subscription information.
 - Throws:
 WebObjectsException- Thrown when error occurs during creating the report instance
 
- 
getInstanceFromRWDrill
WebReportInstance getInstanceFromRWDrill(RWDrill2ReportSettings drillSettings, int drillOption) throws WebObjectsException
Create a report instance based on the drill from a document/dossier (report editor)- Parameters:
 drillSettings- RWDrill2ReportSettings The drill parameters object.drillOption- EnumDSSXMLDrillOption server flag to determine which instance to return- Returns:
 - WebReportInstance A report instance built after the drill action.
 - Throws:
 WebObjectsExceptionWebObjectsException- Thrown when error occurs during creating the report instance- Since:
 - MicroStrategy Web 11.3.6
 
 
- 
getInstanceFromRWDrill
WebReportInstance getInstanceFromRWDrill(RWDrill2ReportSettings drillSettings) throws WebObjectsException
Create a report instance based on the drill from a document.- Parameters:
 drillSettings- RWDrill2ReportSettings The drill parameters object.- Returns:
 - WebReportInstance A report instance built after the drill action.
 - Throws:
 WebObjectsExceptionWebObjectsException- Thrown when error occurs during creating the report instance- Since:
 - MicroStrategy Web 9.0.0
 
 
- 
getExportSettings
WebReportExportSettings getExportSettings(int executionMode)
ReturnsWebReportExportSettingswhich can be used to define the type of export and the various parameters for the export- Parameters:
 executionMode- a value fromEnumWebReportExecutionModes- Returns:
 WebReportExportSettings- Since:
 - MicroStrategy Web 8.0.0
 
 
- 
getNewInstance
WebReportInstance getNewInstance(WebReportExecutionSettings settings) throws WebObjectsException
Generates a new report instance by executing the report with the given report ID, and returns the resultantWebReportInstance.- Parameters:
 settings- TheWebReportExecutionSettings- Returns:
 - A 
WebReportInstanceobject, representing the report executed by this method. - Throws:
 WebObjectsException- Signals an error when executing the report.- Since:
 - MicroStrategy Web 8.0.2
 
 
- 
newExecutionSettings
WebReportExecutionSettings newExecutionSettings()
- Returns:
 - a new instance of 
WebReportExecutionSettings - Since:
 - MicroStrategy Web 8.0.2
 
 
- 
getRWDrill2ReportSettings
RWDrill2ReportSettings getRWDrill2ReportSettings()
- Returns:
 - a new instance of 
RWDrill2ReportSettings - Since:
 - MicroStrategy Web 9.0.0
 
 
- 
setLastExecutionMode
void setLastExecutionMode(int execMode)
 
- 
importCube
WebReportInstance importCube(PostedFile fileInfo, java.lang.String reportID) throws WebObjectsException
Create a cube on the IServer based on an imported file- Parameters:
 fileInfo-PostedFilerepresenting the file to be importedreportID- reportID for republish- Returns:
 WebReportInstanceof the cube created from the file- Throws:
 WebObjectsException
 
- 
importCube
WebReportInstance importCube(PostedFile fileInfo, java.lang.String reportID, java.lang.String documentID) throws WebObjectsException
Create a cube on the IServer based on an imported file- Parameters:
 fileInfo-PostedFilerepresenting the file to be importedreportID- reportID for republishdocumentID- the document ID (used for mapping)- Returns:
 WebReportInstanceof the cube created from the file- Throws:
 WebObjectsException
 
- 
importCube
WebReportInstance importCube(PostedFile fileInfo, java.lang.String reportID, java.lang.String documentID, int behaviorFlags) throws WebObjectsException
Create a cube on the IServer based on an imported file, with support to idc import behavior change flags- Parameters:
 fileInfo-PostedFilerepresenting the file to be importedreportID- reportID for republishdocumentID- the document ID (used for mapping)behaviorFlags- idc behavior change flags 'fg'- Returns:
 WebReportInstanceof the cube created from the file- Throws:
 WebObjectsException
 
- 
importCube
WebReportInstance importCube(PostedFile fileInfo, java.lang.String msgID, java.lang.String tableID, java.lang.String reportID, java.lang.String documentID, int behaviorFlags) throws WebObjectsException
Create a cube on the IServer based on an imported file, with support to EMMA source table ID- Parameters:
 fileInfo-PostedFilerepresenting the file to be importedmsgID- message ID for EMMA cubetableID- source table ID for EMMA cubereportID- reportID for republishdocumentID- the document ID (used for mapping)behaviorFlags- idc behavior change flags 'fg'- Returns:
 WebReportInstanceof the cube created from the file- Throws:
 WebObjectsException
 
- 
importCube
WebReportInstance importCube(java.lang.String msgID, java.lang.String tableID, java.lang.String reportID, java.lang.String documentID, int behaviorFlags, java.lang.String data) throws WebObjectsException
Create a cube on the IServer based on an imported file, with support to EMMA source table ID- Parameters:
 msgID- message ID for EMMA cubetableID- source table ID for EMMA cubereportID- reportID for republishdocumentID- the document ID (used for mapping)behaviorFlags- idc behavior change flags 'fg'data- representing the contents of the file- Returns:
 WebReportInstanceof the cube created from the file- Throws:
 WebObjectsException
 
- 
importCube
WebReportInstance importCube(java.lang.String msgID, java.lang.String tableID, java.lang.String reportID, java.lang.String documentID, java.lang.String numOfChunks, java.lang.String chunkSize, java.lang.String index, long fileSize, java.lang.String fileName, java.lang.String fileType, int behaviorFlags) throws WebObjectsException
Create a cube on the IServer based on an imported file, with support to EMMA source table ID. Import the file by chunks.- Parameters:
 msgID- message ID for EMMA cubetableID- source table ID for EMMA cubereportID- reportID for republishdocumentID- the document ID (used for mapping)numOfChunks- the total number of chunks the file split intochunkSize- the size of each chunkindex- the index of each chunksfileSize- total size of the filefileName- name of the filefileType- type of the filebehaviorFlags- idc behavior change flags 'fg'- Returns:
 WebReportInstanceof the cube created from the file- Throws:
 WebObjectsException
 
- 
importCube
WebReportInstance importCube(PostedFile fileInfo, java.lang.String msgID, java.lang.String tableID, java.lang.String reportID, java.lang.String documentID, java.lang.String numOfChunks, java.lang.String chunkSize, java.lang.String index, int behaviorFlags) throws WebObjectsException
Create a cube on the IServer based on an imported file, with support to EMMA source table ID. Import the file by chunks.- Parameters:
 fileInfo- ThePostedFilethat represents the file.msgID- message ID for EMMA cubetableID- source table ID for EMMA cubereportID- reportID for republishdocumentID- the document ID (used for mapping)numOfChunks- the total number of chunks the file split intochunkSize- the size of each chunkindex- the index of each chunksbehaviorFlags- idc behavior change flags 'fg'- Returns:
 WebReportInstanceof the cube created from the file- Throws:
 WebObjectsException
 
- 
importCube
WebReportInstance importCube(java.lang.String url, java.lang.String reportID) throws WebObjectsException
Create a cube on the IServer based on a file at the specified url- Parameters:
 url-Stringcontaining location of the file used to create the new cubereportID- reportID for republish- Returns:
 WebReportInstanceof the cube created from the file at the specified location- Throws:
 WebObjectsException
 
- 
uploadWallet
java.lang.String uploadWallet(PostedFile fileInfo, java.lang.String msgID, java.lang.String tableID, java.lang.String reportID, java.lang.String documentID, int behaviorFlags, java.lang.String did) throws WebObjectsException
Upload wallet file for parsing or save it to backend.- Parameters:
 fileInfo- ThePostedFilethat represents the file.msgID- message ID for EMMA cubetableID- source table ID for EMMA cubereportID- reportID for republishdocumentID- the document ID (used for mapping)behaviorFlags- behaviorFlags indicating purpose of uploading wallet file, 0: parsing, 1: savedid- dbrole id.- Returns:
 - Throws:
 WebObjectsException
 
- 
changeImportedCube
WebReportInstance changeImportedCube(int sheetIndex, java.lang.String colHeaders, java.lang.String reportID, java.lang.String msgID, boolean isUrl, java.lang.String transformations) throws WebObjectsException
Change the sheet index or insert new column headers on a imported cube- Parameters:
 sheetIndex-colHeaders-reportID-msgID-- Returns:
 - Throws:
 WebObjectsException
 
- 
changeImportedCube
WebReportInstance changeImportedCube(int sheetIndex, java.lang.String colHeaders, java.lang.String reportID, java.lang.String msgID, boolean isUrl, java.lang.String transformations, java.lang.String dbRoleID, java.lang.String sourceAccountID, int behaviorFlags) throws WebObjectsException
Change the sheet index or insert new column headers on a imported cube, with support to cubes imported from OAuth source, and support idc behavior change flags- Parameters:
 sheetIndex-colHeaders-reportID-msgID-isUrl-transformations-dbRoleID-sourceAccountID-behaviorFlags-- Returns:
 - Throws:
 WebObjectsException
 
- 
changeImportedCube
WebReportInstance changeImportedCube(int sheetIndex, java.lang.String colHeaders, java.lang.String reportID, java.lang.String msgID, boolean isUrl, java.lang.String transformations, java.lang.String dbRoleID, java.lang.String sourceAccountID, int behaviorFlags, java.lang.String documentID) throws WebObjectsException
Change the sheet index or insert new column headers on a imported cube, with support to cubes imported from OAuth source, and support idc behavior change flags- Parameters:
 sheetIndex-colHeaders-reportID-msgID-isUrl-transformations-dbRoleID-sourceAccountID-behaviorFlags-documentID-- Returns:
 - Throws:
 WebObjectsException
 
- 
importCube
WebReportInstance importCube(java.lang.String url, java.lang.String reportID, java.lang.String documentID) throws WebObjectsException
Create a cube on the IServer based on a file at the specified url- Parameters:
 url-Stringcontaining location of the file used to create the new cubereportID- reportID for republishdocumentID- the document ID (used for mapping)- Returns:
 WebReportInstanceof the cube created from the file at the specified location- Throws:
 WebObjectsException
 
- 
importCube
WebReportInstance importCube(java.lang.String url, java.lang.String reportID, java.lang.String documentID, int behaviorFlags) throws WebObjectsException
Create a cube on the IServer based on a file at the specified url, with support to idc import behavior change flags- Parameters:
 url-Stringcontaining location of the file used to create the new cubereportID- reportID for republishdocumentID- the document ID (used for mapping)behaviorFlags- idc behavior change flags 'fg'- Returns:
 WebReportInstanceof the cube created from the file at the specified location- Throws:
 WebObjectsException
 
- 
importCube
WebReportInstance importCube(java.lang.String reportID, java.lang.String documentID, int behaviorFlags, java.lang.String data) throws WebObjectsException
Create a cube on the IServer based on a file at the specified url, with support to idc import behavior change flags- Parameters:
 reportID- reportID for republishdocumentID- the document ID (used for mapping)behaviorFlags- idc behavior change flags 'fg'data-Stringcontaining contents of file- Returns:
 WebReportInstanceof the cube created from the file at the specified location- Throws:
 WebObjectsException
 
- 
importCube
WebReportInstance importCube(java.lang.String url, java.lang.String msgID, java.lang.String tableID, java.lang.String reportID, java.lang.String documentID, int behaviorFlags) throws WebObjectsException
Create a cube on the IServer based on a file at the specified url, with support to msgID and tableID for EMMA cube- Parameters:
 url-Stringcontaining location of the file used to create the new cubemsgID- EMMA cube msgIDtableID- EMMA source table IDreportID- reportID for republishdocumentID- the document ID (used for mapping)behaviorFlags- idc behavior change flags 'fg'- Returns:
 WebReportInstanceof the cube created from the file at the specified location- Throws:
 WebObjectsException
 
- 
setCubeMapping
java.lang.String setCubeMapping(java.lang.String msgID, java.lang.String mappingXML) throws WebObjectsExceptionSet the row/column to attribute/metric mapping for the specified imported cube- Parameters:
 msgID-Stringcontaining the message id of the cube to be modifiedmappingXML-Stringcontaining the XML that IServer will use to modify the mapping- Returns:
 Stringcontaining the message id of the modified report- Throws:
 WebObjectsException
 
- 
setCubeMapping
java.lang.String setCubeMapping(java.lang.String msgID, java.lang.String mappingXML, java.lang.String cubeRepublishBehavior) throws WebObjectsExceptionSet the row/column to attribute/metric mapping for the specified imported cube, with support to cube republishing behavior flag- Parameters:
 msgID-Stringcontaining the message id of the cube to be modifiedmappingXML-Stringcontaining the XML that IServer will use to modify the mappingcubeRepublishBehavior-Stringcontaining the cube republishing behavior flag- Returns:
 Stringcontaining the message id of the modified report- Throws:
 WebObjectsException
 
- 
setCubeMapping
java.lang.String setCubeMapping(java.lang.String msgID, java.lang.String mappingXML, java.lang.String cubeRepublishBehavior, java.lang.String documentID) throws WebObjectsExceptionSet the row/column to attribute/metric mapping for the specified imported cube, with support to cube republishing behavior flag- Parameters:
 msgID-Stringcontaining the message id of the cube to be modifiedmappingXML-Stringcontaining the XML that IServer will use to modify the mappingcubeRepublishBehavior-Stringcontaining the cube republishing behavior flagdocumentID-Stringcontaining the ID of the document for Cube Join- Returns:
 Stringcontaining the message id of the modified report- Throws:
 WebObjectsException
 
- 
getDIProjectSettings
java.lang.String getDIProjectSettings(int settingID) throws WebObjectsExceptionget the Data import related project settings.- Parameters:
 settingID-- Returns:
 Stringcontaining the value for the setting id.- Throws:
 WebObjectsException
 
- 
getBinaryFileContent
java.lang.String getBinaryFileContent(PostedFile fileInfo, int maxNumElements, boolean preserveWhiteSpace, java.lang.String outputDelimiter) throws WebObjectsException
get the contents from binary file- Parameters:
 fileInfo- ThePostedFilethat represents the file.maxNumElements- the maximum number of elements to returnpreserveWhiteSpace- indicates if to strip off elements leading and trailing spaceoutputDelimiter- output delimiter- Returns:
 Stringformatted data from binary file- Throws:
 WebObjectsException
 
- 
setViewFilter
void setViewFilter(WebFilter viewFilter)
Set view filter to instance, which will be applied before running the report.- Parameters:
 viewFilter-WebFilterCustomGroupImpl
 
- 
getViewFilter
WebFilter getViewFilter()
Get view filter from report source- Returns:
 
 
 - 
 
 -