I’m using the restful plugin to query data. This results in 3 columns being added to a table:
name
subscriptionStatus
created.timestamp
Instead of displaying created.timestamp, I’d like to display the number of days since today that the timestamp occurred.
date().diff(created.timestamp,‘days’)
I thought that I might accomplish this through a custom formula, but when I edit it, to display days according to the pattern above, I’m not getting the days to display in the grid. I feel as if I’m missing something fundamental about drona’s design pattern for this.
These are the fields coming from my data source:
This is the custom formula I created. You can see the date().diff. I’m getting the response: Some Issue in formula.
I guess I have a few questions:
- Is there a better place to target data transformations fore presentation in the grid?
- Is custom formula the correct place to attempt to do this?
- Can I use standard js in custom formulas?