bool DashboardCancelRelations(string mon)
mon. Information panel data source moniker.
The DashboardCancelRelations operation cancels the changes made in settings of the relations used by calculated facts.
To execute the operation, in the mon field specify moniker of opened information panel instance with the !Sources!data source key postfix. The moniker can be obtained on executing the OpenDashboard operation.
The operation results in the logical true if changes were canceled successfully.
Below is the example of canceling the changes made in relation settings. The request contains moniker of information panel data source. The response contains whether changes are successfully canceled.
{
"DashboardCancelRelations" :
{
"mon" : "LKACHLFPHPFFGOAEFAJMIHOHCKLEPLKEEIENANDBMODOBJMH!M!S!PHOONDMFPHPFFGOAEGILOHDKLDDEDFAAEEJAAJAMKHGKPJBCK!Sources!1"
}
}
{
"DashboardCancelRelationsResult" : "1"
}
public static bool DashboardCancelRelations(string moniker, uint sourceKey)
{
var somClient = new SomPortTypeClient(); // Proxy object for operation execution
// Operation execution parameters
var tCancel = new DashboardCancelRelations()
{
// Moniker for working with relations
mon = moniker + "!Sources!" + sourceKey
};
// Undo changes in relation settings
var result = somClient.DashboardCancelRelations(tCancel);
return result;
}
See also: