public interface IEssOpCalculate extends IEssOperation
IEssOperation.EEssOperationType
Modifier and Type | Method and Description |
---|---|
EssCalcStatus |
getResult()
API to get the calc result
|
java.lang.String[] |
getRTSV()
Gets all the Run Time Substitution Variables set for this calc operation
|
void |
set(boolean syntaxCheckOnly,
java.lang.String calcFileNamePrefix)
Executes a calc script against the active database from a file.
|
void |
set(java.lang.String calcScript,
boolean syntaxCheckOnly)
Sends and optionally executes a calc script against this active cube as
a single string.
|
void |
setRTSV(java.lang.String[] rtsv)
For Calculate operations with Run Time Substitution Variables.
Existing RTSV has to be fetched from server using API IEssCube.getCalcFileRunTimeSubVars(String) .Loop through all the RTSV's and build string array of RTSV in the below mentioned format String RTSV = RTSV_KEY = RTSV_VALUE + [RTSV_LIMIT] + Semicolon[;] ; //Semicolon is mandatory String[] RTSVS = {RTSV0, RTSV1..}; |
getOperationType
void set(java.lang.String calcScript, boolean syntaxCheckOnly) throws com.essbase.api.base.EssException
calcScript
- The calc script as a single string. If null or "" is
passed default calc script is used.syntaxCheckOnly
- true if to perform syntax check only.com.essbase.api.base.EssException
- if an error occurs.void set(boolean syntaxCheckOnly, java.lang.String calcFileNamePrefix) throws com.essbase.api.base.EssException
syntaxCheckOnly
- true if to perform syntax check only.calcFileNamePrefix
- The calc script file name's prefix. This file
should be located in the olap server's application/cube directory, with
extension '.csc'. For eq, if the file name is calcall.csc, you should
pass "calcall" to this param.com.essbase.api.base.EssException
- if an error occurs.java.lang.String[] getRTSV()
void setRTSV(java.lang.String[] rtsv)
IEssCube.getCalcFileRunTimeSubVars(String)
.rtsv
- - String Array of Run Time Substitution VariablesEssCalcStatus getResult()