PivotDimensionSettingsEx GetPivotDimensionSettingsExMetaData(string mon, PivotDimensionSettingsEx tArg)
mon. Moniker for working with data slice dimension.
tArg. Dimension advanced settings that should be obtained.
The GetPivotDimensionSettingsExMetaData operation gets advanced settings of data slice dimension.
To execute the operation, in the mon field specify moniker of regular report instance with the !DataArea!DataSources!source key!DataSourceSlices!slice key!Pivot!PivotDims!dimension key!Settings postfix to work with dimension settings, and in the tArg field specify empty values or default values for the fields, which values should be obtained. The moniker can be obtained on executing the OpenPrxMeta operation.
The operation will return the obtained dimension settings.
Below is the example of getting advanced settings of data slice dimension. The request contains dimension moniker and the list of settings, which values should be obtained. The response contains the obtained values.
{
"GetPivotDimensionSettingsExMetaData" :
{
"mon" : "OKOJDJGKNIENFOAEJNJLKGEKADFPDGEEGJGOMBCJJOBOMJEF!M!S!PBAJILOGKNIENFOAEONEKNMNEGGHGMDBEPLLMLDOJNKGLFFDF!DataArea!DataSources!3!DataSourceSlices!3!Pivot!PivotDims!991!Settings",
"tArg" :
{
"MergeTopDown" : "false",
"IsDimensionMergeAllowed" : "false"
}
}
}
{
"GetPivotDimensionSettingsExMetaDataResult" :
{
"MergeTopDown" : "1",
"IsDimensionMergeAllowed" : "0"
}
}
public static PivotDimensionSettingsEx GetPivotDimensionSettingsExMetaData(string moniker, uint dataSourceKey, uint sliceKey, uint dimKey)
{
var somClient = new SomPortTypeClient(); // Proxy object for operation execution
// Operation execution parameters
var tGet = new GetPivotDimensionSettingsExMetaData()
{
tArg = new PivotDimensionSettingsEx()
{
IsDimensionMergeAllowed = new bool(),
MergeTopDown = new bool()
},
mon = moniker + "!DataArea!DataSources!" + dataSourceKey.ToString() + "!DataSourceSlices!" + sliceKey.ToString() + "!Pivot!PivotDims!" + dimKey.ToString() + "!Settings"
};
// Get dimension settings
var result = somClient.GetPivotDimensionSettingsExMetaData(tGet);
return result;
}
See also: