PrxMetaOptions GetPrxMetaOptions(string mon, PrxMetaOptions tArg)
mon. Moniker to work with regular report settings.
tArg. Regular report settings to get.
The GetPrxMetaOptions operation gets regular report settings.
To execute the operation, in the mon field specify moniker of regular report instance with the !Options postfix. In the tArg field set empty values or default values for the fields, which values should be obtained. The moniker can be obtained on executing the OpenPrxMeta operation.
The operation returns requested settings.
Below is the example of getting regular report settings. The request contains moniker for working with regular report settings and a list of the fields, which values should be obtained. The response contains requested information.
{
"GetPrxMetaOptions" :
{
"mon" : "S1!M!S!P1!Options",
"tArg" :
{
"displayTabs" : "false",
"updateSettings" : ""
}
}
}
{
"GetPrxMetaOptionsResult" :
{
"displayTabs" : "1",
"updateSettings" :
{
"updateByIntervalEnabled" : "0",
"autoUpdateByData" : "1",
"AutoUpdateInterval" : "5",
"autoUpdateIntervalUnits" : "Minutes"
}
}
}
public static PrxMetaOptions GetPrxMetaOptions(string moniker)
{
var somClient = new SomPortTypeClient(); //Proxy object for operation execution
//Operation execution parameters
var tGet = new GetPrxMetaOptions()
{
tArg = new PrxMetaOptions()
{
displayTabs = new bool(),
updateSettings = new ViewerUpdateSettings()
},
mon = moniker + "!Options"
};
//Get regular report settings
var result = somClient.GetPrxMetaOptions(tGet);
return result;
}
See also: