DataAreaGridDimRanges GetDataAreaGridDimRanges(string mon, DataAreaGridDimRanges tArg)
mon. Moniker of the Table visualizer.
tArg. Parameters of cell ranges that should be obtained.
The GetDataAreaGridDimRanges operation gets information about cell ranges corresponding to heading and sidehead dimensions.
To execute the operation, in the mon field specify regular report instance moniker with the !DataArea!DataSources!source key!DataSourceSlices!slice key!Views!table key postfix. The moniker can be obtained on executing the OpenPrxMeta operation. In the tArg field specify empty values or default values for the fields, which values should be obtained.
The operation returns the obtained information about cell ranges.
Below is the example of getting information about the cell ranges, which contain dimension elements. The request contains table moniker. The response contains the obtained information about ranges.
{
"GetDataAreaGridDimRanges" :
{
"mon" : "GLCLGKOCBPDOFOAEENFEDILEMKNEILDEEJBICAEDMGPNBJLP!M!S!PIKDEKAPCBPDOFOAEIFJLGPOHDBHHIAFEFIDCDPHPDEAMFAID!DataArea!DataSources!1!DataSourceSlices!1!Views!6",
"tArg" :
{
"its" :
{
"it" :
[
{
"dimKey" :
{
"dimKey" : "-1"
}
}
]
}
}
}
}
{
"GetDataAreaGridDimRangesResult" :
{
"its" :
{
"it" :
[
{
"dimKey" :
{
"dimKey" : "5858"
},
"range" :
{
"left" : "0",
"top" : "0",
"width" : "0",
"height" : "0",
"type" : "None"
}
},
{
"dimKey" :
{
"dimKey" : "112"
},
"range" :
{
"left" : "2",
"top" : "1",
"width" : "2",
"height" : "1",
"type" : "MultiPart",
"address" : "C1:D1",
"parts" :
{
"it" :
{
"left" : "2",
"top" : "1",
"width" : "2",
"height" : "1",
"type" : "Cells",
"address" : "C1:D1"
}
}
}
},
{
"dimKey" :
{
"dimKey" : "116"
},
"range" :
{
"left" : "1",
"top" : "2",
"width" : "1",
"height" : "2",
"type" : "MultiPart",
"address" : "B2:B3",
"parts" :
{
"it" :
{
"left" : "1",
"top" : "2",
"width" : "1",
"height" : "2",
"type" : "Cells",
"address" : "B2:B3"
}
}
}
},
{
"dimKey" :
{
"dimKey" : "991"
},
"range" :
{
"left" : "0",
"top" : "0",
"width" : "0",
"height" : "0",
"type" : "None"
}
}
]
}
}
}
public static DataAreaGridDimRanges GetDataAreaGridDimRanges(string moniker, uint sourceKey, uint sliceKey, uint viewKey)
{
var somClient = new SomPortTypeClient(); // Proxy object for operation execution
// Operation execution parameters
var tGet = new GetDataAreaGridDimRanges()
{
tArg = new DataAreaGridDimRanges()
{
its = new DataAreaGridDimRange[]
{
new DataAreaGridDimRange()
{
dimKey = new DataAreaGridDimIdent() { dimKey = uint.MaxValue }
}
}
},
mon = moniker + "!DataArea!DataSources!" + sourceKey.ToString() + "!DataSourceSlices!" + sliceKey.ToString() + "!Views!" + viewKey.ToString()
};
// Get information about dimension ranges
var result = somClient.GetDataAreaGridDimRanges(tGet);
return result;
}
See also: