Executing Server side procedure and publishing result on HTML

source code will be avalibale soon
web.show_document('http://moiserver:7778/appweb/PKG_Download_BLOB.Download_Blob?P_tbl=CE_NOTICE&p_tranid=':CE_NOTICE.NOTICE_RECID,'_blank');
END;


another example
CREATE OR REPLACE procedure TEST.queryemp is
cursor emp_cur is
select ename,sal
from emp;
begin
htp.prn('');
htp.prn(' ');
htp.prn('Employee Data');
htp.prn(' ');
htp.prn(' ');
for i in emp_cur loop
htp.prn('');
htp.prn('');
htp.prn('
'||i.ename||'
');
end loop;
htp.prn(' ');
htp.prn('');
end;
/
--- dads conf

SetHandler pls_handler
Order allow,deny
Allow from All
AllowOverride None
PlsqlDatabaseUsername test
PlsqlDatabasePassword test
PlsqlDatabaseConnectString pmstst
PlsqlNLSLanguage AMERICAN_AMERICA.AL32UTF8
PlsqlAuthenticationMode Basic
PlsqlDocumentTablename smm_doc_table
PlsqlDocumentPath docs
PlsqlDocumentProcedure wwdoc_process.process_download
PlsqlDefaultPage portal.home
PlsqlPathAlias url
PlsqlPathAliasProcedure wwpth_api_alias.process_download

-- restart http server
-- run this url
http://iai2.iai.org.kw:7778/myapp/queryemp


Comments

Popular posts from this blog

Another user has changed the row with primary key oracle.jbo.Key[12 ].

Working With File Throgh WebUtill

weblogic windows JPS-01050: Opening of wallet based credential store failed. Reason java.io.IOException: Failed to lock cwallet.sso.lck