MoveSeriesGroupTreeElem

Syntax

bool MoveSeriesGroupTreeElem(ChartAbsoluteGroupId mon, MoveSeriesGroupTreeElemArg arg)

Parameters

mon. Moniker for working with histogram series groups.

arg. Operation execution parameters.

Description

The MoveSeriesGroupTreeElem operation moves a series from one group to another group in a histogram.

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 field specify parameters a moved series. Moniker of regular report instance can be obtained on executing the OpenPrxMeta operation.

The operation results in the successful moving of a series from one group to another.

Example

Below is the example of moving a series from the second group to the first group in a histogram. The request contains moniker for working with series groups. The response contains whether a series is moved successfully.

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

SOAP response:

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">
<soapenv:Body>
  <MoveSeriesGroupTreeElemResult 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">1</MoveSeriesGroupTreeElemResult>
  </soapenv:Body>
  </soapenv:Envelope>

JSON request:

{
"MoveSeriesGroupTreeElem" :
{
"mon" :
{
"id" : "DJKIICCJHNCAGOAEAEMMLBNLKMJNJKJEKJKGJNLJPENPPEMD!M!S!PCJENOHCJHNCAGOAEOFHBIKJIBIKIODFEDIEGIMLOAMBJKDAG!Sheets!1!Objects!PrxChart4!Group"
},
"arg" :
{
"from" :
{
"rgi" : "1",
"si" : "0"
},
"to" :
{
"rgi" : "0",
"si" : "0"
}
}
}
}

JSON response:

{
"MoveSeriesGroupTreeElemResult" : "1"
}
public static bool MoveSeriesGroupTreeElem(string moniker, string sheetKey, string chartId)
{
var somClient = new SomPortTypeClient(); // Proxy object for operation execution
// Operation execution parameters
var tMove = new MoveSeriesGroupTreeElem()
{
mon = new ChartAbsoluteGroupId() { id = moniker + "!Sheets!" + sheetKey + "!Objects!" + chartId + "!Group" },
arg = new MoveSeriesGroupTreeElemArg()
{
from = new ChartGroupTargetElem() { rgi = 1, si = 0 },
to = new ChartGroupTargetElem() { rgi = 0, si = 0 }
}
};
// Move series from one group to another
var result = somClient.MoveSeriesGroupTreeElem(tMove);
return result;
}

See also:

Working with Regular Reports