GetTabProtectionResult GetTabProtection(TabSheetId tTabSheet, TabProtectionArg tArg)
tTabSheet. Sheet table moniker.
tArg. Operation execution parameters.
The GetTabProtection operation gets information about regular report sheet table protection.
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.
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.
{
"GetTabProtection" :
{
"tTabSheet" :
{
"id" : "NIKLFCDENADGGOAEENCHFLADKBGCAHKEIJNDAILBBLMMBJMM!M!S!POJMOCFDENADGGOAELFPMGJIFMKJKLIFEMIAAHNPBJKILIHJL!Sheets!1"
},
"tArg" :
{
"protection" : "0"
}
}
}
{
"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: