PrxMetaSheetsDelete

Syntax

bool PrxMetaSheetsDelete(string mon, OpItemKey tArg)

Parameters

mon. Moniker for working with regular report sheets.

tArg. Operation execution parameters.

Description

The PrxMetaSheetsDelete operation deletes regular report sheet.

Comments

To execute the operation, in the mon field specify moniker of opened regular report instance with the !Sheets postfix to work with sheets, 

and in the tArg field specify key of deleted sheet.

The moniker can be obtained on executing the OpenPrxMeta operation.

The operation returns True if the sheet is deleted successfully.

Example

Below is the example of deleting regular report sheet. The request contains moniker for working with sheets and key of deleted sheet. The response contains whether visualizer is deleted successfully.

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

SOAP response:

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

JSON request:

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

JSON response:

{
"PrxMetaSheetsDeleteResult" : "1"
}
public static bool DelPrxSheet(string moniker, uint sheetKey)
{
var somClient = new SomPortTypeClient(); //Proxy object for operation execution
//Operation execution parameters
var tDel = new PrxMetaSheetsDelete()
{
tArg = new OpItemKey() { k = sheetKey },
mon = moniker + "!Sheets"
};
//Delete sheet
var result = somClient.PrxMetaSheetsDelete(tDel);
return result;
}

See also:

Working With Regular Reports