#table filter interfere with inline edit

1 messages · Page 1 of 1 (latest)

warm wind
#

I'm trying to use table filer to narrow down a specific status value, and use inline edit to change some of the rows.

the problem is once I update the status, the whole row gets filtered out?

Any workaround?

Or how to make the table filer based on origional value, not currently editing value?

iron kindleBOT
#

Hello, I'm AppySmith, your support bot for all things Appsmith! It sounds like
you want to keep a row visible in a table widget even after editing its status,
which would normally cause it to be filtered out based on the existing filters.
Here's a workaround you can use to maintain the original state of the table
while making edits: - Store the original data set in a temporary state using an
"On Page Load" action. This can be done using the storeValue function. - Use
the stored value for filtering instead of directly filtering the table's data. -
When you update a row, update only the application data but do not modify the
data set used for filtering. Would you like to see an example of how to set this
up? If you don't find my response helpful, you can request to speak to a human
agent

warm wind
#

I undertand the storeValue workaround, but can't find any options of table widget to point the built in filter function to

iron kindleBOT
#

To use the storeValue workaround to retain rows after inline editing, even
when a row's new status would normally filter it out, you can take the following
approach: 1. Use the storeValue function to save the original data of the
table when the page loads or the data is first fetched. 2. Set the table's data
property to the stored value so that it is not affected by inline edits. 3.
Implement a custom filtering logic manually using JavaScript by adding a
computed property, where you can compare each row's original status value
against the filter criteria. While the built-in filter function of the table
widget does not provide a direct option to point towards the storeValue, by
using custom JavaScript in the computed properties section, you can achieve the
desired functionality. The specific steps could depend on how your Appsmith
application is set up. If you'd like, I can guide you step by step through the
process. Would that be helpful? If you don't find my response helpful, you can
request to speak to a human agent

warm wind
#

Can I get some help from human?

Does this mean built in filter is not possible to adapt to my needs?

Only way is completely write custom filter?

this feels like re-inventing wheels

iron kindleBOT
#

Someone from our team will reach out to you on this thread. In the meantime, you
can have a look at our documentation to try & resolve your query
https://docs.appsmith.com?utm=bot

Organizations build internal applications such as dashboards, database GUIs, admin panels, approval apps, customer support tools, etc. to help improve their business operations. Appsmith is an open-source developer tool that enables the rapid development of these applications. You can drag and drop pre-built widgets to build UI. Connect securely...

iron kindleBOT
#

Hello! I'm Amelia with Appsmith Support. 👋
It seems that you are facing this but:
https://github.com/appsmithorg/appsmith/issues/16584
Please add a comment with your use case in this GitHub issue to help us
prioritize it.

Thank you for your ongoing support and patience. We aim to provide you with
helpful assistance and hope we have addressed your question adequately.

Please take a moment to share your experience with our support team.
https://survey.frontapp.com/v2/09a400bf433bc9676d67/4073cbfcfbf8c28748e8fdd564beedeb
[https://survey.frontapp.com/v2/09a400bf433bc9676d67/4073cbfcfbf8c28748e8fdd564beedeb]

GitHub

Is there an existing issue for this? I have searched the existing issues Description While editing Table row when filter is applied to table data is currently not possible since filter is updating ...