bool SaveCalculatedCubeFormulas(CubeId tCube)
tCube. Opened calculated cube instance moniker.
The SaveCalculatedCubeFormulas operation saves changes in calculated cube formulas.
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.
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.
{
"SaveCalculatedCubeFormulas" :
{
"tCube" :
{
"id" : "S1!M!S!C1"
}
}
}
{
"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: