PrxMetaControlsMove

Syntax

bool PrxMetaControlsMove(string mon, PrxMetaControlsMoveArg tArg)

Parameters

mon. Moniker for working with regular report controls.

tArg. Parameters for moving a control.

Description

The PrxMetaControlsMove operation moves regular report control.

Comments

To execute the operation, in the mon field specify regular report instance moniker with the !Controls postfix to work with controls, and in the tArg field specify parameters for moving a control. The moniker can be obtained on executing the OpenPrxMeta operation.

The operation returns True if the control is moved successfully.

Example

Below is the example of moving a control to other regular report sheet. The request contains moniker for working with controls and key of the sheet, to which a control is moved. The response contains whether the dimension 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">
<PrxMetaControlsMove xmlns="http://www.fsight.ru/PP.SOM.Som">
  <mon xmlns="">S1!M!S!P1!Controls</mon>
<tArg xmlns="">
  <sheetKey>3</sheetKey>
  <indexFrom>0</indexFrom>
  <indexTo>0</indexTo>
  </tArg>
  </PrxMetaControlsMove>
  </s:Body>
  </s:Envelope>

SOAP response:

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

JSON request:

{
"PrxMetaControlsMove" :
{
"mon" : "S1!M!S!P1!Controls",
"tArg" :
{
"sheetKey" : "3",
"indexFrom" : "0",
"indexTo" : "0"
}
}
}

JSON response:

{
"PrxMetaControlsMoveResult" : "1"
}
public static bool MovePrxControl(string moniker, uint controlKey, uint newSheetKey, long oldIndexPos = 0, long newIndexPos = 0)
{
var somClient = new SomPortTypeClient(); //Proxy object for operation execution
//Operation execution parameters
var tDel = new PrxMetaControlsMove()
{
tArg = new PrxMetaControlsMoveArg()
{
sheetKey = newSheetKey,
indexFrom = oldIndexPos,
indexTo = newIndexPos
},
mon = moniker + "!Controls"
};
//Move control
var result = somClient.PrxMetaControlsMove(tDel);
return result;
}

See also:

Working With Regular Reports