Skip to Main Content

APEX

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Calling an HTP procedure

10275Oct 22 2003 — edited Nov 3 2003
I created a procedure using the SQL Command Proccessor that contains HTP calls, and granted execute on this procedure to public. Now I want to call this procedure in a popup window but I am not sure what schema I use to call the procedure. Normally (if I built this using SQL*Plus and Apache), I would call a procedure like this http://www.foo.com/pls/htmldb/user_schema.CAL_REP?p_event_id=1. However, this does not work with the listed User schema or the flow's user. Is there a way to do this sort of thing?

1 procedure "CAL_REP" (p_event_id IN NUMBER)
2 is
3
4 enotes varchar2(250);
5
6
7 begin
8 htp.p('<html><body><table>');
9
10 EXECUTE IMMEDIATE 'select EVENT_NOTES from FLOWS_010308.PTSA_SCH_EVENTS where ID = p_event_id'
11 into enotes;
12
13 htp.p('<tr>');
14 htp.p('<td>'||enotes||'</td>');
15 htp.p('</tr>');
16 htp.p('</table></body></html>');
17 end;
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Dec 1 2003
Added on Oct 22 2003
8 comments
610 views