DashboardSourceRefresh

Syntax

DashboardSources DashboardSourceRefresh(string mon, ItKey tArg)

Parameters

mon. Moniker for working with information panel data sources.

tArg. Key of information panel data source.

Description

The DashboardSourceRefresh operation refreshes information about information panel data source.

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. In the tArg field specify data source key. The required data source key can be obtained in the meta.sources field on executing the GetDashboardMeta operation.

After executing the operation, information about used data source structure is refreshed. The operation results in the updated list of information panel data sources.

Example

Below is the example of refreshing information about information panel data source. The request contains moniker for working with data sources and key of 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">
<DashboardSourceRefresh xmlns="http://www.fsight.ru/PP.SOM.Som">
  <mon xmlns="">MBPHGLNIELAHGOAEOFNHKIGMDHEIDLFEGLIFNOMFJHKJHDJC!M!S!PKAMKOMNIELAHGOAEFBLGJFLKIOMLGAGEIJOOMOPFGMHNENBO!Sources</mon>
<tArg xmlns="">
  <k>1</k>
  </tArg>
  </DashboardSourceRefresh>
  </s:Body>
  </s:Envelope>

SOAP response:

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">
<soapenv:Body>
<DashboardSourceRefreshResult 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>
  <n>Standard cube</n>
<descr ds="" isShortcut="0" isLink="0" ver="4" hf="0">
  <i>OBJ427380</i>
  <n>Standard cube</n>
  <k>427380</k>
  <c>1281</c>
  <p>427328</p>
  <h>0</h>
  <hasPrv>0</hasPrv>
  <ic>0</ic>
  <trackElementDependents>0</trackElementDependents>
  </descr>
  <supportRemoveFields>0</supportRemoveFields>
  <isDefaultDestination>1</isDefaultDestination>
  <hasParams>0</hasParams>
  </it>
<it>
  <k>2</k>
  <n>For aggregation</n>
<descr ds="" isShortcut="0" isLink="0" ver="4" hf="0">
  <i>OBJ427380</i>
  <n>Standard cube</n>
  <k>427380</k>
  <c>1281</c>
  <p>427328</p>
  <h>0</h>
  <hasPrv>0</hasPrv>
  <ic>0</ic>
  <trackElementDependents>0</trackElementDependents>
  </descr>
  <supportRemoveFields>0</supportRemoveFields>
  <isDefaultDestination>0</isDefaultDestination>
  <hasParams>0</hasParams>
  </it>
  </its>
  </DashboardSourceRefreshResult>
  </soapenv:Body>
  </soapenv:Envelope>

JSON request:

{
"DashboardSourceRefresh" :
{
"mon" : "MBPHGLNIELAHGOAEOFNHKIGMDHEIDLFEGLIFNOMFJHKJHDJC!M!S!PKAMKOMNIELAHGOAEFBLGJFLKIOMLGAGEIJOOMOPFGMHNENBO!Sources",
"tArg" :
{
"k" : "1"
}
}
}

JSON response:

{
"DashboardSourceRefreshResult" :
{
"its" :
{
"it" :
[
{
"k" : "1",
"n" : "Standard cube",
"descr" :
{
"@ds" : "",
"@isShortcut" : "0",
"@isLink" : "0",
"@ver" : "4",
"@hf" : "0",
"i" : "OBJ427380",
"n" : "Standard cube",
"k" : "427380",
"c" : "1281",
"p" : "427328",
"h" : "0",
"hasPrv" : "0",
"ic" : "0",
"trackElementDependents" : "0"
},
"supportRemoveFields" : "0",
"isDefaultDestination" : "1",
"hasParams" : "0"
},
{
"k" : "2",
"n" : "For aggregation",
"descr" :
{
"@ds" : "",
"@isShortcut" : "0",
"@isLink" : "0",
"@ver" : "4",
"@hf" : "0",
"i" : "OBJ427380",
"n" : "Standard cube",
"k" : "427380",
"c" : "1281",
"p" : "427328",
"h" : "0",
"hasPrv" : "0",
"ic" : "0",
"trackElementDependents" : "0"
},
"supportRemoveFields" : "0",
"isDefaultDestination" : "0",
"hasParams" : "0"
}
]
}
}
}
public static DashboardSources DashboardSourceRefresh(string moniker, uint sourceKey)
{
var somClient = new SomPortTypeClient(); // Proxy object for operation execution
// Operation execution parameters
var tSet = new DashboardSourceRefresh()
{
tArg = new ItKey()
{
k = sourceKey
},
mon = moniker + "!Sources"
};
// Refresh data source
var result = somClient.DashboardSourceRefresh(tSet);
return result;
}

See also:

Working with Information Panels