Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Feature]: configuration for default Table widget filter #37344

Open
1 task done
hilton opened this issue Nov 12, 2024 · 0 comments
Open
1 task done

[Feature]: configuration for default Table widget filter #37344

hilton opened this issue Nov 12, 2024 · 0 comments
Assignees
Labels
Enhancement New feature or request Table Widget Widgets & Accelerators Pod Issues related to widgets & Accelerators Widgets Product This label groups issues related to widgets

Comments

@hilton
Copy link

hilton commented Nov 12, 2024

Is there an existing issue for this?

  • I have searched the existing issues

Summary

Add a way to set the initial state of the Table widget filter, so the app can set filters based on interaction elsewhere. Otherwise, either the user has to set the filter UI manually, every time, or the app can filter the source data it gives the table, but then has to duplicate the filter UI to manipulate that source data filter.

Why should this be worked on?

The table widget’s filter is not currently integrated with the rest of Appsmith, which means that it can’t be used for use cases that require any kind of predefined filter.

Our use case is web shop orders. We have a customer details view, and a table of all/recent orders. We want the customer details view to include a Customer orders button that navigates to the table of orders, and filters the table by customer ID.

We can do that by setting the Customer orders button to store the current user ID, and then use that to filter the orders data, but then the Orders page only shows data for the last-viewed customer. To fix this, we need to add a Show all orders button to the table, which is ugly, and duplicates filter functionality.

What’s one option for how this might work? While the table has a Default search text property, there’s no similar Default search filter configuration. Even if limited to a single attribute/operator/value, that would be valuable.

@hilton hilton added the Enhancement New feature or request label Nov 12, 2024
@hilton hilton changed the title [Feature]: programmatically set initial Table widget filter [Feature]: configuration for default Table widget filter Nov 12, 2024
@github-actions github-actions bot added Widgets Product This label groups issues related to widgets Widgets & Accelerators Pod Issues related to widgets & Accelerators labels Nov 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Enhancement New feature or request Table Widget Widgets & Accelerators Pod Issues related to widgets & Accelerators Widgets Product This label groups issues related to widgets
Projects
None yet
Development

No branches or pull requests

5 participants