OpenAlgDestResult OpenAlgDest(AlgId tAlg, OpenAlgDestArg tArg)
tAlg. Moniker of indicators calculation algorithm instance or its block instance.
tArg. Operation execution parameters.
The OpenAlgDest operation opens calculation block of control block consumer in regular report.
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.
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.
{
"OpenAlgDest" :
{
"tAlg" :
{
"id" : "S1!M!S!C15"
},
"tArg" :
{
"calcObjectKey" : "231308"
}
}
}
{
"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: