bool PrxMetaControlsMove(string mon, PrxMetaControlsMoveArg tArg)
mon. Moniker for working with regular report controls.
tArg. Parameters for moving a control.
The PrxMetaControlsMove operation moves regular report control.
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.
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.
{
"PrxMetaControlsMove" :
{
"mon" : "S1!M!S!P1!Controls",
"tArg" :
{
"sheetKey" : "3",
"indexFrom" : "0",
"indexTo" : "0"
}
}
}
{
"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: