Closed robdekort closed 1 year ago
We should store the computed field values in the database too. I'll work on that.
You are awesome!
He sure is! ❤️
Would storing these values not become problematic? I've got many implementations of computed fields which require a dynamic values - I thought that was the whole purpose of computed fields, that they're have the ability to be evaluated at runtime?
The values would be stored so the value at the point of last save could be queried (sorting etc), but when retrieved from the data would be overwritten with your dynamic values. It should cover both use cases.
When you have computed fields you can't sort listing tables on them. The fields are calculated at run time and not stored in the database. Therefore isn't available for the database to sort on.
I use this
To make sure I can properly sort on an entries field, but alas.