GetPrxMetaChart

Syntax

PrxMetaChart GetPrxMetaChart(string mon, PrxMetaChart tArg)

Parameters

mon. Moniker for working with a chart.

tArg. Metadata that should be obtained for a chart.

Description

The GetPrxMetaChart operation gets metadata of the chart located on a regular report sheet.

Comments

To execute the operation, in the mon field specify the regular report instance moniker with the !Sheets!sheet key!Objects!chart identifier postfix to work with a chart. In the tArg field set empty values or default values for the fields, which values should be obtained. Moniker of regular report instance can be obtained on executing the OpenPrxMeta operation.

The operation results in the requested metadata.

Example

Below is the example of getting information about regular report chart. The request contains chart moniker. The response contains the obtained information.

SOAP request:

<s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/">
<s:Body xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<GetPrxMetaChart xmlns="http://www.fsight.ru/PP.SOM.Som">
  <mon xmlns="">LJCKBHFIAJEAGOAEEMIEIMBELEOLDDKEHLFAGLAKCMOKGDDM!M!S!PCBKPNKFIAJEAGOAECBPKIKLHHMNEMBAELJHMEKFCGPMJLGKM!Sheets!1!Objects!PrxChart5</mon>
<tArg xmlns="">
  <name />
  <data />
  <points />
  <series />
  <seriesInRows>true</seriesInRows>
  <chartSettings />
  <sourceType>Sheet</sourceType>
  <ptNames />
  </tArg>
  </GetPrxMetaChart>
  </s:Body>
  </s:Envelope>

SOAP response:

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">
<soapenv:Body>
<GetPrxMetaChartResult xmlns="http://www.fsight.ru/PP.SOM.Som" xmlns:q1="http://www.fsight.ru/PP.SOM.Som" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
  <name xmlns="">Indicators chart</name>
  <data xmlns="">H14:N17</data>
  <points xmlns="">H13:N13</points>
  <series xmlns="">G14:G17</series>
  <seriesInRows xmlns="">1</seriesInRows>
<chartSettings xmlns="">
  <type>1</type>
  <view3d>0</view3d>
  <uzs>1</uzs>
<bg>
  <type>1</type>
<sfill>
  <clr>#FFFFFF</clr>
  <tp>0</tp>
  </sfill>
  </bg>
<bd>
  <clr>#000000</clr>
  <s>1</s>
  <w>2</w>
  <enabled>1</enabled>
  </bd>
  <ornt>0</ornt>
  <accum>0</accum>
  <inter>Selection</inter>
  <zm>None</zm>
  <he>1</he>
  <sts>0</sts>
  </chartSettings>
  <sourceType xmlns="">Sheet</sourceType>
<ptNames xmlns="">
  <its>2000</its>
  <its>I half-year 2000</its>
  <its>I quarter 2000</its>
  <its>II quarter 2000</its>
  <its>II half-year 2000</its>
  <its>III quarter 2000</its>
  <its>IV quarter 2000</its>
  </ptNames>
  </GetPrxMetaChartResult>
  </soapenv:Body>
  </soapenv:Envelope>

JSON request:

{
"GetPrxMetaChart" :
{
"mon" : "LJCKBHFIAJEAGOAEEMIEIMBELEOLDDKEHLFAGLAKCMOKGDDM!M!S!PCBKPNKFIAJEAGOAECBPKIKLHHMNEMBAELJHMEKFCGPMJLGKM!Sheets!1!Objects!PrxChart5",
"tArg" :
{
"name" : "",
"data" : "",
"points" : "",
"series" : "",
"seriesInRows" : "true",
"chartSettings" : "",
"sourceType" : "Sheet",
"ptNames" : ""
}
}
}

JSON response:

{
"GetPrxMetaChartResult" :
{
"name" : "Indicators chart",
"data" : "H14:N17",
"points" : "H13:N13",
"series" : "G14:G17",
"seriesInRows" : "1",
"chartSettings" :
{
"type" : "1",
"view3d" : "0",
"uzs" : "1",
"bg" :
{
"type" : "1",
"sfill" :
{
"clr" : "#FFFFFF",
"tp" : "0"
}
},
"bd" :
{
"clr" : "#000000",
"s" : "1",
"w" : "2",
"enabled" : "1"
},
"ornt" : "0",
"accum" : "0",
"inter" : "Selection",
"zm" : "None",
"he" : "1",
"sts" : "0"
},
"sourceType" : "Sheet",
"ptNames" :
{
"its" :
[
"2000",
"I half-year 2000",
"I quarter 2000",
"II quarter 2000",
"II half-year 2000",
"III quarter 2000",
"IV quarter 2000"
]
}
}
}
public static PrxMetaChart GetPrxChart(string moniker, string sheetKey, string chartId)
{
var somClient = new SomPortTypeClient(); //Proxy object for operation execution
//Operation execution parameters
var tGet = new GetPrxMetaChart()
{
tArg = new PrxMetaChart()
{
chartSettings = new ChartSettings(),
data = string.Empty,
name = string.Empty,
points = string.Empty,
series = string.Empty,
seriesInRows = true,
sourceType = new PrxMetaChartSourceType(),
ptNames = new string[0]
},
mon = moniker + "!Sheets!" + sheetKey + "!Objects!" + chartId
};
//Get chart information
var result = somClient.GetPrxMetaChart(tGet);
return result;
}

See also:

Working with Regular Reports