How to stop database from updating to blank values
Hello, I'm facing difficulties when it comes to updating values in my database. To make it more convenient for you to understand the issue, I've created a video walkthrough. Kindly view it at the following link: . Regards.
Best Answers
-
HI Louis
followed that but still up dating with a blank value..😤 any other ideas here is a video explaining -
-
Hi @tig1893 ,
It seems like you may not have configured your "get record" to store your old values in the event of an empty input, which is exactly what @Louis Machado - CSA pointed out.
Here's a step-by-step guide to resolve this issue:
Step 1: Create a "get record".
Step 2: Update your "edit record" by employing theifnotempty
filter on your the fields.In the
ifnotempty
filter, be sure to insert the information retrieved from your "get record". This will ensure that your old values can be used instead of the empty input. -
Thank you, everyone! It's quite amusing that even after aligning and configuring everything correctly (I think), I still couldn't make it function. So, I decided to remove the call entirely and then rebuild it, and lo and behold, it worked perfectly on the first try.😍🤣
Thanks Xano community! Great support from Louis out side the forum also ⭐️⭐️⭐️⭐️⭐️⭐️
Answers
-
Hello, Tim! In order to do this, you will:
- use a GET RECORD function to pull the record from the database. You want to edit the new record with the existing data unless the input is populated. In this case, you want to store this value in the record.-Right after the GET RECORD, you're going to use an EDIT RECORD function and the ID or any field name/value should be the same. If you click on the magic wand icon in the middle of the settings of the EDIT RECORD function, you will be able to automatically map the fields with the output variable of the previous GET RECORD
- Then, you will use a filter called SET_IFNOTEMPTY in the value inputs you want to update, and the values of this filter will be the inputs.
All this process can be seen in the loom video below
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