DBA Data[Home] [Help]

APPS.FND_GFM dependencies on HTP

Line 516: htp.htmlOpen;

512: if (fnd_web_config.check_enabled(proc) = 'Y') then
513: cmd := 'begin '||proc||'(:1); end;';
514: execute immediate cmd using in arg;
515: else
516: htp.htmlOpen;
517: htp.headOpen;
518: htp.title('Access Denied');
519: htp.headClose;
520: htp.bodyOpen;

Line 517: htp.headOpen;

513: cmd := 'begin '||proc||'(:1); end;';
514: execute immediate cmd using in arg;
515: else
516: htp.htmlOpen;
517: htp.headOpen;
518: htp.title('Access Denied');
519: htp.headClose;
520: htp.bodyOpen;
521: htp.p('Access Denied');

Line 518: htp.title('Access Denied');

514: execute immediate cmd using in arg;
515: else
516: htp.htmlOpen;
517: htp.headOpen;
518: htp.title('Access Denied');
519: htp.headClose;
520: htp.bodyOpen;
521: htp.p('Access Denied');
522: htp.hr;

Line 519: htp.headClose;

515: else
516: htp.htmlOpen;
517: htp.headOpen;
518: htp.title('Access Denied');
519: htp.headClose;
520: htp.bodyOpen;
521: htp.p('Access Denied');
522: htp.hr;
523:

Line 520: htp.bodyOpen;

516: htp.htmlOpen;
517: htp.headOpen;
518: htp.title('Access Denied');
519: htp.headClose;
520: htp.bodyOpen;
521: htp.p('Access Denied');
522: htp.hr;
523:
524: -- If the procedure contains an HTML tag, don't display it.

Line 521: htp.p('Access Denied');

517: htp.headOpen;
518: htp.title('Access Denied');
519: htp.headClose;
520: htp.bodyOpen;
521: htp.p('Access Denied');
522: htp.hr;
523:
524: -- If the procedure contains an HTML tag, don't display it.
525: --

Line 522: htp.hr;

518: htp.title('Access Denied');
519: htp.headClose;
520: htp.bodyOpen;
521: htp.p('Access Denied');
522: htp.hr;
523:
524: -- If the procedure contains an HTML tag, don't display it.
525: --
526: if (instr(proc,'<') > 0) then

Line 527: htp.p('Not authorized to access procedure.');

523:
524: -- If the procedure contains an HTML tag, don't display it.
525: --
526: if (instr(proc,'<') > 0) then
527: htp.p('Not authorized to access procedure.');
528: else
529: htp.p('Not authorized to access '||proc||'.');
530: end if;
531:

Line 529: htp.p('Not authorized to access '||proc||'.');

525: --
526: if (instr(proc,'<') > 0) then
527: htp.p('Not authorized to access procedure.');
528: else
529: htp.p('Not authorized to access '||proc||'.');
530: end if;
531:
532: htp.bodyClose;
533: htp.htmlClose;

Line 532: htp.bodyClose;

528: else
529: htp.p('Not authorized to access '||proc||'.');
530: end if;
531:
532: htp.bodyClose;
533: htp.htmlClose;
534: end if;
535:
536: exception

Line 533: htp.htmlClose;

529: htp.p('Not authorized to access '||proc||'.');
530: end if;
531:
532: htp.bodyClose;
533: htp.htmlClose;
534: end if;
535:
536: exception
537: when others then

Line 852: htp.print('Success');

848: * in the database.
849: */
850: PROCEDURE test is
851: begin
852: htp.print('Success');
853: end;
854: /*--------------------------------------------------------------------------*/
855: /*
856: * get_iso_charset

Line 938: htp.p(Fnd_Message.Get_String('PAY','HR_51401_WEB_NOT_AUTHORIZED'));

934: doc blob;
935: ct varchar2(100);
936: begin
937: if (fnd_gfm.authenticate(access, file_id) = FALSE) then
938: htp.p(Fnd_Message.Get_String('PAY','HR_51401_WEB_NOT_AUTHORIZED'));
939: else
940: fnd_gfm.download_blob(file_id);
941:
942: if (purge = 'yes') then

Line 1056: htp.p('Content-Disposition: attachment; filename='||'"'||fn||'"');

1052:
1053: -- Mime sniffing bug 11706983: force to download as an attachment in IE
1054:
1055: if ((instr(c_browser,'MSIE') > 0) and pn <> 'export' and ct='text/plain') then
1056: htp.p('Content-Disposition: attachment; filename='||'"'||fn||'"');
1057: end if;
1058:
1059: if (pn = 'export' and nce is not null) then
1060: htp.p( 'Content-length: ' || dbms_lob.getlength(lob_loc));

Line 1060: htp.p( 'Content-length: ' || dbms_lob.getlength(lob_loc));

1056: htp.p('Content-Disposition: attachment; filename='||'"'||fn||'"');
1057: end if;
1058:
1059: if (pn = 'export' and nce is not null) then
1060: htp.p( 'Content-length: ' || dbms_lob.getlength(lob_loc));
1061: else
1062: htp.p( 'Content-length: ' || dbms_lob.getlength(doc));
1063: end if;
1064: /* Commenting out the following do resolve the issue with Export

Line 1062: htp.p( 'Content-length: ' || dbms_lob.getlength(doc));

1058:
1059: if (pn = 'export' and nce is not null) then
1060: htp.p( 'Content-length: ' || dbms_lob.getlength(lob_loc));
1061: else
1062: htp.p( 'Content-length: ' || dbms_lob.getlength(doc));
1063: end if;
1064: /* Commenting out the following do resolve the issue with Export
1065: failing on Internet Explorer.
1066: htp.p( 'Cache-Control: no-cache' ); */

