string DashboardFormulaEditorEdit(string mon)
mon. Information panel element moniker.
The DashboardFormulaEditorEdit operation opens information panel element or data model element for edit in the expression editor.
The operation starts editing SQL queries, calculated field expressions, data model table filtering. To execute the operation, in the mon field specify moniker of element that should be edited.
The moniker is created from moniker of opened information panel instance or data model with adding the following postfixes:
!Sources!Queries!Elements!query key!Ufe. To work with SQL queries.
!Fields!field key!Ufe. To work with calculated fields.
!Ufe. To set up filtering in data model table.
The operation results in the expression that should be edited.
Below is the example of editing SQL query in data model. The request contains moniker of SQL query saved in data model. The response contains the current SQL query text.
{
"DashboardFormulaEditorEdit" :
{
"mon" : "JGFBABFGGBCDGOAEBMHDIAHPJIKJBODEGIEMDGCEMLPABPHA!M!S!PAKKBPCFGGBCDGOAEPJJNAKJDEPCJOIOEJLMIGOFHBOBCOFGO!Sources!Queries!Elements!1!Ufe"
}
}
{
"DashboardFormulaEditorEditResult" : "select * from t_log"
}
public static string DashboardFormulaEditorEdit(string moniker, uint elementkey)
{
var somClient = new SomPortTypeClient(); // Proxy object for operation execution
// Operation execution parameters
var tEdit = new DashboardFormulaEditorEdit()
{
// Element moniker
mon = moniker + "!Sources!Queries!Elements!" + elementkey + "!Ufe"
};
// Edit expression
var result = somClient.DashboardFormulaEditorEdit(tEdit);
return result;
}
See also: