SetParamAdvFilters

Syntax

SetParamAdvFiltersResult SetParamAdvFilters(OdId tObject, SetParamAdvFiltersArg tArg)

Parameters

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

tArg. Operation execution parameters.

Description

The SetParamAdvFilters operation changes 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 instance, and in the tArg field specify parameter identifier and settings of advanced filters to be determined. The object must be opened for edit.

The operation results in the logical true if settings of parameter's advanced filters were changed successfully.

Example

Below is the example of changing advanced filter for object parameter. The request contains moniker of opened object instance, parameter identifier, and advanced filter condition settings to be determined. The response contains whether settings were changed 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">
<SetParamAdvFilters xmlns="http://www.fsight.ru/PP.SOM.Som">
<tObject xmlns="">
  <id>NMGCENDEBJJIGOAEMKHENDOHBOBLNGJEFIIEIMPLBOAHIDPB!M!S!PIEHMJODEBJJIGOAEDNNIHGLBLGDFOBLEAJNIMEMKKPDNAKMC</id>
  </tObject>
<tArg xmlns="">
  <paramId>ITEM1</paramId>
<filter>
<it>
  <attrId>PARENT_ID</attrId>
  <conditionOper>Equal</conditionOper>
  <attrType>2</attrType>
  <inversion>false</inversion>
  <ignoreEmptyAttributes>false</ignoreEmptyAttributes>
  <conditionJoin>None</conditionJoin>
  <groupId>0</groupId>
<conditionParam>
  <paramId>ITEM</paramId>
  <attrId>KEY</attrId>
  </conditionParam>
  <ignoreEmptyValues>false</ignoreEmptyValues>
  </it>
  </filter>
  </tArg>
  </SetParamAdvFilters>
  </s:Body>
  </s:Envelope>

SOAP response:

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

JSON request:

{
"SetParamAdvFilters" :
{
"tObject" :
{
"id" : "NMGCENDEBJJIGOAEMKHENDOHBOBLNGJEFIIEIMPLBOAHIDPB!M!S!PIEHMJODEBJJIGOAEDNNIHGLBLGDFOBLEAJNIMEMKKPDNAKMC"
},
"tArg" :
{
"paramId" : "ITEM1",
"filter" :
{
"it" :
{
"attrId" : "PARENT_ID",
"conditionOper" : "Equal",
"attrType" : "2",
"inversion" : "false",
"ignoreEmptyAttributes" : "false",
"conditionJoin" : "None",
"groupId" : "0",
"conditionParam" :
{
"paramId" : "ITEM",
"attrId" : "KEY"
},
"ignoreEmptyValues" : "false"
}
}
}
}
}

JSON response:

{
"SetParamAdvFiltersResult" :
{
"res" : "1"
}
}
public static SetParamAdvFiltersResult SetParamAdvFilters(string moniker, string parameterId, ParamAdvFilterCondition[] filterConditions)
{
var somClient = new SomPortTypeClient(); // Proxy object for operation execution
// Operation execution parameters
var tSet = new SetParamAdvFilters()
{
tArg = new SetParamAdvFiltersArg()
{
paramId = parameterId,
filter = filterConditions
},
tObject = new OdId() { id = moniker }
};
// Change advanced filters of object parameter
var result = somClient.SetParamAdvFilters(tSet);
return result;
}

See also:

Working with Repository