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!

Show output from stored procedure on APEX

37104Sep 3 2008 — edited Sep 4 2008
Hi,

I have a stored PL/SQL procedure which will be executed when a SUBMIT button is pressed.
Inside this procedure, it performs a DDL statment and keeps the result of DDL in a variable on every LOOP. The value of this variable will be overwritten by the next execution.

For example.

For i in 1..ULIMIT Loop
execute immediate 'alter var2(i) blah blah...';
result message := 'Running ok';
EXCEPT
WHEN OTHERS THEN
result_message := 'Error';
END LOOP;

I guess I can create a large number of hidden items to store the value of variable from my procedure, but I dont think this is a good idea? Because the value of ULIMIT can be changed. Is there a way I can keep the value of this variable of each loop and display in an APEX report?
This post has been answered by Denes Kubicek on Sep 4 2008
Jump to Answer
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Oct 2 2008
Added on Sep 3 2008
5 comments
3,028 views