Web Service > Web Service Operations > Working with Regular Reports > GetDataAreaSlice
DataAreaSlice GetDataAreaSlice(string mon, DataAreaSlice tArg)
mon. Moniker for working with analytical data area slice.
tArg. Slice settings that should be obtained.
The GetDataAreaSlice operation gets information about analytical area data slice.
To execute the operation, in the mon field specify regular report instance moniker with the DataArea!DataSources!source key!DataSourceSlices!slice key 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 results in the obtained analytical data area slice settings.
Below is the example of getting information about data slice dimensions. The request contains analytical data area moniker and the list of obtained fields. The response contains the obtained information about dimensions.
{
"GetDataAreaSlice" :
{
"mon" : "MFMABINKFPPDGOAEOBOOGFNHBKBGDINECKCPBCDFBECFODJM!M!S!PJGOCAMNKFPPDGOAEBKLCKKHMBCAFDKDEMLAJMEJFLDNGLJMJ!DataArea!DataSources!1!DataSourceSlices!1",
"tArg" :
{
"k" : "1",
"pivotSlice" :
{
"pivot" :
{
"dims" :
{
"its" :
{
"it" :
[
{
"k" : "-1",
"id" : "",
"n" : "",
"dimMetadata" :
{
"id" :
{
"id" : ""
},
"data" :
{
"selection" :
{
"selectedCount" : "-1"
}
},
"els" :
{
"id" :
{
"id" : ""
}
}
}
}
]
}
}
}
}
}
}
}
{
"GetDataAreaSliceResult" :
{
"k" : "1",
"pivotSlice" :
{
"pivot" :
{
"dims" :
{
"its" :
{
"it" :
[
{
"k" : "339501",
"id" : "FACTS",
"n" : "Facts",
"dimMetadata" :
{
"id" :
{
"id" : ""
},
"data" :
{
"obInst" :
{
"obDesc" :
{
"@ds" : "",
"@isShortcut" : "0",
"@isLink" : "0",
"@ver" : "2",
"@hf" : "0",
"i" : "FACTS",
"n" : "Facts",
"k" : "339501",
"c" : "1028",
"p" : "339499",
"h" : "0",
"hasPrv" : "0",
"ic" : "0",
"trackElementDependents" : "0",
"isPermanent" : "1",
"isTemp" : "0"
},
"openArgs" : ""
},
"selection" :
{
"selectedCount" : "1",
"schema" :
{
"k" : "4294967295",
"vis" : "1",
"applyOnlyOnce" : "0",
"onceApplied" : "1",
"applyOnRebuild" : "0"
},
"allowToChangeElementGroup" : "1"
},
"isAbacSecured" : "0"
},
"els" :
{
"els" : "",
"totalCount" : "1",
"id" :
{
"id" : ""
},
"selectionInfo" :
{
"firstSelected" :
{
"n" : "Value",
"k" : "1",
"h" : "0",
"o" : "0"
},
"lastSelected" :
{
"n" : "Value",
"k" : "1",
"h" : "0",
"o" : "0"
},
"selectedCount" : "1",
"schema" :
{
"k" : "4294967295",
"vis" : "1",
"applyOnlyOnce" : "0",
"onceApplied" : "1",
"applyOnRebuild" : "0"
}
}
}
}
},
{
"k" : "339497",
"id" : "OBJ339497",
"n" : "Calendar",
"dimMetadata" :
{
"id" :
{
"id" : ""
},
"data" :
{
"obInst" :
{
"obDesc" :
{
"@ds" : "",
"@isShortcut" : "0",
"@isLink" : "0",
"@ver" : "1",
"@hf" : "0",
"i" : "OBJ339497",
"n" : "Calendar",
"k" : "339497",
"c" : "1026",
"p" : "339494",
"h" : "0",
"hasPrv" : "0",
"ic" : "0",
"trackElementDependents" : "0",
"isPermanent" : "1",
"isTemp" : "0"
},
"openArgs" : ""
},
"selection" :
{
"selectedCount" : "11",
"schema" :
{
"k" : "4294967295",
"vis" : "1",
"applyOnlyOnce" : "0",
"onceApplied" : "1",
"applyOnRebuild" : "0"
},
"allowToChangeElementGroup" : "1"
},
"isAbacSecured" : "0"
},
"els" :
{
"els" : "",
"totalCount" : "11",
"id" :
{
"id" : ""
},
"selectionInfo" :
{
"firstSelected" :
{
"n" : "2010",
"k" : "YEARS:2010",
"h" : "0",
"o" : "0"
},
"lastSelected" :
{
"n" : "2020",
"k" : "YEARS:2020",
"h" : "0",
"o" : "0"
},
"selectedCount" : "11",
"calendarPeriod" :
{
"active" : "0",
"start" : "2010-01-01",
"end" : "2020-12-31",
"levels" :
{
"it" : "Year"
}
},
"schema" :
{
"k" : "4294967295",
"vis" : "1",
"applyOnlyOnce" : "0",
"onceApplied" : "1",
"applyOnRebuild" : "0"
}
}
}
}
},
{
"k" : "339495",
"id" : "OBJ339495",
"n" : "Dictionary",
"dimMetadata" :
{
"id" :
{
"id" : ""
},
"data" :
{
"obInst" :
{
"obDesc" :
{
"@ds" : "",
"@isShortcut" : "0",
"@isLink" : "0",
"@ver" : "3",
"@hf" : "0",
"i" : "OBJ339495",
"n" : "Dictionary",
"k" : "339495",
"c" : "3076",
"p" : "339494",
"h" : "0",
"hasPrv" : "0",
"ic" : "0",
"trackElementDependents" : "0",
"isPermanent" : "1",
"isTemp" : "0"
},
"openArgs" : ""
},
"selection" :
{
"selectedCount" : "3",
"schema" :
{
"k" : "4294967295",
"vis" : "1",
"applyOnlyOnce" : "0",
"onceApplied" : "1",
"applyOnRebuild" : "0"
},
"allowToChangeElementGroup" : "1"
},
"isAbacSecured" : "0"
},
"els" :
{
"els" : "",
"totalCount" : "3",
"id" :
{
"id" : ""
},
"selectionInfo" :
{
"firstSelected" :
{
"n" : "Debit",
"k" : "1",
"h" : "0",
"o" : "0"
},
"lastSelected" :
{
"n" : "Balance",
"k" : "3",
"h" : "0",
"o" : "0"
},
"selectedCount" : "3",
"schema" :
{
"k" : "4294967295",
"vis" : "1",
"applyOnlyOnce" : "0",
"onceApplied" : "1",
"applyOnRebuild" : "0"
}
}
}
}
}
]
}
},
"drillThrough" : "0"
}
}
}
}
public static DataAreaSlice GetDataAreaSlice(string moniker, uint sourceKey, uint sliceKey)
{
var somClient = new SomPortTypeClient(); // Proxy object for operation execution
// Operation execution parameters
var tSet = new GetDataAreaSlice()
{
tArg = new DataAreaSlice()
{
k = sliceKey,
pivotSlice = new DataAreaPivotSlice()
{
pivot = new PivotMetaData()
{
dims = new PivotDimensions()
{
its = new PivotDimension[]
{
new PivotDimension()
{
id = string.Empty,
n = string.Empty,
k = uint.MaxValue,
dimMetadata = new GetDimMetadataResult()
{
data = new DmMetadata()
{
selection = new DmSelectionMeta()
{
selectedCount = -1
}
},
els = new GetDimElementsResult()
{
id = new DmId() { id = string.Empty }
},
id = new DmId(){ id = string.Empty }
}
}
}
}
}
}
},
mon = moniker + "!DataArea!DataSources!" + sourceKey + "!DataSourceSlices!" + sliceKey
};
// Get analytical data area slice settings
var result = somClient.GetDataAreaSlice(tSet);
return result;
}
See also: