bool SetFormulaErrorOptions(string mon, FormulaErrorOptions tArg)
mon. Moniker for working with report formulas settings.
tArg. Operation execution parameters.
The SetFormulaErrorOptions operation changes regular report formulas settings.
To execute the operation, in the mon field specify regular report instance moniker with the !Options!ErrorChecking postfix to work with formulas settings, and in the tArg field specify the settings that should be set. The moniker can be obtained on executing the OpenPrxMeta operation.
The operation results in the logical True if the settings were changed successfully.
Below is the example of changing regular report formulas settings. The request contains the moniker for working with regular report formulas settings and settings values to be determined. The response contains whether settings are successfully applied.
{
"SetFormulaErrorOptions" :
{
"mon" : "LFHLAJJGFJJNFOAEOHLLHDAIEIAGJHHELLMOKBONCJGBCELE!M!S!PNLMGHCKGFJJNFOAEPDODPHGHNCFOELOELJIHLDOGENABJMFK!Options!ErrorChecking",
"tArg" :
{
"ic" :
{
"enable" : "true",
"cm" : "0.0001",
"mic" : "200"
},
"ei" :
{
"enable" : "true",
"c" : "#FF0000",
"evtt" : "0",
"nat" : "true"
}
}
}
}
{
"SetFormulaErrorOptionsResult" : "1"
}
public static bool SetFormulaErrorOptions(string moniker)
{
var somClient = new SomPortTypeClient(); // Proxy object for operation execution
// Operation execution parameters
var tSet = new SetFormulaErrorOptions()
{
tArg = new FormulaErrorOptions()
{
ic = new IterativeCalculations()
{
enable = true,
mic = 200,
cm = 0.0001
},
ei = new ErrorIndication()
{
enable = true,
c = "#FF0000",
evtt = 0,
nat = true
}
},
mon = moniker + "!Options!ErrorChecking"
};
// Change dimension settings
var result = somClient.SetFormulaErrorOptions(tSet);
return result;
}
See also: