bool PrxMetaControlsDelete(string mon, OpItemKey tArg)
mon. Moniker for working with regular report controls.
tArg. Key of deleted control.
The PrxMetaControlsDelete operation deletes regular report control.
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.
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.
{
"PrxMetaControlsDelete" :
{
"mon" : "S1!M!S!P1!Controls",
"tArg" :
{
"k" : "2"
}
}
}
{
"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: