EaxGridHeaderSettings GetEaxGridHeaderSettings(string mon, EaxGridHeaderSettings tArg)
mon. Moniker of the table header, for which settings should be obtained.
tArg. Header settings that should be obtained.
The GetEaxGridHeaderSettings operation gets table visualizer header settings.
To execute the operation, in the mon field specify regular report instance moniker with the DataArea!Views!table key!Settings!header type postfix. The following is specified as a header type:
TopSettings. Table heading.
LeftSettings. Table sidehead.
The regular report instance moniker can be obtained on executing the OpenPrxMeta operation. In the tArg field specify empty values or default values for the fields, which values should be obtained.
The operation results in the obtained table header settings.
Below is the example of getting table sidehead settings. The request contains sidehead moniker and the list of obtained settings. The response contains the obtained settings values.
{
"GetEaxGridHeaderSettings" :
{
"mon" : "FCJKECDEBBGOFOAENKBHCHAOHGPDFHHEPJAKMBIGJNLFCJOB!M!S!PBOIFFGDEBBGOFOAEGDIGBMJIIJJDBBDEFLPHAOFEMBCDFFIK!DataArea!Views!1!Settings!LeftSettings",
"tArg" :
{
"displaySortIcons" : "false",
"hierarchyIndent" : "0",
"placement" : "0"
}
}
}
{
"GetEaxGridHeaderSettingsResult" :
{
"displaySortIcons" : "0",
"hierarchyIndent" : "-1",
"placement" : "2"
}
}
public static EaxGridHeaderSettings GetEaxGridHeaderSettings(string moniker, uint viewKey)
{
var somClient = new SomPortTypeClient(); // Proxy object for operation execution
// Operation execution parameters
var tGet = new GetEaxGridHeaderSettings()
{
tArg = new EaxGridHeaderSettings()
{
displaySortIcons = new bool(),
hierarchyIndent = new double(),
placement = new int()
},
mon = moniker + "!DataArea!Views!" + viewKey.ToString() + "!Settings!LeftSettings"
};
// Get header settings
var result = somClient.GetEaxGridHeaderSettings(tGet);
return result;
}
See also: