Hello all. I need some advice.
We have a simple Dexterity screen that lists some records.
When we click on a record and then an "Update" button, the record is opened in the Update window using a "change table xxx" command.
Whether I change any values or not on the update screen, when I click on the save button, it copies the record from the screen to the table and then issues a save table xxx command.
so...
copy from window update to table xxx;
save table xxx;
Even though I am the only person using the system (it is on a test platform at the moment), I keep getting a RECORDCHANGED error when I check the errors after the save command.
Oddly, if I run this screen on a different server, I do not get any error.
Does anyone have an idea what is going on? I have also seen it throw up a DUPLICATE error as well.
Regards,
Mark
Hi Mark
How are you setting the key fields in the table buffer?
Have you used the debugger to check the table buffer just before the save table command?
Are you using err() or check error to see the errors?
Have you confirmed that your table indexes are set up properly.
Do you have a second window on the form which has the key fields on it as well? This can cause issues if the values on the key fields are not synchronized. It is one of the examples in the training, but the solution in the training materials to turn off Auto Copy is NOT the best solution.
Regards
David
Stay up to date on forum activity by subscribing. You can also customize your in-app and email Notification settings across all subscriptions.
André Arnaud de Cal... 290,522 Super User 2024 Season 2
Martin Dráb 228,441 Most Valuable Professional
nmaenpaa 101,148