OpItemKey PrxMetaSheetsDuplicate(string mon, OpItemKey tArg)
mon. Moniker for working with regular report sheets.
tArg. Key of duplicated regular report sheet.
The PrxMetaSheetsDuplicate operation creates a regular report sheet duplicate.
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 key of duplicated sheet. The moniker can be obtained on executing the OpenPrxMeta operation.
The operation returns key of created sheet duplicate.
Below is the example of creating a regular report sheet duplicate. The request contains moniker for working with sheets and key of the sheet, for which a duplicate is created. The response contains key of created sheet duplicate.
{
"PrxMetaSheetsDuplicate" :
{
"mon" : "S1!M!S!P1!Sheets",
"tArg" :
{
"k" : "2"
}
}
}
{
"PrxMetaSheetsDuplicateResult" :
{
"k" : "3"
}
}
public static OpItemKey DuplicatePrxSheet(string moniker, ulong sheetKey)
{
var somClient = new SomPortTypeClient(); //Proxy object for operation execution
//Operation execution parameters
var tDup = new PrxMetaSheetsDuplicate()
{
tArg = new OpItemKey()
{
k = sheetKey
},
mon = moniker + "!Sheets"
};
//Create a sheet duplicate
var result = somClient.PrxMetaSheetsDuplicate(tDup);
return result;
}
See also: