Okay, I was looking through some of Carl's examples and saw where he showed doing a SVG Chart from an application process and decided that's what I wanted to do, but I'm having a time getting it to work.
Here's what I've done:
1) Create application level process:
DECLARE
v_random number;
begin
v_random := trunc(dbms_random.value(100000,999999));
owa_util.mime_header( ccontent_type => 'image/svg+xml', bclose_header => FALSE, ccharset => 'utf-8');
htp.p('Expires: Thu, 29 Oct 2000 17:04:19 GMT');
htp.p('Pragma: no-cache');
htp.p('Cache-Control: no-cache');
owa_util.http_header_close;
htp.p('<?xml version="1.0" standalone="no"?>');
htp.p('<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg" version="1.1">');
htp.p('<desc>Image generation demo</desc>');
htp.p('<rect x="1" y="1" width="99" height="99" fill="yellow" stroke="navy" stroke-width="1" />');
htp.p('<text x="10" y="50" font-size="20" fill="blue">');
htp.p(v_random);
htp.p('</text>');
htp.p('</svg>');
end;
Settings are:
Process Point: On Demand
Type: PL/SQL Anonymous Block
In the region footer of the page I'm working on, I changed the code to look like this:
<embed src="f?p=&APP_ID.:0:&APP_SESSION.:APPLICATION_PROCESS=word_verification" width="70" height="40" type="image/svg+xml" />
I've noted that word_verification is the correct name for my process, but I'm not getting anything back. It doesn't appear that the process is running.
To test that theory, I added an insert statement to the process and I don't seem to get any results from that either.
I do have a page zero (ID of 0 - name of Page Zero) in my app, but I didn't do anything to it for this procedure? Do I need to?
By the way, the link to what I was looking at is here:
http://htmldb.oracle.com/pls/otn/f?p=11933:25
Thanks,
Chad