CloseTable

Syntax

bool CloseTable(OdId tOb)

Parameters

tOb. Moniker of opened instance of table/external table/view.

Description

The CloseTable operation closes opened instance of table/external table/view.

Comments

To execute the operation, in the tOb field specify moniker of instance of table/external table/view to be closed. The operation results in the logical True if the object was closed successfully.

Example

Example of closing table instance. The request contains moniker of opened table instance. The response contains whether closing was successful.

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">
<CloseTable xmlns="http://www.fsight.ru/PP.SOM.Som">
<tOb xmlns="">
  <id>S1!M!S!TABLE5</id>
  </tOb>
  </CloseTable>
  </s:Body>
  </s:Envelope>

SOAP response:

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

JSON request:

{
"CloseTable" :
{
"tOb" :
{
"id" : "S1!M!S!TABLE5"
}
}
}

JSON response:

{
"CloseTableResult" : "1"
}
public static bool CloseTable(string moniker)
{
var somClient = new SomPortTypeClient(); //Proxy object for operation execution
//Operation execution parameters
var tClose = new CloseTable()
{
tOb = new OdId() { id = moniker }
};
//Close table instance
var b = somClient.CloseTable(tClose);
return b;
}

See also:

Working with Relational Objects of Repository