SetFormulaErrorOptions

Syntax

bool SetFormulaErrorOptions(string mon, FormulaErrorOptions tArg)

Parameters

mon. Moniker for working with report formulas settings.

tArg. Operation execution parameters.

Description

The SetFormulaErrorOptions operation changes regular report formulas settings.

Comments

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.

Example

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.

SOAP request:

<s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/">
<s:Body xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<SetFormulaErrorOptions xmlns="http://www.fsight.ru/PP.SOM.Som">
  <mon xmlns="">LFHLAJJGFJJNFOAEOHLLHDAIEIAGJHHELLMOKBONCJGBCELE!M!S!PNLMGHCKGFJJNFOAEPDODPHGHNCFOELOELJIHLDOGENABJMFK!Options!ErrorChecking</mon>
<tArg xmlns="">
<ic>
  <enable>true</enable>
  <cm>0.0001</cm>
  <mic>200</mic>
  </ic>
<ei>
  <enable>true</enable>
  <c>#FF0000</c>
  <evtt>0</evtt>
  <nat>true</nat>
  </ei>
  </tArg>
  </SetFormulaErrorOptions>
  </s:Body>
  </s:Envelope>

SOAP response:

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">
<soapenv:Body>
  <SetFormulaErrorOptionsResult xmlns="http://www.fsight.ru/PP.SOM.Som" xmlns:q1="http://www.fsight.ru/PP.SOM.Som" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">1</SetFormulaErrorOptionsResult>
  </soapenv:Body>
  </soapenv:Envelope>

JSON request:

{
"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"
}
}
}
}

JSON response:

{
"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:

Working with Regular Reports