SetPrxStyleSheet

Syntax

bool SetPrxStyleSheet(string mon, ItKey tKey)

Parameters

mon. Moniker of opened regular report instance.

tKey. Key of the repository object that is a styles table.

Description

The SetPrxStyleSheet operation connects a repository styles table to a regular report.

Comments

To execute the operation, in the mon field specify moniker of opened regular report instance, and in the tKey field specify key of the repository object that is a styles table. The regular report should be opened for edit. The moniker can be obtained after executing the OpenPrxMeta operation.

The operation results in the logical True if the styles table was connected to the regular report successfully.

Example

Below is the example of connecting an external styles table to a regular report. The request contains moniker of opened regular report instance and repository styles table key. The response contains whether the styles table is connected 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">
<SetPrxStyleSheet xmlns="http://www.fsight.ru/PP.SOM.Som">
  <mon xmlns="">BHGFKLHCBNDPFOAEABNELEOBLJJGGNLEBKOPJFEJDMKMADKA!M!S!PDBPIEBICBNDPFOAELDHONAGEJFGJIEMEGINMKELIDHFLHMIB</mon>
<tKey xmlns="">
  <k>317260</k>
  </tKey>
  </SetPrxStyleSheet>
  </s:Body>
  </s:Envelope>

SOAP response:

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

JSON request:

{
"SetPrxStyleSheet" :
{
"mon" : "BHGFKLHCBNDPFOAEABNELEOBLJJGGNLEBKOPJFEJDMKMADKA!M!S!PDBPIEBICBNDPFOAELDHONAGEJFGJIEMEGINMKELIDHFLHMIB",
"tKey" :
{
"k" : "317260"
}
}
}

JSON response:

{
"SetPrxStyleSheetResult" : "1"
}
public static bool SetPrxStyleSheet(string moniker, uint tabStyleKey)
{
var somClient = new SomPortTypeClient(); // Proxy object for operation execution
// Operation execution parameters
var tSet = new SetPrxStyleSheet()
{
tKey = new ItKey() { k = tabStyleKey },
mon = moniker
};
// Connect styles table
var result = somClient.SetPrxStyleSheet(tSet);
return result;
}

See also:

Working with Regular Reports