Welcome to the nuBuilder Forums!
Register and log in to access exclusive forums and content available only to registered users.
Register and log in to access exclusive forums and content available only to registered users.
Duplicate records after update Topic is solved
Duplicate records after update
This screen worked fine for a couple of years. After an update in Jan, it started to create double records when adding a new one or selecting a new one.
So now I have to delete the second record from the linking table. Any ideas?You do not have the required permissions to view the files attached to this post.
Re: Duplicate records after update
In the words of Rosanna Rosanna Dantana. Never mind. There was an attempt at auto saving the form (which didn't work) but now works as part of the system. Some how it was making the duplicate records. Removing this code resolved the issue.
-
- nuBuilder Team
- Posts: 4292
- Joined: Sun Oct 14, 2018 6:43 pm
- Has thanked: 71 times
- Been thanked: 444 times
- Contact:
Re: Duplicate records after update
It would be interesting to know what script was used to find the root of the issue. Understanding the specific script or code that was causing the problem could provide valuable insights into how similar issues can be prevented in the future. It would also help to identify any potential flaws in the code that may have caused the issue, and to develop more robust and reliable solutions going forward.
Re: Duplicate records after update
Rats, I deleted the code. IIRC there were on click events on the subform object on the main form to check if the parent record was saved and if not then to save it. It didn't resolve the issue and it looks like the update now does that automatically, so no one will need to implement work arounds in the future.