SetEaxGridHeaderProperties

Syntax

bool SetEaxGridHeaderProperties(string mon, EaxGridHeaderProperties tArg)

Parameters

mon. Table header moniker, for which a property should be obtained.

tArg. Header properties that should be changed.

Description

The SetEaxGridHeaderProperties operation changes table visualizer header properties.

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 properties values that should be set.

The operation results in the logical True if properties were changed successfully.

Example

Below is the example of changing table sidehead properties. The request contains sidehead moniker and properties values to be set. 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">
<SetEaxGridHeaderProperties xmlns="http://www.fsight.ru/PP.SOM.Som">
  <mon xmlns="">FCJKECDEBBGOFOAENKBHCHAOHGPDFHHEPJAKMBIGJNLFCJOB!M!S!PBOIFFGDEBBGOFOAEGDIGBMJIIJJDBBDEFLPHAOFEMBCDFFIK!DataArea!Views!1!Settings!LeftProp</mon>
<tArg xmlns="">
  <indent>true</indent>
  <hierarchical>true</hierarchical>
  </tArg>
  </SetEaxGridHeaderProperties>
  </s:Body>
  </s:Envelope>

SOAP response:

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

JSON request:

{
"SetEaxGridHeaderProperties" :
{
"mon" : "FCJKECDEBBGOFOAENKBHCHAOHGPDFHHEPJAKMBIGJNLFCJOB!M!S!PBOIFFGDEBBGOFOAEGDIGBMJIIJJDBBDEFLPHAOFEMBCDFFIK!DataArea!Views!1!Settings!LeftProp",
"tArg" :
{
"indent" : "true",
"hierarchical" : "true"
}
}
}

JSON response:

{
"SetEaxGridHeaderPropertiesResult" : "1"
}
public static bool SetEaxGridHeaderProperties(string moniker, uint viewKey)
{
var somClient = new SomPortTypeClient(); // Proxy object for operation execution
// Operation execution parameters
var tSet = new SetEaxGridHeaderProperties()
{
tArg = new EaxGridHeaderProperties()
{
hierarchical = true,
indent = true
},
mon = moniker + "!DataArea!Views!" + viewKey.ToString() + "!Settings!LeftProp"
};
// Change header properties
var result = somClient.SetEaxGridHeaderProperties(tSet);
return result;
}

See also:

Working With Regular Reports