bool DashboardRelationshipsDelete(string mon, OpItemKey tArg)
mon. Moniker for working with the relations used in calculated fact formulas.
tArg. Key of deleted relation.
The DashboardRelationshipsDelete operation deletes relation.
To execute the operation, in the mon field specify moniker of opened information panel instance with the !Sources!data source key!Relationships postfix, and in the tArg.k field specify the key of deleted relation. The moniker can be obtained on executing the OpenDashboard operation. The key can be obtained after executing the GetDashboardRelationships or DashboardRelationshipsAdd operation.
The operation results in the logical true if the relation was deleted successfully.
Below is the example of deleting the relation. The request contains the moniker for working with relations and the key of deleted relation. The response contains whether deletion was successful.
{
"DashboardRelationshipsDelete" :
{
"mon" : "LKACHLFPHPFFGOAEFAJMIHOHCKLEPLKEEIENANDBMODOBJMH!M!S!PHOONDMFPHPFFGOAEGILOHDKLDDEDFAAEEJAAJAMKHGKPJBCK!Sources!1!Relationships",
"tArg" :
{
"k" : "4"
}
}
}
{
"DashboardRelationshipsDeleteResult" : "1"
}
public static bool DashboardRelationshipsDelete(string moniker, uint sourceKey, uint relKey)
{
var somClient = new SomPortTypeClient(); // Proxy object for operation execution
// Operation execution parameters
var tDel = new DashboardRelationshipsDelete()
{
tArg = new OpItemKey() { k = relKey },
// Moniker for working with relations
mon = moniker + "!Sources!" + sourceKey + "!Relationships"
};
// Delete relation
var result = somClient.DashboardRelationshipsDelete(tDel);
return result;
}
See also: