bool SetEaxGridHeaderProperties(string mon, EaxGridHeaderProperties tArg)
mon. Table header moniker, for which a property should be obtained.
tArg. Header properties that should be changed.
The SetEaxGridHeaderProperties operation changes table visualizer header properties.
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:
TopProp. Table heading.
LeftProp. Table sidehead.
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.
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.
{
"SetEaxGridHeaderProperties" :
{
"mon" : "FCJKECDEBBGOFOAENKBHCHAOHGPDFHHEPJAKMBIGJNLFCJOB!M!S!PBOIFFGDEBBGOFOAEGDIGBMJIIJJDBBDEFLPHAOFEMBCDFFIK!DataArea!Views!1!Settings!LeftProp",
"tArg" :
{
"indent" : "true",
"hierarchical" : "true"
}
}
}
{
"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: