Is that possible to use INSERT, UPDATE or DELETE in WHEN-BUTTON-PRESSED, a button trigger? For example,

INSERT INTO TABLE (A) VALUES (:BLOCK.ID);

is that legal??

I do insert, but when I save I get an error message: 'record alread inserted' .... ???

I don't want to use DEFAULT&SMARTBAR for inserting data in my table, I want to do it with my own objects...

thanks in advance.
F.