FormulaErrorOptions GetFormulaErrorOptions(string mon, FormulaErrorOptions tArg)
mon. Moniker for working with report formulas settings.
tArg. Operation execution parameters.
The GetFormulaErrorOptions operation gets 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 empty values or default values for the fields, which values should be obtained. The moniker can be obtained on executing the OpenPrxMeta operation.
The operation results in the requested formulas settings.
Below is the example of getting error indication settings in regular report formulas. The request contains moniker for working with regular report formulas settings and a list of the settings, which values should be obtained. The response contains the obtained values.
{
"GetFormulaErrorOptions" :
{
"mon" : "LFHLAJJGFJJNFOAEOHLLHDAIEIAGJHHELLMOKBONCJGBCELE!M!S!PNLMGHCKGFJJNFOAEPDODPHGHNCFOELOELJIHLDOGENABJMFK!Options!ErrorChecking",
"tArg" :
{
"ei" :
{
"enable" : "false",
"c" : "",
"evtt" : "2147483647",
"nat" : "false"
}
}
}
}
{
"GetFormulaErrorOptionsResult" :
{
"ei" :
{
"enable" : "1",
"c" : "#008000",
"evtt" : "1",
"nat" : "1"
}
}
}
public static FormulaErrorOptions GetFormulaErrorOptions(string moniker)
{
var somClient = new SomPortTypeClient(); // Proxy object for operation execution
// Operation execution parameters
var tGet = new GetFormulaErrorOptions()
{
tArg = new FormulaErrorOptions()
{
ei = new ErrorIndication()
{
enable = new bool(),
c = string.Empty,
evtt = int.MaxValue,
nat = new bool()
}
},
mon = moniker + "!Options!ErrorChecking"
};
// Get dimension settings
var result = somClient.GetFormulaErrorOptions(tGet);
return result;
}
See also: