FRM-40508: Oracle error: unable to INSERT record (Simple/Weird error) [message #568820] |
Tue, 16 October 2012 21:35 |
|
reppihsrow
Messages: 22 Registered: October 2012
|
Junior Member |
|
|
I have this error. To put it simply I have two blocks.
Block1 contains two drop down list with PL/SQL statements for queries.
Block2 contains tabular form created from block wizard (I tried already in manual)
that will catch the result in Block1 queries.
Now I have a button with a trigger when-button-pressed that contains
BEGIN
INSERT INTO dummy1
VALUES ('hello',1,2,3);
COMMIT;
END;
My goal is to add into dummy1 values from :block2.item_name1, :block2.item_name2, :block2.item_name3
but to put it simply I tried these values but I received the same error.
When I run it and first things first click the button, the values will be added into dummy1 table
but when I execute the block1 - dropdown list queries and try to press the button. I received the error.
Please help me. I urgently need this. Thanks.
|
|
|
|
|
|
|
Re: FRM-40508: Oracle error: unable to INSERT record (Simple/Weird error) [message #569701 is a reply to message #569684] |
Wed, 31 October 2012 07:22 |
cookiemonster
Messages: 13963 Registered: September 2008 Location: Rainy Manchester
|
Senior Member |
|
|
reppihsrow wrote on Wed, 31 October 2012 10:12I don't get this statement. 'It's rare to need manual inserts in forms.'
Manual insert = hard coded insert statement.
Oracle forms default processing constructs the necessary inserts to insert data from a datablock to the DB.
I've written loads of forms and hardly ever coded an insert statement (or update or delete).
reppihsrow wrote on Wed, 31 October 2012 10:12
And obviously, one or two or almost every button must use insert statement to our table in order to get the value using the bind reference ( : ) in every blocks.
It might be obvious to you but it isn't to me, and your business flow is a bit to high level to make it clear.
How many datablocks do you have?
What data goes in what block?
|
|
|
|
|
|
|
|
|
|
|
Re: FRM-40508: Oracle error: unable to INSERT record (Simple/Weird error) [message #669068 is a reply to message #669062] |
Sat, 31 March 2018 04:03 |
|
Littlefoot
Messages: 21823 Registered: June 2005 Location: Croatia, Europe
|
Senior Member Account Moderator |
|
|
Why not?
Even if you don't use it, users can use the form through keyboard keys (as they have always could, since Forms 3.0 which were my first Forms version, when there was no "toolbar" at all). You could, of course, disable those keys as well, but then the next question arises: why do you use Forms at all? Switch to SQL*Plus and do everything manually.
|
|
|