SetDevEnvSettings

Syntax

SetDevEnvSettingsResult SetDevEnvSettings(MbId tMb, SetDevEnvSettingsArg tArg)

Parameters

tMb. Repository connection moniker.

tArg. Operation execution parameters.

Description

The SetDevEnvSettings operation changes development environment parameters.

Comments

To execute the operation, in the tMb fields specify repository connection moniker. The moniker can be obtained on executing the OpenMetabase operation. In the tArg.tabSize field specify new development environment parameters to be applied.

The operation results in the changed development environment parameters.

Example

Below is the example of changing development environment parameters. The request contains repository connection moniker and new development environment parameter. The response contains changed parameter values.

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">
<SetDevEnvSettings xmlns="http://www.fsight.ru/PP.SOM.Som">
<tMb xsi:type="q1:OpenMetabaseResult" xmlns="" xmlns:q1="http://www.fsight.ru/PP.SOM.Som">
  <id>S1!M</id>
  <sessKey>182323</sessKey>
  <sessCookie>C1</sessCookie>
  <version>163</version>
  <defLocale>1049</defLocale>
  </tMb>
<tArg xmlns="">
<settings>
  <tabSize>5</tabSize>
  </settings>
  </tArg>
  </SetDevEnvSettings>
  </s:Body>
  </s:Envelope>

SOAP response:

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

JSON request:

{
"SetDevEnvSettings" :
{
"tMb" :
{
"@type" : "q1:OpenMetabaseResult",
"id" : "S1!M",
"sessKey" : "182323",
"sessCookie" : "C1",
"version" : "163",
"defLocale" : "1049"
},
"tArg" :
{
"settings" :
{
"tabSize" : "5"
}
}
}
}

JSON response:

{
"SetDevEnvSettingsResult" :
{
"settings" :
{
"tabSize" : "5"
}
}
}
public static SetDevEnvSettingsResult SetDevEnvSettings(MbId mb, long tabulationSize)
{
var somClient = new SomPortTypeClient(); //Proxy object for operation execution
//Operation execution parameters
var tSet = new SetDevEnvSettings()
{
tArg = new SetDevEnvSettingsArg()
{
settings = new DevEnvSettings()
{
tabSize = tabulationSize
}
},
//Repository connection moniker
tMb = mb
};
//Change development environment parameters
var result = somClient.SetDevEnvSettings(tSet);
return result;
}

See also:

Working with Development Environment