Hi there,
I have two questions regarding forms 9i.
1. With multiple forms how do you access what has just been entered in the previous form. For mine I have several forms to go through but Im unsure as to how to obtain what I just entered. In the initial screen the primary key is assigned sequentially; this is then saved along with other information. The next screen I would like to save further information but assigning it to that primary key which was just given.
2. I'm having a problem with the sequential primary key. I have a sequence and the trigger which work fine for one table. However there is another second table which uses this primary key too as its own (primary foreign if you will). If I leave the data fields for this table blank it saves the first tables information fine and sequence works. However if I put anything in the second table I get an integrity constraint error saying the parent key cannot be found. I have set up the master-detail relationship in Forms between the two tables so Im unsure as to what to do now?
Any help would be appreciated!
I have two questions regarding forms 9i.
1. With multiple forms how do you access what has just been entered in the previous form. For mine I have several forms to go through but Im unsure as to how to obtain what I just entered. In the initial screen the primary key is assigned sequentially; this is then saved along with other information. The next screen I would like to save further information but assigning it to that primary key which was just given.
2. I'm having a problem with the sequential primary key. I have a sequence and the trigger which work fine for one table. However there is another second table which uses this primary key too as its own (primary foreign if you will). If I leave the data fields for this table blank it saves the first tables information fine and sequence works. However if I put anything in the second table I get an integrity constraint error saying the parent key cannot be found. I have set up the master-detail relationship in Forms between the two tables so Im unsure as to what to do now?
Any help would be appreciated!