SaveDba

Syntax

bool SaveDba(OdId tOb)

Parameters

tOb. Moniker of opened business application instance.

Description

The SaveDba operation saves changes in business application.

Comments

To execute the operation, in the tOb field specify moniker of opened business application instance.

The operation results in the logical True if changes were saved successfully.

Example

Below is the example of saving business application changes. The request contains moniker of opened business application instance. The response contains whether changes were saved 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">
<SaveDba xmlns="http://www.fsight.ru/PP.SOM.Som">
<tOb xmlns="">
  <id>EMMHJHJLCLPAGOAECIKJAHOPCNJHGJDEKIODNPHMALBNJDDP!M!S!CBPKMIAKLCLPAGOAEHNHNGELNMKNCKMNEEIHLOAJKJEAJIHDJ</id>
  </tOb>
  </SaveDba>
  </s:Body>
  </s:Envelope>

SOAP response:

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

JSON request:

{
"SaveDba" :
{
"tOb" :
{
"id" : "EMMHJHJLCLPAGOAECIKJAHOPCNJHGJDEKIODNPHMALBNJDDP!M!S!CBPKMIAKLCLPAGOAEHNHNGELNMKNCKMNEEIHLOAJKJEAJIHDJ"
}
}
}

JSON response:

{
"SaveDbaResult" : "1"
}
public static bool SaveDba(string moniker)
{
var somClient = new SomPortTypeClient(); // Proxy object for operation execution
// Operation execution parameters
var tSave = new SaveDba()
{
// Create object moniker
tOb = new OdId() { id = moniker }
};
// Save changes
var result = somClient.SaveDba(tSave);
return result;
}

See also:

Working with Business Applications