Articles Oracle Forms, PL/SQL, Java, J2EE
For a checking out purpose, I would be able to display the HTML content of a Text Item in the default Internet Browser window.
My first thought was to create a HTML file on the local machine then call it with the Webutil functions:
That does the job, but requires that Webutil is configured.
So I thought about eliminating all the Webutil stuff by concentrating all the logical within a single Web.Show_Document() call:
PROCEDURE HTML_Display
IS
LC$Output Varchar2(32000);
LC$Texte Varchar2(32000) := Name_In(:system.trigger_item) ;
Begin
-- HTML output that needs no file generation ! --
LC$Output := 'javascript:document.write("' ;
LC$Output := LC$Output || '<html><body><FONT face=sans-serif size=3>' ;
LC$Output := LC$Output || replace( LC$Texte, CHR(10), '<br>') ;
LC$Output := LC$Output || '</body></html>");' ;
web.show_document(LC$Output,'_blank');
End;