|
|
|
|
Re: INSERT INTO TWO TABLE WITH FOREIGN KEY [message #661016 is a reply to message #661007] |
Sun, 05 March 2017 04:23   |
 |
Littlefoot
Messages: 21823 Registered: June 2005 Location: Croatia, Europe
|
Senior Member Account Moderator |
|
|
Reading your messages on OraFAQ Forum, I have the impression that you are doing everything you can to make your life (as a Forms developer) as miserable as possible. I can't remember whether I met someone (here, on the Forum) as stubborn as you. Every action you take, every task you have, you do it in a wrong manner.
Therefore, I have a suggestion for you: switch to Java. I've attended a 5-days course for Java beginners; the last day we asked the instructor to create a master-detail form on Scott's standard EMP and DEPT tables. In Forms, this is a 2-minutes job. A colleague of mine uses Delphi and he created the form in a matter of minutes too. However, our Java instructor needed several hours (honestly, I'm not exaggerating) and, eventually, didn't finish the task. Now, one could blame the person (who didn't know how to do it), or the tool (Java itself).
As everything you do, you do it as complicated and difficult as possible, I think that Java should be your choice. Give up on Forms, that's too simple for you.
To answer your last message: feel free to do it any way you want, but I'm afraid I won't take part in such a Forms massacre.
|
|
|
|
|
|
Re: INSERT INTO TWO TABLE WITH FOREIGN KEY [message #661044 is a reply to message #661025] |
Mon, 06 March 2017 02:55   |
cookiemonster
Messages: 13965 Registered: September 2008 Location: Rainy Manchester
|
Senior Member |
|
|
You should really try just seeing what forms default behaviour does.
Create two blocks with a relationship using the wizards.
Write no code.
Run the form.
Insert data into both blocks.
Click save.
See what happens.
|
|
|
|
|
Re: INSERT INTO TWO TABLE WITH FOREIGN KEY [message #661055 is a reply to message #661051] |
Mon, 06 March 2017 03:59   |
cookiemonster
Messages: 13965 Registered: September 2008 Location: Rainy Manchester
|
Senior Member |
|
|
I've written lots of forms over the years. Hardly any of them contain insert/update/delete statements.
Vast majority of code I wrote was validation code.
You need to get your head around forms default behaviour and make use of it as much as possible.
Then every time you find yourself bypassing / suppressing that default behaviour you need to ask yourself if that's really necessary.
|
|
|
|