PrxMetaSheetsMove

Syntax

bool PrxMetaSheetsMove(string mon, PrxMetaSheetsMoveArg tArg)

Parameters

mon. Moniker for working with regular report sheets.

tArg. Parameters for moving regular report sheet.

Description

The PrxMetaSheetsMove operation moves regular report sheet.

Comments

The operation changes sheet location order. To execute the operation, in the mon field specify regular report instance moniker with the !Sheets postfix to work with sheets, and in the tArg field specify sheet moving parameters. The moniker can be obtained on executing the OpenPrxMeta operation.

The operation returns True if sheets are moved successfully.

Example

Below is the example of moving regular report sheet. The request contains moniker for working with sheets, index of the position, from which the sheet should be moved, and index of the position, to which the sheet should be moved. The response contains whether the sheet is successfully moved.

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">
<PrxMetaSheetsMove xmlns="http://www.fsight.ru/PP.SOM.Som">
  <mon xmlns="">S1!M!S!P1!Sheets</mon>
<tArg xmlns="">
  <oldIndex>1</oldIndex>
  <newIndex>0</newIndex>
  </tArg>
  </PrxMetaSheetsMove>
  </s:Body>
  </s:Envelope>

SOAP response:

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

JSON request:

{
"PrxMetaSheetsMove" :
{
"mon" : "S1!M!S!P1!Sheets",
"tArg" :
{
"oldIndex" : "1",
"newIndex" : "0"
}
}
}

JSON response:

{
"PrxMetaSheetsMoveResult" : "1"
}
public static bool MovePrxSheets(string moniker, uint oldIndex, uint newIndex)
{
var somClient = new SomPortTypeClient(); //Proxy object for operation execution
//Operation execution parameters
var tMove = new PrxMetaSheetsMove()
{
tArg = new PrxMetaSheetsMoveArg()
{
oldIndex = oldIndex,
newIndex = newIndex
},
mon = moniker + "!Sheets"
};
//Move sheets
var result = somClient.PrxMetaSheetsMove(tMove);
return result;
}

See also:

Working With Regular Reports