bool DataAreaGridRefreshPart(string mon, DataAreaGridRefreshPartArg tArg)
mon. Moniker containing information about the Table visualizer.
tArg. Parameters for refreshing table area.
The DataAreaGridRefreshPart operation refreshes the specified table area.
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.
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.
{
"DataAreaGridRefreshPart" :
{
"mon" : "S1!M!S!P1!DataArea!DataSources!1!DataSourceSlices!1!Views!4",
"tArg" :
{
"options" : "InternalStyle"
}
}
}
{
"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: