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. It is available to work with formulas using the GetCalculatedCubeFormulas/SetCalculatedCubeFormulas operations.
The operation results in the logical true, if changes are saved successfully.
See below the example of saving calculated cube formulas. The request sends 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(); //Прокси-объект для выполнения операций
//Operation execution parameters
var tSave = new SaveCalculatedCubeFormulas()
{
tCube = moniker
};
//Save calculated cube formulas
var result = somClient.SaveCalculatedCubeFormulas(tSave);
return result;
}
See also: