OpenAlgDest

Syntax

OpenAlgDestResult OpenAlgDest(AlgId tAlg, OpenAlgDestArg tArg)

Parameters

tAlg. Moniker of indicators calculation algorithm instance or its block instance.

tArg. Operation execution parameters.

Description

The OpenAlgDest operation opens calculation block of control block consumer in regular report.

Comments

To execute the operation, in the tAlg field specify the calculation algorithm or its block moniker and in the tArg.calcObjectKey field specify the calculation block or control block key. The moniker can be obtained on executing the OpenAlg operation.

The operation results in regular report moniker where analytical data area will be built basing on block consumer.

Example

Below is the example of opening calculation block consumer in regular report. The request contains calculation algorithm moniker and calculation block key. The response contains obtained regular report moniker.

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">
<OpenAlgDest xmlns="http://www.fsight.ru/PP.SOM.Som">
<tAlg xmlns="">
  <id>S1!M!S!C15</id>
  </tAlg>
<tArg xmlns="">
  <calcObjectKey>231308</calcObjectKey>
  </tArg>
  </OpenAlgDest>
  </s:Body>
  </s:Envelope>

SOAP response:

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">
<soapenv:Body>
<OpenAlgDestResult 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">
  <prxReport xmlns="">S1!M!S!C16</prxReport>
  </OpenAlgDestResult>
  </soapenv:Body>
  </soapenv:Envelope>

JSON request:

{
"OpenAlgDest" :
{
"tAlg" :
{
"id" : "S1!M!S!C15"
},
"tArg" :
{
"calcObjectKey" : "231308"
}
}
}

JSON response:

{
"OpenAlgDestResult" :
{
"prxReport" : "S1!M!S!C16"
}
}
public static OpenAlgDestResult OpenDestInReport(string moniker, uint key)
{
var somClient = new SomPortTypeClient(); //Proxy object for operation execution
//Operation execution parameters
var tOpen = new OpenAlgDest()
{
tAlg = new AlgId() { id = moniker },
tArg = new OpenAlgDestArg()
{
calcObjectKey = key
}
};
//Open consumer in regular report
var result = somClient.OpenAlgDest(tOpen);
return result;
}

See also:

Working with Indicators Calculation Algorithm