SeriesGroupFastFormat

Syntax

ChartSeriesGroupFastFormatResult SeriesGroupFastFormat(ChartAbsoluteGroupId mon, ChartSeriesGroupFastArg arg)

Parameters

mon. Moniker for working with histogram series groups.

arg. Operation execution parameters.

Description

The SeriesGroupFastFormat operation changes histogram series grouping.

Comments

The operation is used on working with histograms that display data as groups. To execute the operation, in the mon field specify regular report instance moniker with the !Sheets!sheet key!Objects!chart identifier!Group postfix to work with series groups, and in the arg.fmt field specify the set format of series in groups.

Available values of the arg.fmt field:

Moniker of regular report instance can be obtained on executing the OpenPrxMeta operation.

The operation results in the successful application of changes and refreshed series tree in groups.

Example

Below is the example of changing histogram series grouping located on a regular report sheet. The request contains moniker for working with series groups. The response contains the refreshed tree of series groups.

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">
<SeriesGroupFastFormat xmlns="http://www.fsight.ru/PP.SOM.Som">
<mon xmlns="">
  <id>DJKIICCJHNCAGOAEAEMMLBNLKMJNJKJEKJKGJNLJPENPPEMD!M!S!PCJENOHCJHNCAGOAEOFHBIKJIBIKIODFEDIEGIMLOAMBJKDAG!Sheets!1!Objects!PrxChart4!Group</id>
  </mon>
<arg xmlns="">
  <fmt>2</fmt>
  </arg>
  </SeriesGroupFastFormat>
  </s:Body>
  </s:Envelope>

SOAP response:

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">
<soapenv:Body>
<SeriesGroupFastFormatResult 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">
  <result xmlns="">1</result>
<groups xmlns="">
<rg>
<it>
<s>
<it>
  <idx>0</idx>
  </it>
  </s>
  </it>
<it>
<s>
<it>
  <idx>1</idx>
  </it>
  </s>
  </it>
<it>
<s>
<it>
  <idx>2</idx>
  </it>
  </s>
  </it>
<it>
<s>
<it>
  <idx>3</idx>
  </it>
  </s>
  </it>
  </rg>
  </groups>
  </SeriesGroupFastFormatResult>
  </soapenv:Body>
  </soapenv:Envelope>

JSON request:

{
"SeriesGroupFastFormat" :
{
"mon" :
{
"id" : "DJKIICCJHNCAGOAEAEMMLBNLKMJNJKJEKJKGJNLJPENPPEMD!M!S!PCJENOHCJHNCAGOAEOFHBIKJIBIKIODFEDIEGIMLOAMBJKDAG!Sheets!1!Objects!PrxChart4!Group"
},
"arg" :
{
"fmt" : "2"
}
}
}

JSON response:

{
"SeriesGroupFastFormatResult" :
{
"result" : "1",
"groups" :
{
"rg" :
{
"it" :
[
{
"s" :
{
"it" :
{
"idx" : "0"
}
}
},
{
"s" :
{
"it" :
{
"idx" : "1"
}
}
},
{
"s" :
{
"it" :
{
"idx" : "2"
}
}
},
{
"s" :
{
"it" :
{
"idx" : "3"
}
}
}
]
}
}
}
}
public static ChartSeriesGroupFastFormatResult SeriesGroupFastFormat(string moniker, string sheetKey, string chartId)
{
var somClient = new SomPortTypeClient(); // Proxy object for operation execution
// Operation execution parameters
var tSet = new SeriesGroupFastFormat()
{
mon = new ChartAbsoluteGroupId() { id = moniker + "!Sheets!" + sheetKey + "!Objects!" + chartId + "!Group" },
arg = new ChartSeriesGroupFastArg() { fmt = 2 }
};
// Change series layout in groups
var result = somClient.SeriesGroupFastFormat(tSet);
return result;
}

See also:

Working with Regular Reports