GetTabProtection

Syntax

GetTabProtectionResult GetTabProtection(TabSheetId tTabSheet, TabProtectionArg tArg)

Parameters

tTabSheet. Sheet table moniker.

tArg. Operation execution parameters.

Description

The GetTabProtection operation gets information about regular report sheet table protection.

Comments

To execute the operation, in the tTabSheet field specify table moniker, and in the tArg field specify parameters of getting protection information. The moniker is specified in the following format: Regular report instance moniker!sheet key. In the tArg.protection field specify empty value.

The operation results in information about sheet table protection.

Example

Below is the example of getting information about regular report sheet table protection. The request contains sheet moniker. The response contains the obtained information about set protection.

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">
<GetTabProtection xmlns="http://www.fsight.ru/PP.SOM.Som">
<tTabSheet xmlns="">
  <id>NIKLFCDENADGGOAEENCHFLADKBGCAHKEIJNDAILBBLMMBJMM!M!S!POJMOCFDENADGGOAELFPMGJIFMKJKLIFEMIAAHNPBJKILIHJL!Sheets!1</id>
  </tTabSheet>
<tArg xmlns="">
  <protection>0</protection>
  </tArg>
  </GetTabProtection>
  </s:Body>
  </s:Envelope>

SOAP response:

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

JSON request:

{
"GetTabProtection" :
{
"tTabSheet" :
{
"id" : "NIKLFCDENADGGOAEENCHFLADKBGCAHKEIJNDAILBBLMMBJMM!M!S!POJMOCFDENADGGOAELFPMGJIFMKJKLIFEMIAAHNPBJKILIHJL!Sheets!1"
},
"tArg" :
{
"protection" : "0"
}
}
}

JSON response:

{
"GetTabProtectionResult" :
{
"tabProtection" :
{
"protection" : "12739"
}
}
}
public static GetTabProtectionResult GetTabProtection(string moniker, string sheetKey)
{
var somClient = new SomPortTypeClient(); // Proxy object for operation execution
// Operation execution parameters
var tGet = new GetTabProtection()
{

tArg = new TabProtectionArg() { protection = new int() },
tTabSheet = new TabSheetId() { id = moniker + "!Sheets!" + sheetKey }
};
// Get information about sheet protection
var result = somClient.GetTabProtection(tGet);
return result;
}

See also:

Working with Regular Reports