Custom function inside filters
![AGenova](https://us.v-cdn.net/6037124/uploads/userpics/PASCMR3RN86W/nD7D6WK4KT3GF.jpg)
Hi folks.
I have a custom function to be used in multiple fields of a record. I think the best way to update these fields is using filters whitin the Update function, but I can't find the way to do so.
Obviously I can create a new variable in the function stack to be assigned for each field but it's not very efficient, isn't it?
Do you know how to use custom functions as a filter?
Thanks.
Comments
-
I would create new variables in the function stack and then apply them in the update call. It's far easier to track as a developer (stacked filters are not obvious unless you open everything up), and opens the door to operations (like your custom function) that are stack-only.
The difference in runtime between managing separate functions in the stack vs the filters is tiny - and doesn't always go the same way.
Use whichever tools are going to improve your development velocity!
Figuring out how to unstick that velocity toward shipping is what we do every day at State Change Pro office hours and our loom-enabled ask-for-help. -
Yes, I've used what you suggest, but I think it's not a clean solution. I would like to use a custom function in the filter stack.
May I suggest it as an improvement?Thanks anyway.
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