Overslaan naar inhoud
Menu
Je moet geregistreerd zijn om te kunnen communiceren met de community.
Deze vraag is gerapporteerd
4 Antwoorden
1762 Weergaven

i want to add a search bar here in the list 


Avatar
Annuleer
Beste antwoord

Hi,


To add a search bar in a list view, add the <search> tag with the appropriate attributes inside the <tree> tag. You can customize the search behavior by adding filters, groups, and other search options within the <search> tag.


For example, use the following code:

<search>
    <field name="field_to_search_1"/>
    <field name="field_to_search_2"/>
    <filter name="filter_name" string="Filter Label" domain="[('field_name', 'operator', value)]"/>
    <group expand="0" string="Group By">
        <filter name="group_by_field" context="{'group_by': 'field_name'}"/>
    </group>
</search>



Hope it helps.


Avatar
Annuleer
Beste antwoord

ok

Avatar
Annuleer
Auteur Beste antwoord

i did try to switch them on 

but it's not really doing what i want 

Avatar
Annuleer
Beste antwoord

toggle to studio->click on views in the top right. And enable the search view. the search base will came



Avatar
Annuleer
Gerelateerde posts Antwoorden Weergaven Activiteit
0
mrt. 15
3365
0
okt. 24
1039
6
aug. 18
11017
3
sep. 17
7840
1
mrt. 15
4592