OpItemKey PrxMetaControlsAdd(string mon, PrxMetaControlsAddArg tArg)
mon. Moniker for working with regular report controls.
tArg. Parameters for creating a control.
The PrxMetaControlsAdd operation creates a 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 parameters for creating a new control. The moniker can be obtained on executing the OpenPrxMeta operation.
The operation returns key of created control. To set parameters of control, use the SetPrxMeta operation.
Below is the example of creating a regular report control. The request contains moniker for working with controls and key of the sheet, on which a control should be created. The response contains the key of the created control.
{
"PrxMetaControlsAdd" :
{
"mon" : "S1!M!S!P1!Controls",
"tArg" :
{
"sheet" : "2"
}
}
}
{
"PrxMetaControlsAddResult" :
{
"k" : "2"
}
}
public static OpItemKey AddPrxControl(string moniker, uint sheetKey)
{
var somClient = new SomPortTypeClient(); //Proxy object for operation execution
//Operation execution parameters
var tAdd = new PrxMetaControlsAdd()
{
tArg = new PrxMetaControlsAddArg()
{
sheet = sheetKey
},
mon = moniker + "!Controls"
};
//Create a control
var result = somClient.PrxMetaControlsAdd(tAdd);
return result;
}
See also: