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 request] Add an associated label list to a list of values for struct field type dropdown (somewhat like format in struct type date) #693

Open
Chris75forumname opened this issue Nov 24, 2023 · 0 comments

Comments

@Chris75forumname
Copy link

Chris75forumname commented Nov 24, 2023

In struct type date, there is a parameter "format", by which the date is shown to the user. In the database, however, the real date format is yyyy-mm-dd all the time for better calculation (for sorting).

Now I want to achieve the same for struct type dropdown, because I use it to collect information, I want to use in calculations. Like the time in dropdown I want to be labelled like so: 01:00 Uhr, 01:00 Uhr, 02:00 Uhr, 03:00 Uhr, 04:00 Uhr, ... But in the database I want integers like so: 1,2,3,4,...

So I suggest to include a new list for labels in the struct type dropdown (in the schema editor), that acts like the list of labels and the list of headers in struct aggregation syntax. The headers are the values and the labels are just aliases. And in the schema editor, in the same way, there would be a list of labels that are shown to the user and a list of values that are entered into the database, accordingly. Somewhat like in the example of the struct type date, above, to handle the data in different formats, if you will.

@Chris75forumname Chris75forumname changed the title [Feature request] list of label/alias for struct type dropdown, just like format in struct type date [Feature request] list of label/alias for struct type dropdown, somewhat like format in struct type date Nov 24, 2023
@Chris75forumname Chris75forumname changed the title [Feature request] list of label/alias for struct type dropdown, somewhat like format in struct type date [Feature request] Add an associated label list to a list of values for struct field type dropdown (somewhat like format in struct type date) Oct 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant