PrxMetaJsPlugin GetPrxMetaJsPlugin(string mon, PrxMetaJsPlugin tArg)
mon. Moniker for working with regular report sheet.
tArg. Sheet settings to be obtained.
The GetPrxMetaJsPlugin operation gets 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 obtained. The regular report instance moniker can be obtained on executing the OpenPrxMeta operation. In the tArg field specify empty values or default values for the fields, which values should be obtained.
Below is the example of getting settings of the sheet created using a JS plugin. The request contains sheet moniker and empty values of the fields, for which the specified settings should be obtained. The response contains the obtained information.
{
"GetPrxMetaJsPlugin" :
{
"mon" : "GEMJCGFIGFENFOAEBGOFPOLHGGHEJKBELLCABGHLCFCOJLNN!M!S!PMNHKFJFIGFENFOAENKOBPFBMPBEAOCHEFJCELFBNBEJLDIGK!Sheets!2",
"tArg" :
{
"k" : "-1",
"n" : "",
"pluginId" : ""
}
}
}
{
"GetPrxMetaJsPluginResult" :
{
"k" : "2",
"n" : "Sheet with plugin",
"pluginId" : "PP.Ui.Prx.TestPrxPlugin"
}
}
public static PrxMetaJsPlugin GetPrxMetaJsPlugin(string moniker, string sheetKey)
{
var somClient = new SomPortTypeClient(); // Proxy object for operation execution
// Operation execution parameters
var tGet = new GetPrxMetaJsPlugin()
{
tArg = new PrxMetaJsPlugin()
{
pluginId = string.Empty,
k = uint.MaxValue,
n = string.Empty
},
mon = moniker + "!Sheets!" + sheetKey
};
// Get sheet settings
var result = somClient.GetPrxMetaJsPlugin(tGet);
return result;
}
See also: