-
Notifications
You must be signed in to change notification settings - Fork 3.8k
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]: Add options for labels in select columns in a table widget #21993
Comments
It would be useful if it would still use the |
@keyurparalkar @momcilo-appsmith should this be prioritized? |
More generally the select widget is not consistent regarding label / value.
Trying to solve this problem if I change Computed value property to display the color name with something like:
|
CC: @dilippitchika |
Hi, |
Another user asked for this feature. |
Hi, |
Another user on Discord is facing this issue.
|
Do we need to work on this issue? can we have the exact steps to reproduce the issue along with screenshots or a loom video ? |
Please do work on it. What is not clear to you? |
As a workaround solution:
|
Yes that work around works though it is a work around, it is not so intuitive and I believe this is a basic feature that should work for select widget. Actually it works for select widget outside of datatable I think. |
In my understanding, this is linked to #26855 which is closed by now. In #26855 , there was the following request:
Could you maybe review that PR if it is suitable to close this issue ? |
I don't feel comfortable enough to implement myself this fix I think. |
Sorry @benjamindonze , I did not mean you. |
Thanks it seems indeed now the behavior is what would be expected. Though I will have to fix all the workaround I was making by displaying a computed value beeing the label value which now doesn't work anymore my column displayed empty as the widget expect to find the value and not the label. Just so you know this means this is not backward compatible with previous behavior |
@jacquesikot Ah also it seems the search bar of the datatable now doesn't work with that solution. Indeed search seems to be applied on the value field though it should also search on the label field |
I have opened an issue : #35406 |
Is there an existing issue for this?
Summary
The table widget now supports the
Select
column type, which allows the column to contain both a label and a value. This could be useful for currency fields, foreign keys, or any other case where you want to display a different version of the column value. However, there is a problem with sorting.With Select columns in a table widget, the
label
is shown to the user while selecting an option, but then thevalue
is shown in the table widget, after the option has been selected. This is different from the behavior of a Select widget outside a table, which continues to show the label after an option has been selected.Feature Request:
To address this inconsistent behavior, and add support for sorting currency values, we should allow the user to choose:
[label | value ]
[label | value ]
Why should this be worked on?
Multiple users have asked for a way to support a currency column in the table widget that both sorts and displays accurately. For now, users have to choose between displaying as a number (that sorts property) or as text with currency symbol (which sorts incorrectly).
#5632
https://discord.com/channels/725602949748752515/1076320585002532976
https://discord.com/channels/725602949748752515/1074651219588558868
Front conversations
The text was updated successfully, but these errors were encountered: