You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi, What I am trying to do is when a user click a specific link, it should redirect this user to the grid with the custom filter condition. For instance I have a custom filter "fee paid", it has two options "paid" and "not paid" g.column name: 'Payment', attribute: 'closed', assoc: [:order_item, :order], custom_filter: {'Paid' => 1, 'Unpaid' => 0} do |app|
I want that so when a user click a link on other page, it redirect to this page only showing the paid record. It is kind of like combine the two steps(load the page and use the filter) into one step. How should I do it?
The text was updated successfully, but these errors were encountered:
Thank you, it helps, but still there is a problem. I think it is caused by ordering or association, I am not sure.
The link generated by clicking the filter is: applications?grid%5Bf%5D%5Borders.closed%5D%5B%5D=1
But the link generated by the helped is: applications?grid%5Bf%5D%5Bclosed%5D%5B%5D=1
The part orders is missing
Here is the controller: included=[:user, order_item: {order: :payments}}]
Hi, What I am trying to do is when a user click a specific link, it should redirect this user to the grid with the custom filter condition. For instance I have a custom filter "fee paid", it has two options "paid" and "not paid"
g.column name: 'Payment', attribute: 'closed', assoc: [:order_item, :order], custom_filter: {'Paid' => 1, 'Unpaid' => 0} do |app|
I want that so when a user click a link on other page, it redirect to this page only showing the paid record. It is kind of like combine the two steps(load the page and use the filter) into one step. How should I do it?
The text was updated successfully, but these errors were encountered: