directus-extension-computed-interface
directus-extension-computed-interface copied to clipboard
Perform computed value based on other fields
Hi, as far as I understood from the guide we have 3 fields mode: 1. null: Default option. Show an input with the computed value but still allow manual editing....
Right now it is not possible to manually edit a calculated value. In this PR, I have restricted the watcher to work, which will not trigger when a value is...
Hi, is it possible to add date manipulation functions like `DATEADD (datepart , number , date )` from SQL or `DateTime.AddYears(Int32)` from C#? Usecase: I have purchase date and waranty...
Result in console log = 110.50000000000001 Result filled = 110 a,b,c,d are all decimal type fields. Directus Version 10.10.4 
Great extension! I would like to use it to suggest a date one year in the future, given a certain start date. I succeeded in formulating the template, but when...
### Tying to calculate the sum of days from two date time inputs, such as: ```{{ DAY(SUBTRACT(end, start)) }}``` or ```{{ SUBTRACT(DAY(end), DAY(start)) }}``` ### But just getting 0, debug...
Took me a little while to debug, but looks like the primary key field name `id` is hard coded in the extension. I was trying to calculate against a field...
if (arrayOfIds.length) { const relatedCollection = isM2O ? relation.related_collection : relation.collection; const path = relatedCollection === 'directus_users' ? '/users' : `items/${relatedCollection}`; if (relatedCollection) { let data; if (relatedCollection in itemCache...
This PR verifies when the parsed expression returns a empty value and properly emits `null`, so Directus can take care of the empty field. Closes #7
Hello! I'm using this interface to generate a slug from a title field. I want the slug to be generated only if it hasn't been set yet during record creation....