TabFilterItemSearch

Syntax

TabFilterItemResult TabFilterItemSearch(TabSheetId tTabSheet, TabFilterItemSearchArg tArg)

Parameters

tTabSheet. Table moniker.

tArg. Operation execution parameters.

Description

The TabFilterItemSearch operation searches for elements in the autofilter that was set up for table.

Comments

The operation executes quick search among a number of elements. To execute the operation, in the tTabSheet field specify table moniker, in the tArg.filterItemIndex field specify index of the column, by which search is executed, and in the tArg.text field specify the searched text. The moniker can be based on the moniker of opened object instance, which table is worked with.

The operation results in the set of elements found in the autofilter.

Example

Below is the example of searching elements in the autofilter. The request contains moniker for working with table and search options. The response contains the set of found elements.

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">
<TabFilterItemSearch xmlns="http://www.fsight.ru/PP.SOM.Som">
<tTabSheet xmlns="">
  <id>S1!M!S!P1!1</id>
  </tTabSheet>
<tArg xmlns="">
  <filterItemIndex>1</filterItemIndex>
  <text>Rate</text>
  </tArg>
  </TabFilterItemSearch>
  </s:Body>
  </s:Envelope>

SOAP response:

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">
<soapenv:Body>
<TabFilterItemSearchResult 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" LimitValues="0" EmptyValuesInRange="0">
<FilterValues xmlns="">
  <Value Name="Rate of change of industrial output" State="1" />
  <Value Name="Rate of growth (decrease) of financial income per capita, % to previous period" State="1" />
  <Value Name="Rate of growth (decrease) of financial income per capita, % to corresponding month of previous year" State="1" />
  <Value Name="Rate of growth (decrease) of consumption expenditures per capita, % to previous period" State="1" />
  <Value Name="Rate of growth (decrease) of consumption expenditures per capita, % to corresponding month of previous year" State="1" />
  </FilterValues>
  </TabFilterItemSearchResult>
  </soapenv:Body>
  </soapenv:Envelope>

JSON request:

{
"TabFilterItemSearch" :
{
"tTabSheet" :
{
"id" : "S1!M!S!P1!1"
},
"tArg" :
{
"filterItemIndex" : "1",
"text" : "Rate"
}
}
}

JSON response:

{
"TabFilterItemSearchResult" :
{
"@EmptyValuesInRange" : "0",
"@LimitValues" : "0",
"FilterValues" :
{
"Value" :
[
{
"@Name" : "Rate of change of industrial output",
"@State" : "1"
},
{
"@Name" : "Rate of growth (decrease) of financial income per capita, % to previous period",
"@State" : "1"
},
{
"@Name" : "Rate of growth (decrease) of financial income per capita, % to corresponding month of previous year",
"@State" : "1"
},
{
"@Name" : "Rate of growth (decrease) of consumption expenditures per capita, % to previous period",
"@State" : "1"
},
{
"@Name" : "Rate of growth (decrease) of consumption expenditures per capita, % to corresponding month of previous year",
"@State" : "1"
}
]
}
}
}
public static TabFilterItemResult FilterItemSearch(string moniker, int columnIndex, string textSearch)
{
var somClient = new SomPortTypeClient(); // Proxy object for operation execution
// Operation execution parameters
var tTab = new TabFilterItemSearch()
{
tArg = new TabFilterItemSearchArg()
{
filterItemIndex = columnIndex,
text = textSearch
},
tTabSheet = new TabSheetId() { id = moniker }
};
// Search elements
var result = somClient.TabFilterItemSearch(tTab);
return result;
}

See also:

Table