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