GetParamAdvFilters

Syntax

GetParamAdvFiltersResult GetParamAdvFilters(OdId tObject, GetParamAdvFiltersArg tArg)

Parameters

tObject. Repository object moniker, the parameter of which is used for work.

tArg. Operation execution parameters.

Description

The GetParamAdvFilters operation gets advanced filters of object parameter.

Comments

Advanced filters are available if a repository dictionary is used as a parameter editor. Filters allow for limiting the parameters to choose from or setting up management of other parameters during opening repository object. To execute the operation, in the tObject field specify moniker of opened object process, and in the tArg.paramId field specify parameter identifier. The object must be opened for edit.

The operation results in the obtained collection of advanced parameter filters.

Example

Below is the example of getting advanced filters for object parameter. The request contains moniker of opened object instance and parameter identifier. The response contains the obtained advanced filter condition 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">
<GetParamAdvFilters xmlns="http://www.fsight.ru/PP.SOM.Som">
<tObject xmlns="">
  <id>NMGCENDEBJJIGOAEMKHENDOHBOBLNGJEFIIEIMPLBOAHIDPB!M!S!PIEHMJODEBJJIGOAEDNNIHGLBLGDFOBLEAJNIMEMKKPDNAKMC</id>
  </tObject>
<tArg xmlns="">
  <paramId>ITEM</paramId>
  </tArg>
  </GetParamAdvFilters>
  </s:Body>
  </s:Envelope>

SOAP response:

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">
<soapenv:Body>
<GetParamAdvFiltersResult 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">
<filter xmlns="">
<it>
  <attrId>KEY</attrId>
  <conditionOper>Equal</conditionOper>
  <attrType>2</attrType>
  <inversion>0</inversion>
  <ignoreEmptyAttributes>0</ignoreEmptyAttributes>
  <conditionJoin>None</conditionJoin>
  <groupId>0</groupId>
<value>
<it>
  <value>1</value>
  </it>
  </value>
  </it>
  </filter>
  </GetParamAdvFiltersResult>
  </soapenv:Body>
  </soapenv:Envelope>

JSON request:

{
"GetParamAdvFilters" :
{
"tObject" :
{
"id" : "NMGCENDEBJJIGOAEMKHENDOHBOBLNGJEFIIEIMPLBOAHIDPB!M!S!PIEHMJODEBJJIGOAEDNNIHGLBLGDFOBLEAJNIMEMKKPDNAKMC"
},
"tArg" :
{
"paramId" : "ITEM"
}
}
}

JSON response:

{
"GetParamAdvFiltersResult" :
{
"filter" :
{
"it" :
{
"attrId" : "KEY",
"conditionOper" : "Equal",
"attrType" : "2",
"inversion" : "0",
"ignoreEmptyAttributes" : "0",
"conditionJoin" : "None",
"groupId" : "0",
"value" :
{
"it" :
{
"value" : "1"
}
}
}
}
}
}
public static GetParamAdvFiltersResult GetParamAdvFilters(string moniker, string parameterId)
{
var somClient = new SomPortTypeClient(); // Proxy object for operation execution
// Operation execution parameters
var tGet = new GetParamAdvFilters()
{
tArg = new GetParamAdvFiltersArg()
{
paramId = parameterId
},
tObject = new OdId() { id = moniker }
};
// Get advanced filters of object parameter
var result = somClient.GetParamAdvFilters(tGet);
return result;
}

See also:

Working with Repository