I am having a problem inserting into my table. I know that all the data is there because I ran the form in debug and I can see all the data on the stack. I keep getting an ORA-00001 error. Could someone please help me figure out what I am doing wrong.
Sorry, I am not suggesting you don't understand your requirements.
I am saying that we may be having problem understanding your requirement which may be why everyone is coming up with conflicting solutions.
I've been out of the office and you have been having some fun. First, my favorite resource for forms is actually just the help reference that comes with forms. After seven years of working with forms, it has served me well, but the most important thing is to look at the flowcharts section. (Help Topics - type in flowchart) You can really mix yourself up by trying to avoid this. For example the On-insert trigger will replace the default form builder processing, so if you have any base table fields you think are populating and you haven't included them in your on-insert trigger (refer to insert_record built-in), they aren't.
After 14 years I still use my
"Oracle SQL*Plus Definitive Guide"/O'Reilly
ISBN 1-56592-578-5
and my Oracle PL/SQL Programming/Oracle Press
ISBN 0-07-882176-2
without shame in addition to the forms help.
As far as your sequence goes, you don't have to set the value to a variable anymore. Your insert statement can directly refer to seq.nextval. Even though it seems everything should work as you think sometimes, nothing beats some good troubleshooting, as in, did you ever try the insert from sqlplus? It usually really does give you a better clue and often when I try to skip this step I pay for it later. Especially as you try to write inserts for tables with a hundred or so fields.
Let me know if you want to write directly. I empathize with your situation as it can be very frustrating sometimes. There are many situations that make you scratch your head until you dig a little deeper.
Good Luck.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.