How can I change the timestamp format in an addon by using filters in a 'Get Records' Function?
How can I change the timestamp format in an addon by using filters in a 'Get Records' Function?
Below is a recording of my current setup that works in my 'Query All Records' function. However, in my 'Get Records' function, I'm encountering the following error: 'Please use a numerically indexed array.
Best Answers
-
You must delete the first for each because your variable "expeditions" has only one object that is not an array. You do not need to iterate on that.
Then, you should use "var:expeditions.sessions_id" instead of "var:item.sessions_id" on the second "for each" expression.
-
In your second "for each" you probably should use "var:sessions_id" instead of "var:sessions_id.sessions"
cause in your datamodel "sessions_id" doesn't seems to have any children named "sessions"
If it didn't fix it, please provide the result from that get record query for further investigations :)
Answers
-
Thanks for all your help so far!
I think I'm getting there but I get one new error: "Unable to locate var: sessions.Date".
-
Yes, that worked! Thanks for all the help @frederic , much appreciated!
Categories
- All Categories
- 53 ? Announcements
- 47 ? Releases
- 37 ? Welcome
- 983 ? Help! I'm a Noob
- 125 ? No-Code Front-Ends
- 633 ? Working with APIs
- 439 ? Transforming data
- 126 ? Connect Xano to ...
- 50 ?? Find an Expert
- 348 ❓Other questions
- 35 ? Security
- 22 ✂️ Snippets
- 19 ? Showcase
- 7 ?️ Xano Chatter
- 62 ? Video Tutorials
- 171 ? Request a feature
- 229 ? Report a Bug
- 19 ? Templates & Extensions
- 7 ? Feedback