Line 1066: htp.p( 'Cache-Control: no-cache' ); */

1062: htp.p( 'Content-length: ' || dbms_lob.getlength(doc));
1063: end if;
1064: /* Commenting out the following do resolve the issue with Export
1065: failing on Internet Explorer.
1066: htp.p( 'Cache-Control: no-cache' ); */
1067: owa_util.http_header_close;
1068: if (pn = 'export' and nce is not null) then
1069: wpg_docload.download_file(lob_loc);
1070: dbms_lob.freetemporary(lob_loc);

Line 1078: htp.htmlOpen;

1074: end if;
1075:
1076: exception
1077: when no_data_found then
1078: htp.htmlOpen;
1079: htp.headOpen; htp.title('404 Not Found'); htp.headClose;
1080: htp.bodyOpen; htp.hr; htp.header(nsize=>1, cheader=>'HTTP Error 404');
1081: htp.hr;
1082: htp.p(Fnd_Message.Get_String('GMD','LM_BAD_FILENAME'));

Line 1079: htp.headOpen; htp.title('404 Not Found'); htp.headClose;

1075:
1076: exception
1077: when no_data_found then
1078: htp.htmlOpen;
1079: htp.headOpen; htp.title('404 Not Found'); htp.headClose;
1080: htp.bodyOpen; htp.hr; htp.header(nsize=>1, cheader=>'HTTP Error 404');
1081: htp.hr;
1082: htp.p(Fnd_Message.Get_String('GMD','LM_BAD_FILENAME'));
1083: htp.bodyClose; htp.htmlClose;

Line 1080: htp.bodyOpen; htp.hr; htp.header(nsize=>1, cheader=>'HTTP Error 404');

1076: exception
1077: when no_data_found then
1078: htp.htmlOpen;
1079: htp.headOpen; htp.title('404 Not Found'); htp.headClose;
1080: htp.bodyOpen; htp.hr; htp.header(nsize=>1, cheader=>'HTTP Error 404');
1081: htp.hr;
1082: htp.p(Fnd_Message.Get_String('GMD','LM_BAD_FILENAME'));
1083: htp.bodyClose; htp.htmlClose;
1084: when others then

Line 1081: htp.hr;

1077: when no_data_found then
1078: htp.htmlOpen;
1079: htp.headOpen; htp.title('404 Not Found'); htp.headClose;
1080: htp.bodyOpen; htp.hr; htp.header(nsize=>1, cheader=>'HTTP Error 404');
1081: htp.hr;
1082: htp.p(Fnd_Message.Get_String('GMD','LM_BAD_FILENAME'));
1083: htp.bodyClose; htp.htmlClose;
1084: when others then
1085: fnd_gfm.err_msg('download_blob');

Line 1082: htp.p(Fnd_Message.Get_String('GMD','LM_BAD_FILENAME'));

1078: htp.htmlOpen;
1079: htp.headOpen; htp.title('404 Not Found'); htp.headClose;
1080: htp.bodyOpen; htp.hr; htp.header(nsize=>1, cheader=>'HTTP Error 404');
1081: htp.hr;
1082: htp.p(Fnd_Message.Get_String('GMD','LM_BAD_FILENAME'));
1083: htp.bodyClose; htp.htmlClose;
1084: when others then
1085: fnd_gfm.err_msg('download_blob');
1086: raise;

Line 1083: htp.bodyClose; htp.htmlClose;

1079: htp.headOpen; htp.title('404 Not Found'); htp.headClose;
1080: htp.bodyOpen; htp.hr; htp.header(nsize=>1, cheader=>'HTTP Error 404');
1081: htp.hr;
1082: htp.p(Fnd_Message.Get_String('GMD','LM_BAD_FILENAME'));
1083: htp.bodyClose; htp.htmlClose;
1084: when others then
1085: fnd_gfm.err_msg('download_blob');
1086: raise;
1087: end download_blob;

Line 1218: htp.p(Fnd_Message.Get_String('PAY','HR_51401_WEB_NOT_AUTHORIZED'));

1214: access := substr(p_path,instr(p_path,'/',1)+1,instr(p_path,'/',2)-2);
1215: l_file_id := substr(p_path,instr(p_path,'/',2)+1,(instr(p_path,'/',-1)-instr(p_path,'/',2)-1));
1216:
1217: if (fnd_gfm.authenticate(access, l_file_id) = FALSE) then
1218: htp.p(Fnd_Message.Get_String('PAY','HR_51401_WEB_NOT_AUTHORIZED'));
1219: else
1220:
1221: if (fnd_log.LEVEL_STATEMENT >= fnd_log.G_CURRENT_RUNTIME_LEVEL) then
1222: fnd_log.string(fnd_log.LEVEL_STATEMENT, l_module_source,'Downloading file_id '||to_char(l_file_id));