Represents the Web Intelligence document, which includes reports, elements, filters, and so on.
Methods
(static) addDataProvider(obj)
Adds a data provider to a document.
Parameters:
| Name | Type | Description | |||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
obj |
Object |
Properties
|
Returns:
A JSON object containing the success message and the ID of the data provider
Examples
Universe
{"dataprovider": {"name": "My New Data Provider", "dataSourceId": 1689}}
BEx Query
{"dataprovider": {"name":"My New Data Provider", "dataSourceId": 11990";AAQUERY_SAMPLE"}}
(static) addDocumentAlerter(obj)
Adds an alerter to the report.
Parameters:
| Name | Type | Description | ||||||
|---|---|---|---|---|---|---|---|---|
obj |
Object |
Properties
|
Returns:
A JSON object containing the success message and the ID of the alerter
(static) addReportElementProperty(obj)
Adds a custom property to the specified report element.
Parameters:
| Name | Type | Description | |||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
obj |
Object |
Properties
|
Returns:
A JSON object containing the success message and the key of the property
(static) addVariable(obj)
Adds a variable to dictionary of a report.
Parameters:
| Name | Type | Description | |||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
obj |
Object |
Properties
|
Returns:
A JSON object containing the success message and the ID of the variable
(static) createBreakOnAxis(obj)
Creates a break on an axis of a report element of type table.
Parameters:
| Name | Type | Description | ||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
obj |
Object |
Properties
|
Returns:
A JSON object containing the success message and the break ID
(static) createDocumentInputControl(obj)
Creates a new input control of the document.
Parameters:
| Name | Type | Description | ||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
obj |
Object | the argument object
Properties
|
Returns:
A JSON object containing the success message
(static) createDrillerFilter(obj)
Creates a drill filter.
Parameters:
| Name | Type | Description | |||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
obj |
Object |
Properties
|
Returns:
A JSON object containing the success message and the ID of the filter
(static) createInputControl(obj)
Creates a report input control.
Parameters:
| Name | Type | Description | |||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
obj |
Object |
Properties
|
Returns:
A JSON object containing the success message and the ID of the report input control
(static) createReport(objopt)
Creates or copies a report.
Parameters:
| Name | Type | Attributes | Description | ||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
obj |
Object |
<optional> |
a JSON object
Properties
|
Returns:
A JSON object containing the success message and the report ID
Example
{"report": {"name": "REPORT_NAME"}}
(static) createReportDataFilter(obj)
Creates the list of filters in the report (when there is no filter).
Parameters:
| Name | Type | Description | |||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
obj |
Object |
Properties
|
Returns:
A JSON object containing the success message and the ID of the filter
(static) createReportElement(obj)
Creates a report element.
Parameters:
| Name | Type | Description | |||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
obj |
Object | a JSON object
Properties
|
Returns:
A JSON object containing the success message and the report element ID
(static) createReportElementDataFilter(obj)
Creates the list of report element filters (when there is no filter).
Parameters:
| Name | Type | Description | ||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
obj |
Object |
Properties
|
Returns:
A JSON object containing the success message and the ID of the data filter
(static) deleteAxisExpression(obj)
Deletes the set of expressions of an axis.
Parameters:
| Name | Type | Description | ||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
obj |
Object |
Properties
|
Returns:
A JSON object containing the success message and the axis ID
(static) deleteAxisSorts(obj)
Deletes sortings on an axis of a report element of type table.
Parameters:
| Name | Type | Description | ||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
obj |
Object |
Properties
|
Returns:
A JSON object containing the success message and the axis ID
(static) deleteBreakOnAxis(obj)
Deletes a break on an axis.
Parameters:
| Name | Type | Description | |||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
obj |
Object |
Properties
|
Returns:
A JSON object containing the success message and the break ID
(static) deleteDocumentAlerter(obj)
Deletes an alerter.
Parameters:
| Name | Type | Description | ||||||
|---|---|---|---|---|---|---|---|---|
obj |
Object |
Properties
|
Returns:
A JSON object containing the success message and the ID of the deleted alerter
(static) deleteDocumentInputControl(obj)
Deletes a document input control.
Parameters:
| Name | Type | Description | ||||||
|---|---|---|---|---|---|---|---|---|
obj |
Object |
Properties
|
Returns:
A JSON object containing the success message and the ID of the deleted control
(static) deleteDocumentInputControlSelection(obj)
Deletes the selection on an input control.
Parameters:
| Name | Type | Description | ||||||
|---|---|---|---|---|---|---|---|---|
obj |
Object |
Properties
|
Returns:
A JSON object containing the success message
(static) deleteDrillerFilter(obj)
Deletes a drill filter.
Parameters:
| Name | Type | Description | |||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
obj |
Object |
Properties
|
Returns:
A JSON object containing the success message and the ID of the deleted filter
(static) deleteInputControl(obj)
Deletes an input control.
Parameters:
| Name | Type | Description | |||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
obj |
Object |
Properties
|
Returns:
A JSON object containing the success message and the ID of the deleted input control
(static) deleteInputControlSelection(obj)
Deletes the selection on an input control.
Parameters:
| Name | Type | Description | |||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
obj |
Object |
Properties
|
Returns:
A JSON object containing the success message
(static) deleteReportDataFilter(obj)
Deletes the list of report filters.
Parameters:
| Name | Type | Description | ||||||
|---|---|---|---|---|---|---|---|---|
obj |
Object |
Properties
|
Returns:
A JSON object containing the success message and the ID of the deleted filter
(static) deleteReportElement(obj)
Deletes a report element.
Parameters:
| Name | Type | Description | |||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
obj |
Object | a JSON object
Properties
|
Returns:
A JSON object containing the success message and the report element ID
(static) deleteReportElementDataFilter(obj)
Deletes the list of report element filters.
Parameters:
| Name | Type | Description | |||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
obj |
Object |
Properties
|
Returns:
A JSON object containing the success message and the ID of the deleted filter
(static) deleteReportElementProperty(obj)
Deletes a custom property attached to the specified report element.
Parameters:
| Name | Type | Description | ||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
obj |
Object |
Properties
|
Returns:
A JSON object containing the success message and the key of the deleted property
(static) deleteVariable(obj)
Deletes a variable from the document expressions dictionary.
Parameters:
| Name | Type | Description | ||||||
|---|---|---|---|---|---|---|---|---|
obj |
Object |
Properties
|
Returns:
-
A JSON object containing the success message and the variable ID deleted
-
A JSON object containing the success message and the ID of the deleted variable
(static) exportDocumentAsZip(obj) → {String}
Export the document as a ZIP file.
Start download of a zip file containing the document in HTML format (listing mode)
Parameters:
| Name | Type | Description | ||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
obj |
Object | a JSON object
Properties
|
Returns:
message if exportDocumentAsZip is OK
- Type
- String
Examples
requestBody structure
{"zipfile": {"zipentry": ... }}
{"reportIds": REPORT_IDS, "fileName": ZIP_FILENAME, "dpi": DPI_VALUE, "chartOutputFormat": OUTPUT_VALUE}
(static) exportReportAsZip(obj) → {String}
Exports a report as a zipped HTML file.
Start download of a zip file containing the HTML report
Parameters:
| Name | Type | Description | ||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
obj |
Object | a JSON object
Properties
|
Returns:
message if exportReportAsZip is OK
- Type
- String
(static) exportReportElement(obj)
Exports an element of a report.
Parameters:
| Name | Type | Description | ||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
obj |
Object | a JSON object
Properties
|
Returns:
A report element in HTML format
Example
{"reportId": REPORT_ID, "elementId": ELEMENT_ID, "datapath": DATA_PATH, "dpi": DPI_VALUE,
"chartOutputFormat": OUTPUT_VALUE}
(static) exportReportElementAsImage(obj) → {String}
Exports an element of a report as image (graph block only)
Start download of a png file containing the reportElement
Parameters:
| Name | Type | Description | ||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
obj |
Object | a JSON object
Properties
|
Returns:
returns success message if exportReportElementAsImage is OK
- Type
- String
Example
{"reportId": REPORT_ID, "elementId": ELEMENT_ID, "datapath": DATA_PATH, "dpi": DPI_VALUE}
(static) exportReportListingMode(obj)
Exports a report as HTML in listing mode.
Parameters:
| Name | Type | Description | ||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
obj |
Object | a JSON object
Properties
|
Returns:
An HTML report
(static) getDataProviders(obj)
Returns the data proviers of a document.
Parameters:
| Name | Type | Description |
|---|---|---|
obj |
Object |
Returns:
A JSON object containing the list of data providers
(static) getDocumentAlerter(obj)
Returns the alerter details.
Parameters:
| Name | Type | Description | ||||||
|---|---|---|---|---|---|---|---|---|
obj |
Object |
Properties
|
Returns:
A JSON object containing the alerter details
(static) getDocumentAlerters(obj)
Returns the document alerters.
Parameters:
| Name | Type | Description |
|---|---|---|
obj |
Object |
Returns:
A JSON object containing the list of document alerters
(static) getDocumentCss(obj)
Returns the document CSS.
Parameters:
| Name | Type | Description |
|---|---|---|
obj |
Object |
Returns:
A JSON object containing the document CSS
(static) getDocumentDataObject(obj) → {Object}
Returns the details of a data object
A data object is a data provider expression, a variable, or a merged object.
Parameters:
| Name | Type | Description | ||||||
|---|---|---|---|---|---|---|---|---|
obj |
Object | params
Properties
|
Returns:
A JSON object containing the details of an object
- Type
- Object
(static) getDocumentDataObjectLov(obj)
Returns the list of values of a data object of the document.
A data object is a data provider expression, a variable, or a merged object.
Parameters:
| Name | Type | Description | ||||||
|---|---|---|---|---|---|---|---|---|
obj |
Object |
Properties
|
Returns:
A JSON object containing the list of values
(static) getDocumentDataObjects(obj) → {Object}
Returns list of objects (data provider expression, variable, or merged object dimension) of a document.
Parameters:
| Name | Type | Description | ||||||
|---|---|---|---|---|---|---|---|---|
obj |
Object | params
Properties
|
Returns:
A JSON object containing the list of objects
- Type
- Object
(static) getDocumentInputControl(obj)
Returns the definition of a specific input control.
Parameters:
| Name | Type | Description | ||||||
|---|---|---|---|---|---|---|---|---|
obj |
Object |
Properties
|
Returns:
A JSON object containing the definition of the input control
(static) getDocumentInputControlLov(obj)
Returns the lov of a specific input control.
Parameters:
| Name | Type | Description | ||||||
|---|---|---|---|---|---|---|---|---|
obj |
Object |
Properties
|
Returns:
A JSON object containing the lov of the input control
(static) getDocumentInputControls(obj)
Returns the list of input controls of the document.
Parameters:
| Name | Type | Description |
|---|---|---|
obj |
Object |
Returns:
A JSON object containing the list of input controls
(static) getDocumentInputControlSelection(obj)
Returns document input control selection.
Parameters:
| Name | Type | Description | ||||||
|---|---|---|---|---|---|---|---|---|
obj |
Object |
Properties
|
Returns:
A JSON object containing the selected values
(static) getDPDetails(obj)
Returns the details of a data provider.
Parameters:
| Name | Type | Description | ||||||
|---|---|---|---|---|---|---|---|---|
obj |
Object |
Properties
|
Returns:
A JSON object containing the data provider details
Example
var response = WebiServices.document.getDPDetails({"dpId": id});
(static) getDPFlowDetails(obj)
Returns the details of a given flow for a given data provider.
Parameters:
| Name | Type | Description | |||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
obj |
Object |
Properties
|
Returns:
The detail of the given flow as a String
Example
{"dpId": "DP_ID", "flowId": FLOW_ID}
(static) getDPNbFlows(obj)
Returns the number of available flows, for a given data provider.
Parameters:
| Name | Type | Description | ||||||
|---|---|---|---|---|---|---|---|---|
obj |
Object |
Properties
|
Returns:
The number of flows for the data provider specified as a String
(static) getDPQuerySpec(obj)
Returns the query specification attached to a given data provider.
Parameters:
| Name | Type | Description | ||||||
|---|---|---|---|---|---|---|---|---|
obj |
Object |
Properties
|
Returns:
The XML containing the query specification attached to a data provider as a String
(static) getDrillerFilter(obj)
Returns a drill filter definition.
Parameters:
| Name | Type | Description | |||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
obj |
Object |
Properties
|
Returns:
A JSON object containing the drill filter details
(static) getDrillerFilters(obj)
Returns the list of drill filters.
Parameters:
| Name | Type | Description | ||||||
|---|---|---|---|---|---|---|---|---|
obj |
Object |
Properties
|
Returns:
A JSON object containing the drill filters
Example
var response = WebiServices.document.getDrillerFilters({"reportId": appContext.selectedReportId })
if (response.error)
{
if (response.error.error_code == 400)
alert("Please activate drill mode");
return;
}
(static) getInputControl(obj)
Returns the definition of a specific input control.
Parameters:
| Name | Type | Description | |||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
obj |
Object |
Properties
|
Returns:
A JSON object containing the definition of the input control
(static) getInputControlLov(obj)
Returns the definition of a specific input control.
Parameters:
| Name | Type | Description | |||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
obj |
Object |
Properties
|
Returns:
A JSON object containing the lov of the input control
(static) getInputControls(obj)
Returns the list of input controls of a report.
Parameters:
| Name | Type | Description | ||||||
|---|---|---|---|---|---|---|---|---|
obj |
Object |
Properties
|
Returns:
A JSON object containing the list of input controls
(static) getInputControlSelection(obj)
Returns the selection on an input control.
Parameters:
| Name | Type | Description | |||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
obj |
Object |
Properties
|
Returns:
A JSON object representing the selection
(static) getParameters(lovInfo)
Returns the Web Intelligence document parameters.
Parameters:
| Name | Type | Description |
|---|---|---|
lovInfo |
Boolean | true if the associated lists of values are computed, false otherwise |
Returns:
A JSON object containing the list of parameters
Example
{"parameters": [{"parameter":{...}] }
(static) getReportDataFilter(obj)
Returns the list of filters of a report.
Parameters:
| Name | Type | Description | ||||||
|---|---|---|---|---|---|---|---|---|
obj |
Object |
Properties
|
Returns:
A JSON object containing the list of filters
Example
var response = WebiServices.document.getReportDataFilter({"reportId": id});
(static) getReportElement(obj)
Returns the details of a report element.
Parameters:
| Name | Type | Description | ||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
obj |
Object | a JSON object
Properties
|
Returns:
A JSON object containing report element details
(static) getReportElementDataFilter(obj)
Returns the list of filters of a report element.
Parameters:
| Name | Type | Description | |||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
obj |
Object |
Properties
|
Returns:
A JSON object containing the list of filters
(static) getReportElementDatapaths(obj)
Returns the list of datapaths of a report element.
Parameters:
| Name | Type | Description | ||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
obj |
Object |
Properties
|
Returns:
A JSON object containing the datapaths of the report element
(static) getReportElementDataset(obj)
Returns the dataset of a report element.
Parameters:
| Name | Type | Description | ||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
obj |
Object |
Properties
|
Returns:
A JSON object containing the dataset of the report element
(static) getReportElementProperties(obj)
Returns the entire list of custom properties attached to the specified report element.
Parameters:
| Name | Type | Description | |||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
obj |
Object |
Properties
|
Returns:
A JSON object containing the list of custom properties (key, value)
(static) getReportElementProperty(obj)
Returns the custom property value attached to the specified report element.
Parameters:
| Name | Type | Description | ||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
obj |
Object |
Properties
|
Returns:
A JSON object containing the property value
(static) getReportElements(obj)
Returns the list of elements of a report.
Parameters:
| Name | Type | Description | ||||||
|---|---|---|---|---|---|---|---|---|
obj |
Object | a JSON object
Properties
|
Returns:
A JSON object containing the list of report elements
(static) getReportMap(obj)
Returns the report map.
Parameters:
| Name | Type | Description | ||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
obj |
Object | a JSON object
Properties
|
Returns:
A JSON object containing the report map
(static) getReportOutput(obj)
Returns the report output.
Parameters:
| Name | Type | Description |
|---|---|---|
obj |
Object | see WebiServices.document.exportReportListingMode function. |
Returns:
The report output in XML format
(static) getReports()
Returns all document reports.
Returns:
A JSON object containing the document reports
Example
{"reports": [{"report":{...}] }
(static) getReportSpecification(obj)
Returns the report specification.
Parameters:
| Name | Type | Description | ||||||
|---|---|---|---|---|---|---|---|---|
obj |
Object | a JSON object
Properties
|
Returns:
The report specification in XML format
Example
var xmlSource = WebiServices.document.getReportSpecification({
"reportId": appContext.selectedReportId
});
(static) getVariableDefinition(obj)
Returns the definition of a variable from the document expressions dictionary.
Parameters:
| Name | Type | Description | ||||||
|---|---|---|---|---|---|---|---|---|
obj |
Object |
Properties
|
Returns:
The variable definition in XML format
(static) getVariables()
Returns the content of a document variables dictionary.
Returns:
A JSON object containing the list of variables
(static) refreshDocument(obj)
Refreshes a Web Intelligence document.
Parameters:
| Name | Type | Description | ||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
obj |
Object | a JSON object representing the list of parameters with answers
Properties
|
(static) saveDocumentAs(obj)
Saves a Web Intelligence document to a folder of the user machine.
Parameters:
| Name | Type | Description | ||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
obj |
Object | a JSON object
Properties
|
(static) setAxisSorts(obj)
Creates sortings on an axis of a report element of type table.
Parameters:
| Name | Type | Description | ||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
obj |
Object |
Properties
|
Returns:
A JSON object containing the success message and the axis ID
(static) setDocumentInputControlSelection(obj)
Set the selection.
Parameters:
| Name | Type | Description | ||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
obj |
Object |
Properties
|
Returns:
A JSON object containing the success message
(static) setInputControlSelection(obj)
Sets the selection on an input control.
Parameters:
| Name | Type | Description | ||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
obj |
Object |
Properties
|
Returns:
A JSON object containing the success message
(static) updateAxisExpression(obj)
Updates an axis with a set of expressions.
Parameters:
| Name | Type | Description | |||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
obj |
Object | a JSON object
Properties
|
Returns:
A JSON object containing the success message and the axis ID
(static) updateBreakOnAxis(obj)
Updates a break on an axis of a report element of type table.
Parameters:
| Name | Type | Description | |||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
obj |
Object |
Properties
|
Returns:
A JSON object containing the success message and the break ID
(static) updateDataProvider(obj)
Updates a data provider.
Parameters:
| Name | Type | Description | ||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
obj |
Object |
Properties
|
Returns:
A JSON object containing the success message and the data provider ID updated
Example
{"dpId": "DP_ID", "requestBody": {"dataprovider": {"name": "DP_NAME"}}, "purge": "PURGE_VALUE",
"purgeOptions": "PURGE_OPTIONS_VALUE"}
(static) updateDocumentAlerter(obj)
Updates an alerter.
Parameters:
| Name | Type | Description | |||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
obj |
Object |
Properties
|
Returns:
A JSON object containing the success message and the ID of the updated alerter
(static) updateDocumentCss(obj)
Updates the document CSS.
Parameters:
| Name | Type | Description | ||||||
|---|---|---|---|---|---|---|---|---|
obj |
Object | The object argument
Properties
|
Returns:
A JSON object containing the success message
(static) updateDocumentInputControl(obj)
Updates an input control.
Parameters:
| Name | Type | Description | |||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
obj |
Object |
Properties
|
Returns:
A JSON object containing the success message and the ID of the updated control
(static) updateDPQuerySpec(obj)
Updates the query specification attached to a given data provider.
Parameters:
| Name | Type | Description | |||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
obj |
Object |
Properties
|
Returns:
A JSON object containing the success message and the ID of the data provider
(static) updateDrillerFilter(obj)
Updates a drill filter definition.
Parameters:
| Name | Type | Description | ||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
obj |
Object |
Properties
|
Returns:
A JSON object containing the success message and the ID of the updated filter
(static) updateInputControl(obj)
Updates an input control.
Parameters:
| Name | Type | Description | ||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
obj |
Object |
Properties
|
Returns:
A JSON object containing the success message and the ID of the updated control
(static) updateReport(obj)
Updates the report with the specified values.
Parameters:
| Name | Type | Description | |||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
obj |
Object | a JSON object
Properties
|
Returns:
A JSON object containing the success message and the ID of the updated report
Example
{"reportId": REPORT_ID, "requestBody": {"report":{"name": "REPORT_NAME", "showDataChanges": true}}}
(static) updateReportDataFilter(obj)
Updates the list of report filters.
Parameters:
| Name | Type | Description | |||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
obj |
Object |
Properties
|
Returns:
A JSON object containing the success message and the ID of the updated filter
(static) updateReportElement(obj)
Updates a report element.
Parameters:
| Name | Type | Description | ||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
obj |
Object | a JSON object
Properties
|
Returns:
A JSON object containing the success message and the report element ID
(static) updateReportElementDataFilter(obj)
Updates the list of report element filters.
Parameters:
| Name | Type | Description | ||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
obj |
Object |
Properties
|
Returns:
A JSON object containing the success message and the ID of the updated filter
(static) updateReportElementProperty()
Updates a custom property to the specified report element.
Returns:
A JSON object containing the success message and the key of the updated property
(static) updateReportSpecification(obj)
Updates the report specification.
Parameters:
| Name | Type | Description | |||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
obj |
Object | a JSON object
Properties
|
Returns:
A JSON object containing the success message and the report ID
Example
var xml = document.getElementById("txtReportSpec").value;
var docContext = WebiApplication.getContext();
var obj = {"reportId": docContext.selectedReportId, "requestBody": xml};
var response = WebiServices.document.updateReportSpecification(obj);
(static) updateVariable(obj)
Modifies the definition of an existing variable from the document expressions dictionary.
Parameters:
| Name | Type | Description | ||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
obj |
Object |
Properties
|
Returns:
A JSON object containing the success message and the ID of the updated variable