TabObjectSettings GetTabObjectSettings(TabObjId tTabObject)
tTabObject. Table object moniker.
The GetTabObjectSettings operation gets table object settings.
To execute the operation, in the tTabObject field specify table object moniker. The moniker is created in the in the following format: regular report sheet moniker!Objects!object identifier.
The operation results in the obtained object settings.
Below is the example of getting settings of the chart located on a regular report sheet. The request contains moniker for working with chart settings. The response contains the obtained settings.
{
"GetTabObjectSettings" :
{
"tTabObject" :
{
"id" : "GELCPBJDAHMNFOAEOGANNOOIMCBDPMLEFKAFDIFHOKGGDEFD!M!S!PLBMFNEJDAHMNFOAEKCMNMAJAJPHAFBGEILMEHGGEFPOMHMFJ!Sheets!1!Objects!PrxChart1"
}
}
}
{
"GetTabObjectSettingsResult" :
{
"tot" : "",
"tomm" : "5",
"toam" : "2",
"prn" : "1",
"trp" : "0",
"a" : "0"
}
}
public static TabObjectSettings GetTabObjectSettings(string reportMoniker, string sheetKey, string objectId)
{
var somClient = new SomPortTypeClient(); // Proxy object for operation execution
// Operation execution parameters
var tGet = new GetTabObjectSettings()
{
tTabObject = new TabObjId() { id = reportMoniker + "!Sheets!" + sheetKey + "!Objects!" + objectId}
};
// Get table object settings
var result = somClient.GetTabObjectSettings(tGet);
return result;
}
See also: