bool PrxMetaSheetsDelete(string mon, OpItemKey tArg)
mon. Moniker for working with regular report sheets.
tArg. Operation execution parameters.
The PrxMetaSheetsDelete operation deletes regular report sheet.
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.
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.
{
"PrxMetaSheetsDelete" :
{
"mon" : "S1!M!S!P1!Sheets",
"tArg" :
{
"k" : "2"
}
}
}
{
"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: