SaveCalculatedCubeFormulas

Syntax

bool SaveCalculatedCubeFormulas(CubeId tCube)

Parameters

tCube. Opened calculated cube instance moniker.

Description

The SaveCalculatedCubeFormulas operation saves changes in calculated cube formulas.

Comments

To execute the operation, sepcifiy moniker of calculated cube instance in the tCube field. Moniker can be obtained using the OpenCube operation. Working with formulas can be executed using the GetCalculatedCubeFormulas/SetCalculatedCubeFormulas operations.

The operation results in the logical True if changes were saved successfully.

Example

Below is the example of saving calculated cube formulas. The request contains moniker of calculated cube instance for which formulas were changed. The response contains whether formulas are successfully saved.

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">
<SaveCalculatedCubeFormulas xmlns="http://www.fsight.ru/PP.SOM.Som">
<tCube xmlns="">
  <id>S1!M!S!C1</id>
  </tCube>
  </SaveCalculatedCubeFormulas>
  </s:Body>
  </s:Envelope>

SOAP response:

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">
<soapenv:Body>
  <SaveCalculatedCubeFormulasResult 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</SaveCalculatedCubeFormulasResult>
  </soapenv:Body>
  </soapenv:Envelope>

JSON request:

{
"SaveCalculatedCubeFormulas" :
{
"tCube" :
{
"id" : "S1!M!S!C1"
}
}
}

JSON response:

{
"SaveCalculatedCubeFormulasResult" : "1"
}
public static bool SaveCubeFormulas(CubeId moniker)
{
var somClient = new SomPortTypeClient(); //Proxy object for operation execution
//Operation execution parameters
var tSave = new SaveCalculatedCubeFormulas()
{
tCube = moniker
};
//Save calculated cube formulas
var result = somClient.SaveCalculatedCubeFormulas(tSave);
return result;
}

See also:

Working with Cubes