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

Question : What are magic fields ? #379

Closed
Jerome-Herbinet opened this issue Jun 23, 2023 · 5 comments
Closed

Question : What are magic fields ? #379

Jerome-Herbinet opened this issue Jun 23, 2023 · 5 comments
Labels
pending documentation Pending a documentation update/fix question Further information is requested

Comments

@Jerome-Herbinet
Copy link
Member

Jerome-Herbinet commented Jun 23, 2023

Hi @datenangebot,
I'm currently working on the French translations of the Tables app, and a while ago I came across the notion of a "magic field". To be honest, perhaps due to a lack of culture in this kind of data storage and sorting application, I haven't the slightest idea what the "magic" aspect of certain fields is. Unfortunately, what I saw on the front of the application didn't help. Can you explain to me what it's for, how it works, and what its purpose is... and that will help me understand what's "magic".
Thanks in advance!
Jérôme

@Jerome-Herbinet Jerome-Herbinet added enhancement New feature or request 0. Needs triage Pending approval or rejection. This issue is pending approval. question Further information is requested and removed enhancement New feature or request 0. Needs triage Pending approval or rejection. This issue is pending approval. labels Jun 23, 2023
@datenangebot
Copy link
Collaborator

Hi @Jerome-Herbinet ,
of course!

There will be some points where you can use (insert) magic-fields. For now it is used to filter columns, but there will be more one day. For example the "magic value" could be [me], that means the program will replace this with your individual userId. It is called magic because it depends on the context whose logged in. Another magic field is a date and time. This is also related to your personal timezone... So all fields that will be replaced with values that are different for different users/contexts are called "magic fields".

Does that help?

Kindly regards

@Jerome-Herbinet
Copy link
Member Author

Hi @Jerome-Herbinet ,
of course!

There will be some points where you can use (insert) magic-fields. For now it is used to filter columns, but there will be more one day. For example the "magic value" could be [me], that means the program will replace this with your individual userId. It is called magic because it depends on the context whose logged in. Another magic field is a date and time. This is also related to your personal timezone... So all fields that will be replaced with values that are different for different users/contexts are called "magic fields".

Does that help?

Kindly regards

Thanks a lot @datenangebot 🙂

@stefan-niedermann
Copy link
Member

Sorry for seizing this issue, but is there a documentation about which magic field(s) are available?

@datenangebot
Copy link
Collaborator

Well, from the users perspective you always get a list with available fields.
From a dev perspective, no not yet. Maybe we could take this issue to add that. 🙃

@datenangebot datenangebot added the pending documentation Pending a documentation update/fix label Jun 25, 2023
@datenangebot
Copy link
Collaborator

https://github.com/nextcloud/tables/wiki/Developing#magic-values

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
pending documentation Pending a documentation update/fix question Further information is requested
Projects
None yet
Development

No branches or pull requests

3 participants