For our project, we wanted to be able to update data via the web. If somebody changed their address, got a new phone number, etc, we thought it would be nice to be able to update this information without altering their ID. So, we decided to implement this functionality. I was going to blog about my troubles relating to this yesterday night, but after working through it some more, it is now functioning just fine. No need to blog about a problem. So, I thought I'd blog about our success, and give some pointers to any other group that is considering implementing a similar ability, as it was kind of frustrating to figure out.
The key is that you cannot treat UPDATE the same as INSERT, meaning no bind-params and a bunch of question marks. Instead, in the relevant XSQL page, you need page-params and an UPDATE command similar to the following:
xsql:set-page-param name="itemA" value="{@itemA}"
UPDATE tableA SET itemA = '{@itemA}'
WHERE itemB = '{@itemB}';
COMMIT;
Hopefully this will help another group out that is trying to do this. If you want, you can check out this functionality by visiting our user interface page here.