bool PrxMetaSheetsMove(string mon, PrxMetaSheetsMoveArg tArg)
mon. Moniker for working with regular report sheets.
tArg. Parameters for moving regular report sheet.
The PrxMetaSheetsMove operation moves regular report sheet.
The operation enables the user to change 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.
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.
{
"PrxMetaSheetsMove" :
{
"mon" : "S1!M!S!P1!Sheets",
"tArg" :
{
"oldIndex" : "1",
"newIndex" : "0"
}
}
}
{
"PrxMetaSheetsMoveResult" : "1"
}
public static bool MovePrxSheets(string moniker, ulong oldIndex, ulong 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: