bool SetDashboardMeta(string mon, DashboardMetaArg tArg)
mon. Moniker of opened information panel instance.
tArg. Operation execution parameters.
The SetDashboardMeta operation changes information panel metadata.
To execute the operation, in the mon field specify moniker of opened information panel instance, and in the tArg.meta field specify updated metadata. In the current implementation the operation is used to change information panel visualization settings. The moniker can be obtained on executing the OpenDashboard operation.
The operation results in the logical true if the metadata was changed successfully.
Below is the example of changing information panel visualization settings. The request contains moniker of opened information panel instance and visualization settings to be determined. The response contains whether changes were applied successfully.
{
"SetDashboardMeta" :
{
"mon" : "NGDHDGCPEHADGOAENOBLDBIDDCDEGILEPLMLPCIIGMNMBLKH!M!S!PLHPAOLCPEHADGOAEAHKONCEDOLHDDIAEGIKMEIJNDDGMDEOI",
"tArg" :
{
"meta" :
{
"viewSettings" : "{"version":"2","isDataAndFieldsVisible":true,"isSettingsVisible":false,"zoom":0.75,"visibleArea":{"x":-200.17760487144778,"y":-93.49644790257105,"height":838,"width":771,"offsetX":560,"offsetY":48}}"
}
}
}
}
{
"SetDashboardMetaResult" : "1"
}
public static bool SetDashboardMeta(string moniker, string newViewSettings)
{
var somClient = new SomPortTypeClient(); // Proxy object for operation execution
// Operation execution parameters
var tSet = new SetDashboardMeta()
{
tArg = new DashboardMetaArg()
{
meta = new DashboardMetaData()
{
viewSettings = newViewSettings
}
},
// Moniker of opened information panel instance
mon = moniker
};
// Change information about information panel
var result = somClient.SetDashboardMeta(tSet);
return result;
}
See also: