bool SetPivotDimLevelMetaData(string mon, PivotDimensionLevel tArg)
mon. Moniker for working with data slice dimension level.
tArg. Dimension level parameters that should be applied.
The SetPivotDimLevelMetaData operation changes data slice dimension level parameters.
To execute the operation, in the mon field specify regular report instance moniker with the !DataSourceSlices!<slice key>!Pivot!PivotDims!<dimension key>!DimLvls!<level key> postfix for working with level, and in the tArg field specify level parameters that should be applied.
The moniker can be obtained on executing the OpenPrxMeta operation.
The operation returns True if changes are applied successfully.
Below is the example for changing data slice dimension level settings. The request contains moniker for working with dimension level and changeable level parameters. The response indicates whether changes are applied successfully.
{
"SetPivotDimLevelMetaData" :
{
"mon" : "S1!M!S!P1!DataArea!DataSources!1!DataSourceSlices!1!Pivot!PivotDims!116!DimLvls!1",
"tArg" :
{
"k" : "0",
"separated" : "1"
}
}
}
{
"SetPivotDimLevelMetaDataResult" : "1"
}
public static bool SetPivotDimLevelMetadata(string moniker, ulong dataSourceKey, ulong sliceKey, ulong dimKey, ulong lvlKey)
{
var somClient = new SomPortTypeClient(); //Proxy object for operation execution
//Operation execution parameters
var tSet = new SetPivotDimLevelMetaData()
{
tArg = new PivotDimensionLevel()
{
separated = 1
},
mon = moniker + "!DataArea!DataSources!" + dataSourceKey.ToString() + "!DataSourceSlices!" + sliceKey.ToString() + "!Pivot!PivotDims!" + dimKey.ToString() + "!DimLvls!" + lvlKey.ToString()
};
//Change dimension level parameters
var result = somClient.SetPivotDimLevelMetaData(tSet);
return result;
}
See also: