bool SetPrxMetaJsPlugin(string mon, PrxMetaJsPlugin tArg)
mon. Moniker for working with regular report sheet.
tArg. Sheet settings to be obtained .
The SetPrxMetaJsPlugin operation changes settings of the regular report sheet created using a JS plugin.
To execute the operation, in the mon field specify regular report instance moniker with the !Sheets!sheet key postfix, and in the tArg field specify sheet settings to be changed. Moniker of regular report instance can be obtained on executing the OpenPrxMeta operation.
The operation results in the logical True if the settings were changed successfully.
Below is the example of changing settings of the sheet created using a JS plugin. The response contains sheet moniker and identifier of JS plugin to be installed. The response contains whether the settings are applied successfully.
{
"SetPrxMetaJsPlugin" :
{
"mon" : "GEMJCGFIGFENFOAEBGOFPOLHGGHEJKBELLCABGHLCFCOJLNN!M!S!PMNHKFJFIGFENFOAENKOBPFBMPBEAOCHEFJCELFBNBEJLDIGK!Sheets!2",
"tArg" :
{
"k" : "0",
"pluginId" : "PP.Ui.Prx.PrxPlugin"
}
}
}
{
"SetPrxMetaJsPluginResult" : "1"
}
public static bool SetPrxMetaJsPlugin(string moniker, string sheetKey, string plugin)
{
var somClient = new SomPortTypeClient(); // Proxy object for operation execution
// Operation execution parameters
var tSet = new SetPrxMetaJsPlugin()
{
tArg = new PrxMetaJsPlugin()
{
pluginId = plugin
},
mon = moniker + "!Sheets!" + sheetKey
};
// Change sheet settings
var result = somClient.SetPrxMetaJsPlugin(tSet);
return result;
}
See also: