Bỏ qua để đến Nội dung
Menu
Câu hỏi này đã bị gắn cờ
4060 Lượt xem

Hello

I Have created search view for my custom model.

I want to filter data based on user input. Ex. if user types 200000 then all the records containing price <= 200000 should be filtered.

I know we can do this from front end using add custom filter.But i want to apply filter using code in xml .

Though my condition for search filter will remain same.Its just the value that user will be inputting in order to filter out data will be changing.

Can anyone please suggest me how this can be achieved ?

Ảnh đại diện
Huỷ bỏ
Bài viết liên quan Trả lời Lượt xem Hoạt động
1
thg 7 18
10384
1
thg 2 21
4218
1
thg 9 18
106
1
thg 5 17
8434
0
thg 2 25
1072