TabValidateFormulaArgument

Syntax

bool TabValidateFormulaArgument(TabSheetId tTabSheet, string arg)

Parameters

tTabSheet. Table moniker.

arg. A list of arguments that should be checked if it should be used in functions.

Description

The TabValidateFormulaArgument operation checks arguments used in functions.

Comments

To execute the operation, in the tTabSheet field specify table moniker, and in the arg field specify the list of arguments to be checked. The moniker can be based on the moniker of opened object instance, the table of which is worked with, following the rules:

The operation results in the logical True if arguments can be used in functions, and False if the list of arguments is incorrect.

Example

Below is the example of checking arguments that can be sent to functions. The request contains the table moniker and the list of arguments. The response contains whether arguments can be used in functions.

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">
<TabValidateFormulaArgument xmlns="http://www.fsight.ru/PP.SOM.Som">
<tTabSheet xmlns="">
  <id>PIHBEDBNELDPFOAEFEDCEMJBFINKCAOEMIHGHJAAHDLLJOHF!M!S!PLFPLFNBNELDPFOAEFCLGLLHBNEKHIFKEJIADGEJBNAOOBCCB!1</id>
  </tTabSheet>
  <arg xmlns="">A0:A5</arg>
  </TabValidateFormulaArgument>
  </s:Body>
  </s:Envelope>

SOAP response:

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

JSON request:

{
"TabValidateFormulaArgument" :
{
"tTabSheet" :
{
"id" : "PIHBEDBNELDPFOAEFEDCEMJBFINKCAOEMIHGHJAAHDLLJOHF!M!S!PLFPLFNBNELDPFOAEFCLGLLHBNEKHIFKEJIADGEJBNAOOBCCB!1"
},
"arg" : "A0:A5"
}
}

JSON response:

{
"TabValidateFormulaArgumentResult" : "1"
}
public static bool ValidateArgument(string moniker, string arguments)
{
var somClient = new SomPortTypeClient(); // Proxy object for operation execution
// Operation execution parameters
var tVal = new TabValidateFormulaArgument()
{
arg = arguments,
tTabSheet = new TabSheetId() { id = moniker }
};
// Check arguments
var result = somClient.TabValidateFormulaArgument(tVal);
return result;
}

See also:

Table: Operations