DataAreaGridRefreshPart

Syntax

bool DataAreaGridRefreshPart(string mon, DataAreaGridRefreshPartArg tArg)

Parameters

mon. Moniker containing information about the Table visualizer.

tArg. Parameters for refreshing table area.

Description

The DataAreaGridRefreshPart operation refreshes the specified table area.

Comments

The operation is used to work with the Table visualizer that displays data of analytical data area. To execute the operation, in the mon field specify regular report instance moniker with the !DataArea!DataSources!<data source key>!DataSourceSlices!<slice key>!Views!<table key> postfix to work with visualizer, and in the tArg.options field specify the table area that should be refreshed.

The moniker can be obtained on executing the OpenPrxMeta operation.

The operation returns True if the table area is refreshed successfully.

Example

Below is the example of refreshing the table displaying data of analytical data area. The request contains table moniker and the area that should be refreshed. The response contains whether the area is refreshed successfully.

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">
<DataAreaGridRefreshPart xmlns="http://www.fsight.ru/PP.SOM.Som">
  <mon xmlns="">S1!M!S!P1!DataArea!DataSources!1!DataSourceSlices!1!Views!4</mon>
<tArg xmlns="">
  <options>InternalStyle</options>
  </tArg>
  </DataAreaGridRefreshPart>
  </s:Body>
  </s:Envelope>

SOAP response:

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">
<soapenv:Body>
  <DataAreaGridRefreshPartResult 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">1</DataAreaGridRefreshPartResult>
  </soapenv:Body>
  </soapenv:Envelope>

JSON request:

{
"DataAreaGridRefreshPart" :
{
"mon" : "S1!M!S!P1!DataArea!DataSources!1!DataSourceSlices!1!Views!4",
"tArg" :
{
"options" : "InternalStyle"
}
}
}

JSON response:

{
"DataAreaGridRefreshPartResult" : "1"
}
public static bool RefreshGridPart(string moniker, uint sourceKey, uint sliceKey, uint viewKey)
{
var somClient = new SomPortTypeClient(); //Proxy object for operation execution
//Operation execution parameters
var tRef = new DataAreaGridRefreshPart()
{
tArg = new DataAreaGridRefreshPartArg()
{
options = EaxGridRefreshPart.InternalStyle
},
mon = moniker + "!DataArea!DataSources!" + sourceKey.ToString() + "!DataSourceSlices!" + sliceKey.ToString() + "!Views!" + viewKey.ToString()
};
//Refresh part of table
var result = somClient.DataAreaGridRefreshPart(tRef);
return result;
}

See also:

Working With Regular Reports