Does anyone have an efficient way to only update columns with values?
Options
Tim Tyler
Member ✭
It currently seems that when you call EDIT {DB Table} any inputs that are empty or null are updated as such in the record. I would like to make my inputs optional and only update when a value exists.
I am wondering if anyone has also implemented this and how they did it.
For now I am thinking I need to pull (READ) the record and then compare each input for empty or null and if so replace with current value before I call the EDIT.
I am also working out how I want to recognise when the user intends to remove the value.
Thanks!
I am wondering if anyone has also implemented this and how they did it.
For now I am thinking I need to pull (READ) the record and then compare each input for empty or null and if so replace with current value before I call the EDIT.
I am also working out how I want to recognise when the user intends to remove the value.
Thanks!
Comments
-
Tim, try the first_notempty filter
https://community.xano.com/c/video-tutorials/new-conditional-set-filters -
thank you! I saw the filter but I thought it meant first from an array. This is what I needed. 🙂
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