GetControlInfo

Syntax

ControlInfoEx GetControlInfo(string mon)

Parameters

mon. Moniker for working with object parameter management settings.

Description

The GetControlInfo operation gets settings for managing nested objects parameters.

Comments

To execute the operation, in the mon fields specify moniker of opened object instance with the !Params!CtlInfo postfix. The moniker can be obtained after executing the operation with the Open* postfix according to object type.

The operation results in the collection of elements with information about nested object management parameters.

Example

Below is the example of getting nested object management settings in regular report. The request contains moniker of regular report instance. The response contains the obtained settings.

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">
<GetControlInfo xmlns="http://www.fsight.ru/PP.SOM.Som">
  <mon xmlns="">MJGJPMLCOOJPFOAEIHPBNIFBHFLBMOHEEKEJHIHCJICHMNBF!M!S!PEFGDCCMCOOJPFOAEAMDIPOAEKOCCCDKEMJPIBDDOBOHPHKBH!Params!CtlInfo</mon>
  </GetControlInfo>
  </s:Body>
  </s:Envelope>

SOAP response:

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">
<soapenv:Body>
<GetControlInfoResult 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">
<controls xmlns="">
<it>
<controlledObject>
  <n>Slice 1</n>
  <k>1</k>
  <c>2049</c>
  </controlledObject>
<controlParams>
<it>
<controlledParam>
  <id>DATE</id>
  <name>Date</name>
  <key>1</key>
  <dataType>4</dataType>
  </controlledParam>
  <expression>{@ITEM}</expression>
  </it>
  </controlParams>
  </it>
  </controls>
  </GetControlInfoResult>
  </soapenv:Body>
  </soapenv:Envelope>

JSON request:

{
"GetControlInfo" :
{
"mon" : "MJGJPMLCOOJPFOAEIHPBNIFBHFLBMOHEEKEJHIHCJICHMNBF!M!S!PEFGDCCMCOOJPFOAEAMDIPOAEKOCCCDKEMJPIBDDOBOHPHKBH!Params!CtlInfo"
}
}

JSON response:

{
"GetControlInfoResult" :
{
"controls" :
{
"it" :
{
"controlledObject" :
{
"n" : "Slice 1",
"k" : "1",
"c" : "2049"
},
"controlParams" :
{
"it" :
{
"controlledParam" :
{
"id" : "DATE",
"name" : "Date",
"key" : "1",
"dataType" : "4"
},
"expression" : "{@ITEM}"
}
}
}
}
}
}
public static ControlInfoEx GetControlInfo(string moniker)
{
var somClient = new SomPortTypeClient(); // Proxy object for operation execution
// Operation execution parameters
var tGet = new GetControlInfo()
{
mon = moniker + "!Params!CtlInfo"
};
// Get settings for managing nested object parameters
var result = somClient.GetControlInfo(tGet);
return result;
}

See also:

Working with a Repository