SetPrxMetaOptions

Syntax

bool SetPrxMetaOptions(string mon, PrxMetaOptions tArg)

Parameters

mon. Moniker to work with regular report settings.

tArg. Regular report settings to be changed.

Description

The SetPrxMetaOptions operation changes regular report settings.

Comments

To execute the operation, in the mon field specify moniker of regular report instance with the !Options postfix. In the tArg field set values for settings to be changed. The moniker can be obtained on executing the OpenPrxMeta operation.

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

Example

Below is the example of changing regular report settings. The request contains moniker to work with regular report settings and attribute whether it is required to hide sheet tabs. The response contains whether changes are 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">
<SetPrxMetaOptions xmlns="http://www.fsight.ru/PP.SOM.Som">
  <mon xmlns="">S1!M!S!P1!Options</mon>
<tArg xmlns="">
  <displayTabs>false</displayTabs>
  </tArg>
  </SetPrxMetaOptions>
  </s:Body>
  </s:Envelope>

SOAP response:

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

JSON request:

{
"SetPrxMetaOptions" :
{
"mon" : "S1!M!S!P1!Options",
"tArg" :
{
"displayTabs" : "false"
}
}
}

JSON response:

{
"SetPrxMetaOptionsResult" : "1"
}
public static bool SetPrxMetaOptions(string moniker)
{
var somClient = new SomPortTypeClient(); //Proxy object for operation execution
//Operation execution parameters
var tSet = new SetPrxMetaOptions()
{
tArg = new PrxMetaOptions()
{
displayTabs = false,
},
mon = moniker + "!Options"
};
//Change regular report settings
var result = somClient.SetPrxMetaOptions(tSet);
return result;
}

See also:

Working with Regular Reports