DashboardSourcesAdd

Syntax

DashboardSources DashboardSourcesAdd(string mon, DashboardSourcesAddArg tArg)

Parameters

mon. Moniker for working with information panel data sources.

tArg. Operation execution parameters.

Description

The DashboardSourcesAdd operation adds data sources for information panel.

Comments

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.

Example

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.

SOAP request:

<s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/">
<s:Body xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<DashboardSourcesAdd xmlns="http://www.fsight.ru/PP.SOM.Som">
  <mon xmlns="">NGDHDGCPEHADGOAENOBLDBIDDCDEGILEPLMLPCIIGMNMBLKH!M!S!PLHPAOLCPEHADGOAEAHKONCEDOLHDDIAEGIKMEIJNDDGMDEOI!Sources</mon>
<tArg xmlns="">
<keys>
  <it>74966</it>
  </keys>
  </tArg>
  </DashboardSourcesAdd>
  </s:Body>
  </s:Envelope>

SOAP response:

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">
<soapenv:Body>
<DashboardSourcesAddResult xmlns="http://www.fsight.ru/PP.SOM.Som" xmlns:q1="http://www.fsight.ru/PP.SOM.Som" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<its xmlns="">
<it>
  <k>1</k>
<descr ds="" isShortcut="0" isLink="0" ver="23" hf="0">
  <i>CUBE_SEP</i>
  <n>Cube of socio-economic indicators</n>
  <k>10206</k>
  <c>1281</c>
  <p>9698</p>
  <h>0</h>
  <hasPrv>0</hasPrv>
  <ic>0</ic>
  <trackElementDependents>0</trackElementDependents>
  </descr>
  <supportRemoveFields>0</supportRemoveFields>
  </it>
<it>
  <k>2</k>
<descr ds="" isShortcut="0" isLink="0" ver="1" hf="0">
  <i>CUBE_SEP_COPY8</i>
  <n>Aggregation cube</n>
  <k>74966</k>
  <c>1281</c>
  <p>9698</p>
  <h>0</h>
  <hasPrv>0</hasPrv>
  <ic>0</ic>
  <trackElementDependents>0</trackElementDependents>
  </descr>
  <supportRemoveFields>0</supportRemoveFields>
  </it>
  </its>
  </DashboardSourcesAddResult>
  </soapenv:Body>
  </soapenv:Envelope>

JSON request:

{
"DashboardSourcesAdd" :
{
"mon" : "NGDHDGCPEHADGOAENOBLDBIDDCDEGILEPLMLPCIIGMNMBLKH!M!S!PLHPAOLCPEHADGOAEAHKONCEDOLHDDIAEGIKMEIJNDDGMDEOI!Sources",
"tArg" :
{
"keys" :
{
"it" : "74966"
}
}
}
}

JSON response:

{
"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:

Working with Information Panel