PrxMetaControlsDelete

Syntax

bool PrxMetaControlsDelete(string mon, OpItemKey tArg)

Parameters

mon. Moniker for working with regular report controls.

tArg. Key of deleted control.

Description

The PrxMetaControlsDelete operation deletes regular report control.

Comments

To execute the operation, in the mon field specify regular report instance moniker with the !Controls postfix to work with controls, and in the tArg field specify key of deleted control. The moniker can be obtained on executing the OpenPrxMeta operation.

The operation returns True if the control is deleted successfully.

Example

Below is the example of deleting regular report control. The request contains moniker for working with controls and key of deleted control. 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">
<PrxMetaControlsDelete xmlns="http://www.fsight.ru/PP.SOM.Som">
  <mon xmlns="">S1!M!S!P1!Controls</mon>
<tArg xmlns="">
  <k>2</k>
  </tArg>
  </PrxMetaControlsDelete>
  </s:Body>
  </s:Envelope>

SOAP response:

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

JSON request:

{
"PrxMetaControlsDelete" :
{
"mon" : "S1!M!S!P1!Controls",
"tArg" :
{
"k" : "2"
}
}
}

JSON response:

{
"PrxMetaControlsDeleteResult" : "1"
}
public static bool DeletePrxControl(string moniker, uint controlKey)
{
var somClient = new SomPortTypeClient(); //Proxy object for operation execution
//Operation execution parameters
var tDel = new PrxMetaControlsDelete()
{
tArg = new OpItemKey()
{
k = controlKey
},
mon = moniker + "!Controls"
};
//Delete control
var result = somClient.PrxMetaControlsDelete(tDel);
return result;
}

See also:

Working With Regular Reports