SetTabTableStyle

Syntax

bool SetTabTableStyle(string mon, TabTableStyle tArg)

Parameters

mon. Moniker for working with table area formatting style.

tArg. Operation execution parameters.

Description

The SetTabTableStyle operation sets and clears standard style in table area.

Comments

To execute the operation, in the mon field specify table area moniker. The moniker is specified in the following format: Regular report instance moniker!DataArea!DataSources!data source key!DataSourceSlices!slice key!Views!table key!EaxTableStyle!TableStyle.

The operation results in the logical True if the style changed successfully.

Example

Below is the example of setting a standard style for a table data area. The request contains moniker for working with table data area styles and the style to be set. The response contains whether the style is applied successfully.

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">
<SetTabTableStyle xmlns="http://www.fsight.ru/PP.SOM.Som">
  <mon xmlns="">HKJBPOFGHFLNFOAEPCMMOLCIPENIILFEJLJPJINGDHAMFJHO!M!S!PKIBJJDGGHFLNFOAELFBDMPPAAHADDJBECIFBLMKKFMCDJAFG!DataArea!DataSources!1!DataSourceSlices!1!Views!1!EaxTableStyle!TableStyle</mon>
<tArg xmlns="">
  <Name />
  <PredefinedStyle>ExtRedStriped</PredefinedStyle>
  </tArg>
  </SetTabTableStyle>
  </s:Body>
  </s:Envelope>

SOAP response:

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

JSON request:

{
"SetTabTableStyle" :
{
"mon" : "HKJBPOFGHFLNFOAEPCMMOLCIPENIILFEJLJPJINGDHAMFJHO!M!S!PKIBJJDGGHFLNFOAELFBDMPPAAHADDJBECIFBLMKKFMCDJAFG!DataArea!DataSources!1!DataSourceSlices!1!Views!1!EaxTableStyle!TableStyle",
"tArg" :
{
"Name" : "",
"PredefinedStyle" : "ExtRedStriped"
}
}
}

JSON response:

{
"SetTabTableStyleResult" : "1"
}
public static bool SetTabTableStyle(string moniker, uint sourceKey, uint sliceKey, uint viewKey, TabTablePredefinedStyle setStyle)
{
var somClient = new SomPortTypeClient(); // Proxy object for operation execution
// Operation execution parameters
var tSet = new SetTabTableStyle()
{
mon = moniker + "!DataArea!DataSources!" + sourceKey.ToString() + "!DataSourceSlices!" + sliceKey.ToString() + "!Views!" + viewKey.ToString() + "!EaxTableStyle!TableStyle",
tArg = new TabTableStyle()
{
Name = "",
PredefinedStyle = setStyle
}
};
// Change table area style
var result = somClient.SetTabTableStyle(tSet);
return result;
}

See also:

Table: Operations