bool SetEaxGridHeaderSettings(string mon, EaxGridHeaderSettings tArg)
mon. Moniker of the table header, for which settings should be obtained.
tArg. Header settings that should be determined.
The SetEaxGridHeaderSettings operation changes 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 values of settings that should be determined.
The operation results in the logical True if the settings were changed successfully.
Below is the example of changing table sidehead settings. The request contains sidehead moniker and settings values to be determined. The response contains whether decision tree block attributes are successfully changed.
{
"SetEaxGridHeaderSettings" :
{
"mon" : "FCJKECDEBBGOFOAENKBHCHAOHGPDFHHEPJAKMBIGJNLFCJOB!M!S!PBOIFFGDEBBGOFOAEGDIGBMJIIJJDBBDEFLPHAOFEMBCDFFIK!DataArea!Views!1!Settings!LeftSettings",
"tArg" :
{
"displaySortIcons" : "true",
"hierarchyIndent" : "2.5",
"placement" : "1"
}
}
}
{
"SetEaxGridHeaderSettingsResult" : "1"
}
public static bool SetEaxGridHeaderSettings(string moniker, uint viewKey)
{
var somClient = new SomPortTypeClient(); // Proxy object for operation execution
// Operation execution parameters
var tSet = new SetEaxGridHeaderSettings()
{
tArg = new EaxGridHeaderSettings()
{
displaySortIcons = true,
hierarchyIndent = 2.5,
placement = 1
},
mon = moniker + "!DataArea!Views!" + viewKey.ToString() + "!Settings!LeftSettings"
};
// Change header settings
var result = somClient.SetEaxGridHeaderSettings(tSet);
return result;
}
See also: