SuggestionPickerField not prompt any position

Hi

I have big problem with SuggestionPickerField. I define field in xml

<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<window xmlns="http://schemas.haulmont.com/cuba/window.xsd"
        caption="msg://editorCaption"
        class="com.company.rental.web.rentalposition.RentalPositionEdit"
        datasource="rentalPositionDs"
        focusComponent="fieldGroup"
        messagesPack="com.company.rental.web.rentalposition">
    <dsContext>
        <datasource id="rentalPositionDs"
                    class="com.company.rental.entity.RentalPosition"
                    view="rentalPosition-view"/>
        <collectionDatasource id="articlesDs"
                              class="com.company.rental.entity.Articles"
                              maxResults="100000"
                              view="articles-view">
            <query>
                <![CDATA[select e from rental$Articles e]]>
            </query>
        </collectionDatasource>
        <collectionDatasource id="customersDs"
                              class="com.company.rental.entity.Customers"
                              view="_minimal">
            <query>
                <![CDATA[select e from rental$Customers e]]>
            </query>
        </collectionDatasource>
        <collectionDatasource id="pricelistsDs"
                              class="com.company.rental.entity.Pricelist"
                              view="_minimal"/>
    </dsContext>
    <dialogMode height="450"
                width="830"/>
    <layout expand="windowActions"
            spacing="true">
        <grid height="349px"
              spacing="true">
            <columns count="2"/>
            <rows>
                <row>
                    <groupBox caption="msg://Article"
                              height="144px">
                        <fieldGroup id="fieldGroup"
                                    datasource="rentalPositionDs"
                                    height="73px"
                                    width="355px">
                            <column width="250px">
                                <field id="article"
                                       optionsDatasource="articlesDs"
                                       property="article">
                                    <suggestionPickerField id="suggestionPickerField"**
                                                           captionProperty="code"
                                                           datasource="rentalPositionDs"
                                                           minSearchStringLength="3"
                                                           property="article"/>
                                </field>
                                <field id="articlename"
                                       property="article.name"
                                       rows="2"
                                       width="300px"/>
                            </column>
                        </fieldGroup>
                    </groupBox>
                    <groupBox caption="msg://Customer"
                              height="146px">
                        <fieldGroup id="fieldgroup_1"
                                    datasource="rentalPositionDs"
                                    height="112px">
                            <column width="250px">
                                <field property="customer"/>
                                <field id="zipcode"
                                       caption="msg://ZipCode"
                                       editable="false"
                                       property="customer.zipcode"/>
                                <field id="postoffice"
                                       caption="msg://Post Office"
                                       editable="false"
                                       property="customer.postoffice"/>
                            </column>
                        </fieldGroup>
                    </groupBox>
                </row>
                <row>
                    <groupBox caption="msg://Status"
                              height="186px"
                              width="393px">
                        <fieldGroup id="fieldGroup_2"
                                    datasource="rentalPositionDs"
                                    height="150px"
                                    width="387px">
                            <column width="250px">
                                <field property="startdate"/>
                                <field property="enddate"/>
                                <field editable="false"
                                       property="rentalstatus"/>
                                <field property="returndate"/>
                            </column>
                        </fieldGroup>
                    </groupBox>
                    <groupBox caption="msg://Value"
                              collapsed="true"
                              height="184px">
                        <fieldGroup id="fieldgroup_3"
                                    datasource="rentalPositionDs"
                                    height="150px"
                                    width="356px">
                            <column width="250px">
                                <field id="quantity"
                                       editable="false"
                                       money="true"
                                       property="quantity"/>
                                <field id="price"
                                       money="true"
                                       property="price"/>
                                <field id="amount"
                                       editable="false"
                                       money="true"
                                       property="amount"/>
                                <field defvalue="0"
                                       money="true"
                                       property="prepayment"/>
                            </column>
                        </fieldGroup>
                    </groupBox>
                </row>
            </rows>
        </grid>
        <frame id="windowActions"
               height="44px"
               screen="editWindowActions"/>
    </layout>
</window>

Now I input value in field e.g 11313…, but I hven’t any position
on suggestion list.
obraz

List of articles below
obraz

I’m doing wrong ?

Hello @andrzej.paluch72

You should define some SearchExecutor or a query to make SuggestionField works. This field enables to implement custom search algorithm and you have to configure how suggestions should be filtered.

Please take a look at our documentation: SuggestionField.

Regards,
Daniil.