SetEaxGridHeaderSettings

Syntax

bool SetEaxGridHeaderSettings(string mon, EaxGridHeaderSettings tArg)

Parameters

mon. Moniker of the table header, for which settings should be obtained.

tArg. Header settings that should be determined.

Description

The SetEaxGridHeaderSettings operation changes table visualizer header settings.

Comments

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:

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.

Example

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.

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">
<SetEaxGridHeaderSettings xmlns="http://www.fsight.ru/PP.SOM.Som">
  <mon xmlns="">FCJKECDEBBGOFOAENKBHCHAOHGPDFHHEPJAKMBIGJNLFCJOB!M!S!PBOIFFGDEBBGOFOAEGDIGBMJIIJJDBBDEFLPHAOFEMBCDFFIK!DataArea!Views!1!Settings!LeftSettings</mon>
<tArg xmlns="">
  <displaySortIcons>true</displaySortIcons>
  <hierarchyIndent>2.5</hierarchyIndent>
  <placement>1</placement>
  </tArg>
  </SetEaxGridHeaderSettings>
  </s:Body>
  </s:Envelope>

SOAP response:

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

JSON request:

{
"SetEaxGridHeaderSettings" :
{
"mon" : "FCJKECDEBBGOFOAENKBHCHAOHGPDFHHEPJAKMBIGJNLFCJOB!M!S!PBOIFFGDEBBGOFOAEGDIGBMJIIJJDBBDEFLPHAOFEMBCDFFIK!DataArea!Views!1!Settings!LeftSettings",
"tArg" :
{
"displaySortIcons" : "true",
"hierarchyIndent" : "2.5",
"placement" : "1"
}
}
}

JSON response:

{
"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:

Working With Regular Reports