ViewerUpdateSettings GetUpdateSettings(string mon)
mon. Moniker to work with automatic update parameters.
The GetUpdateSettings operation gets parameters of regular report automatic update.
To execute the operation, in the mon field specify moniker of regular report instance with the !Options!UpdateSettings postfix. The moniker can be obtained on executing the OpenPrxMeta operation.
The operation returns specified parameters of regular report automatic update.
See below the example of getting regular report automatic update parameters. Th request sends moniker to work with parameters of automatic update. The response contains requested information.
{
"GetUpdateSettings" :
{
"mon" : "S1!M!S!P1!Options!UpdateSettings"
}
}
{
"GetUpdateSettingsResult" :
{
"updateByIntervalEnabled" : "0",
"autoUpdateByData" : "1",
"AutoUpdateInterval" : "5",
"autoUpdateIntervalUnits" : "Minutes"
}
}
public static ViewerUpdateSettings GetUpdateSettings(string moniker)
{
var somClient = new SomPortTypeClient(); //Прокси-объект для выполнения операций
//Operation execution parameters
var tGet = new GetUpdateSettings()
{
mon = moniker + "!Options!UpdateSettings"
};
//Get parameters of regular report automatic update
var result = somClient.GetUpdateSettings(tGet);
return result;
}
See also: