Home » Developer & Programmer » Application Express, ORDS & MOD_PLSQL » Passing date parameter into anomynous pl/sql block in APEX (Oracle Apex 3.0,1)
Passing date parameter into anomynous pl/sql block in APEX [message #508889] |
Tue, 24 May 2011 21:33  |
 |
komasi75
Messages: 3 Registered: May 2011 Location: new zealand
|
Junior Member |
|
|
I have a report that groups 'user action' into 'action type' (ie. Add, Update, Delete) that is generated when a 'PROCESSES' which has a PL/SQL anonmynous block as it source, is kicked off.
I've sinced amended the PL/SQL package, that the APEX report calls, to include "Start Date" and "End Date" parameters. I can run this package using SQL PLUS;
SQL> begin
2 dp_monthly_test_pkg.kick_off_run(P_START_DATE => '01-JAN-2011', P_END_DATE => '10-APR-2011');
3 end;
4 /
PL/SQL procedure successfully completed.
In my APEX report I have added 2 'ITEMS' to cater for the new parameters (P46_START_DATE and P46_END_DATE), but when I include these parameters in the 'PROCESSES' (anomynous block), nothing happens;
DECLARE
v_job NUMBER;
BEGIN
DBMS_JOB.SUBMIT
( v_job, 'BEGIN
DP_MONTHLY_TEST_PKG.KICK_OFF_RUN(P_START_DATE => :P46_START_DATE,
P_END_DATE => :P46_END_DATE);
END;',SYSDATE);
COMMIT;
END;
Can anyone help please?
[Updated on: Tue, 24 May 2011 21:35] Report message to a moderator
|
|
|
|
|
Goto Forum:
Current Time: Thu Mar 13 20:20:07 CDT 2025
|