forms built-in : create_record/delete_record [message #83349] |
Tue, 30 September 2003 01:03 |
bluebyte
Messages: 25 Registered: September 2003
|
Junior Member |
|
|
hi!
hav written the followin code as a part of toolbar package...
PROCEDURE createrecord
IS
BEGIN
GO_BLOCK(':PTSH_NAME_JOINT_NAMES_TEMP');
create_record;
GO_BLOCK(':PTSH_FOLIO_ADDRS_TEMP');
create_record;
END;
my form has 2 blocks as listed above.
when i click on the button (do_key),i get a message
sayin "there's no such block as :ptsh_name_joint_names_temp"...same for the second block also.
* second issue is that....in the first block's properties, i hav set the next data navigation block as the name of second block...
but, even after i hit the tab on last item in first block...the cursor doesnt move to next block..i need to click on the first item of block 2 to input data.
how to fix this?
|
|
|
|
package blues.... [message #83358 is a reply to message #83350] |
Tue, 30 September 2003 05:32 |
bluebyte
Messages: 25 Registered: September 2003
|
Junior Member |
|
|
hi!
i have a db package *psa_de* which holds
1.procedure *sp_add_name* - inserts block 1 data into table 1
2.procedure *sp_add_address* - inserts block 2 data into table 2.
i have a toolbar in my template form.when i click save button ,
*key-commit* trigger is fired.this trigger in turn calls
f_pkg_name_de.fp_commit_name_add
f_pkg_name_de is a form package. it holds procedure
fp_commit_name_add. this procedure calls the 2 db SPs...
issue: when i click save, i get an error, "unable to insert record". pls help me fix this...
regards,
ganga
|
|
|
|
Re: package blues.... [message #83362 is a reply to message #83359] |
Tue, 30 September 2003 07:42 |
bluebyte
Messages: 25 Registered: September 2003
|
Junior Member |
|
|
hi!
the oracle error was ora-01400 "unable to insert NULL into table 1".
issue: i tested the 2 procedures from sql*plus...with the same data..it works jus fine! the problem is with a not null field *user_id*...
in sqlplus, i gave 'GNG'...it worked..
iam passing same string thro form..but it's not workin...
any ideas??
cheers,
ganga
|
|
|
Re: package blues.... [message #83366 is a reply to message #83362] |
Tue, 30 September 2003 23:17 |
bluebyte
Messages: 25 Registered: September 2003
|
Junior Member |
|
|
hi!
the said SP in db package has an INSERT statement like
INSERT INTO tab1 (a,b,c,d) values(p_a,p_b,p_c,p_d);
issue: when i press shift F1 in the form, the db error shows the sql statement as -
INSERT INTO tab1 (a,b,c) values (p_a,p_b,p_c) ;
column *d* & parameter *p_d* are missing!!!
this beats me...i checked out the db package n everything is intact there...
pls reply asap...
thnx,
ganga
|
|
|
|
Re: package blues....new issue [message #83370 is a reply to message #83366] |
Wed, 01 October 2003 01:24 |
bluebyte
Messages: 25 Registered: September 2003
|
Junior Member |
|
|
hi!
actually the parameter contained a null value..
i fixed it..
but, now a new error is croppin up..
ora-00001 :unique constraint error (pk_table1)
though this is the first record iam insertin into tht
table 1, am gettin this error...
wot's the fix??
kindly reply...
|
|
|
|
Re: invalid program unit.... [message #83372 is a reply to message #83371] |
Wed, 01 October 2003 08:04 |
bluebyte
Messages: 25 Registered: September 2003
|
Junior Member |
|
|
hi!
when i get into debug mode in forms 5.0,
n try to put a break point within a package,
i get an error *pde-jsx036 invalid program unit*.
so,it's not possible to get to know the values my parameters are passing...
how do i get rid of this error?
|
|
|
Re: invalid program unit.... [message #83378 is a reply to message #83372] |
Thu, 02 October 2003 01:56 |
|
Maaher
Messages: 7065 Registered: December 2001
|
Senior Member |
|
|
Open SQL*Plus and look at the table itself and verify that the table is really empty as you suspect.
Also, you could try with different values.
MHE
|
|
|