تخطي للذهاب إلى المحتوى
القائمة
لقد تم الإبلاغ عن هذا السؤال
4 الردود
1753 أدوات العرض

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



الصورة الرمزية
إهمال
المنشورات ذات الصلة الردود أدوات العرض النشاط
0
مارس 15
3350
0
أكتوبر 24
1032
6
أغسطس 18
10993
3
سبتمبر 17
7840
1
مارس 15
4554