DashboardSources DashboardSourcesAdd(string mon, DashboardSourcesAddArg tArg)
mon. Moniker for working with information panel data sources.
tArg. Operation execution parameters.
The DashboardSourcesAdd operation adds data sources for information panel.
To execute the operation, in the mon field specify moniker of information panel instance with the !Sources postfix. The moniker can be obtained on executing the OpenDashboard operation.
The operation results in the updated list of information panel data sources.
Below is the example of adding a data source for information panel. The request contains moniker for working with data sources and key of the repository object that will be used as a data source. The response contains the updated list of information panel data sources.
{
"DashboardSourcesAdd" :
{
"mon" : "NGDHDGCPEHADGOAENOBLDBIDDCDEGILEPLMLPCIIGMNMBLKH!M!S!PLHPAOLCPEHADGOAEAHKONCEDOLHDDIAEGIKMEIJNDDGMDEOI!Sources",
"tArg" :
{
"keys" :
{
"it" : "74966"
}
}
}
}
{
"DashboardSourcesAddResult" :
{
"its" :
{
"it" :
[
{
"k" : "1",
"descr" :
{
"@ds" : "",
"@isShortcut" : "0",
"@isLink" : "0",
"@ver" : "23",
"@hf" : "0",
"i" : "CUBE_SEP",
"n" : "Cube of socio-economic indicators",
"k" : "10206",
"c" : "1281",
"p" : "9698",
"h" : "0",
"hasPrv" : "0",
"ic" : "0",
"trackElementDependents" : "0"
},
"supportRemoveFields" : "0"
},
{
"k" : "2",
"descr" :
{
"@ds" : "",
"@isShortcut" : "0",
"@isLink" : "0",
"@ver" : "1",
"@hf" : "0",
"i" : "CUBE_SEP_COPY8",
"n" : "Aggregation cube",
"k" : "74966",
"c" : "1281",
"p" : "9698",
"h" : "0",
"hasPrv" : "0",
"ic" : "0",
"trackElementDependents" : "0"
},
"supportRemoveFields" : "0"
}
]
}
}
}
public static DashboardSources DashboardSourcesAdd(string moniker, uint[] sourcesKeys)
{
var somClient = new SomPortTypeClient(); // Proxy object for operation execution
// Operation execution parameters
var tAdd = new DashboardSourcesAdd()
{
tArg = new DashboardSourcesAddArg()
{
keys = sourcesKeys
},
// Moniker for working with information panel data sources
mon = moniker + "!Sources"
};
// Adding data sources
var result = somClient.DashboardSourcesAdd(tAdd);
return result;
}
See also: