Skip to Content
เมนู
คุณต้องลงทะเบียนเพื่อโต้ตอบกับคอมมูนิตี้
คำถามนี้ถูกตั้งค่าสถานะ
4 ตอบกลับ
1954 มุมมอง

i want to add a search bar here in the list 


อวตาร
ละทิ้ง
คำตอบที่ดีที่สุด

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.


อวตาร
ละทิ้ง
คำตอบที่ดีที่สุด

ok

อวตาร
ละทิ้ง
ผู้เขียน คำตอบที่ดีที่สุด

i did try to switch them on 

but it's not really doing what i want 

อวตาร
ละทิ้ง
คำตอบที่ดีที่สุด

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



อวตาร
ละทิ้ง
Related Posts ตอบกลับ มุมมอง กิจกรรม
0
มี.ค. 15
3575
0
ต.ค. 24
1303
How to filter list view by related field แก้ไขแล้ว
6
ส.ค. 18
11229
3
ก.ย. 17
7840
1
มี.ค. 15
4774