GetFormulaErrorOptions

Syntax

FormulaErrorOptions GetFormulaErrorOptions(string mon, FormulaErrorOptions tArg)

Parameters

mon. Moniker for working with report formulas settings.

tArg. Operation execution parameters.

Description

The GetFormulaErrorOptions operation gets 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 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.

Example

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.

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">
<GetFormulaErrorOptions xmlns="http://www.fsight.ru/PP.SOM.Som">
  <mon xmlns="">LFHLAJJGFJJNFOAEOHLLHDAIEIAGJHHELLMOKBONCJGBCELE!M!S!PNLMGHCKGFJJNFOAEPDODPHGHNCFOELOELJIHLDOGENABJMFK!Options!ErrorChecking</mon>
<tArg xmlns="">
<ei>
  <enable>false</enable>
  <c />
  <evtt>2147483647</evtt>
  <nat>false</nat>
  </ei>
  </tArg>
  </GetFormulaErrorOptions>
  </s:Body>
  </s:Envelope>

SOAP response:

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">
<soapenv:Body>
<GetFormulaErrorOptionsResult 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">
<ei xmlns="">
  <enable>1</enable>
  <c>#008000</c>
  <evtt>1</evtt>
  <nat>1</nat>
  </ei>
  </GetFormulaErrorOptionsResult>
  </soapenv:Body>
  </soapenv:Envelope>

JSON request:

{
"GetFormulaErrorOptions" :
{
"mon" : "LFHLAJJGFJJNFOAEOHLLHDAIEIAGJHHELLMOKBONCJGBCELE!M!S!PNLMGHCKGFJJNFOAEPDODPHGHNCFOELOELJIHLDOGENABJMFK!Options!ErrorChecking",
"tArg" :
{
"ei" :
{
"enable" : "false",
"c" : "",
"evtt" : "2147483647",
"nat" : "false"
}
}
}
}

JSON response:

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

Working with Regular Reports