PrxMetaSheetsDuplicate

Syntax

OpItemKey PrxMetaSheetsDuplicate(string mon, OpItemKey tArg)

Parameters

mon. Moniker for working with regular report sheets.

tArg. Key of duplicated regular report sheet.

Description

The PrxMetaSheetsDuplicate operation creates a regular report sheet duplicate.

Comments

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.

Example

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.

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

SOAP response:

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

JSON request:

{
"PrxMetaSheetsDuplicate" :
{
"mon" : "S1!M!S!P1!Sheets",
"tArg" :
{
"k" : "2"
}
}
}

JSON response:

{
"PrxMetaSheetsDuplicateResult" :
{
"k" : "3"
}
}
public static OpItemKey DuplicatePrxSheet(string moniker, uint 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:

Working With Regular Reports