Hello,
I want to convert an buffer into a container and for this I used buf2con() function. Then I use this container for a second buffer with the con2buf() function.
Now I want change some values and write the data back to the database using the update() function. But it is not working. No error message, no exception, just nothing happened. An insert() worked. Any suggestions?
Here is my example
{ MyTable buf1; MyTable buf2; container c; str 10 keyId = "1"; ; buf1.KeyId = keyId; buf1.Text = "Hello World"; buf1.insert(); select * from buf1 where buf1.KeyId == keyId; c = buf2con(buf1); con2buf(c, buf2); if(buf2) { buf2.selectForUpdate(true); ttsbegin; buf2.Text = "Hello! Need Help :)"; buf2.update(); ttscommit; } //reread buf1 but the value of field 'text' is still 'Hello World' select * from buf1 where buf1.KeyId == keyId; info(buf1.Text); }