DBA Data[Home] [Help]

APPS.WFA_HTML dependencies on WF_CORE

Line 10: g_newline varchar2(1) := wf_core.newLine;

6: pragma EXCEPTION_INIT(invalid_number, -6502);
7:
8:
9: g_priority varchar2(2000);
10: g_newline varchar2(1) := wf_core.newLine;
11: g_wfInstall varchar2(15) := wf_core.translate('WF_INSTALL');
12: g_webAgent varchar2(2000) := wf_core.translate('WF_WEB_AGENT');
13:
14: --

Line 11: g_wfInstall varchar2(15) := wf_core.translate('WF_INSTALL');

7:
8:
9: g_priority varchar2(2000);
10: g_newline varchar2(1) := wf_core.newLine;
11: g_wfInstall varchar2(15) := wf_core.translate('WF_INSTALL');
12: g_webAgent varchar2(2000) := wf_core.translate('WF_WEB_AGENT');
13:
14: --
15: -- Error (PRIVATE)

Line 12: g_webAgent varchar2(2000) := wf_core.translate('WF_WEB_AGENT');

8:
9: g_priority varchar2(2000);
10: g_newline varchar2(1) := wf_core.newLine;
11: g_wfInstall varchar2(15) := wf_core.translate('WF_INSTALL');
12: g_webAgent varchar2(2000) := wf_core.translate('WF_WEB_AGENT');
13:
14: --
15: -- Error (PRIVATE)
16: -- Print a page with an error message.

Line 18: -- 1. wf_core errors

14: --
15: -- Error (PRIVATE)
16: -- Print a page with an error message.
17: -- Errors are retrieved from these sources in order:
18: -- 1. wf_core errors
19: -- 2. Oracle errors
20: -- 3. Unspecified INTERNAL error
21: --
22: procedure Error

Line 61: htp.title(wf_core.translate('WFA_LOGIN_REQUEST'));

57: -- Set the language to the default language for the system
58:
59: htp.htmlOpen;
60: htp.headOpen;
61: htp.title(wf_core.translate('WFA_LOGIN_REQUEST'));
62: wfa_html.create_help_function('wf/links/log.htm?LOGIN');
63: htp.headClose;
64: wfa_sec.Header(background_only=>FALSE, inc_lov_applet=>FALSE);
65:

Line 75: htp.header(4, wf_core.translate(message));

71: end if;
72:
73:
74: if (message is not null) then
75: htp.header(4, wf_core.translate(message));
76: htp.br;
77: end if;
78:
79: htp.br;

Line 83: wf_core.translate('USER_ID') ||

79: htp.br;
80: htp.tableOpen(calign=>'CENTER', cattributes=>'summary=""');
81: htp.tableRowOpen;
82: htp.tableData('', 'Right',
85: cattributes=>'id=""');
86: htp.tableData(htf.formText('User_ID', 25, cattributes=>'id="i_user_id"'),
87: 'Left', cattributes=>'id=""');

Line 92: wf_core.translate('PASSWORD') ||

88: htp.tableRowClose;
89:
90: htp.tableRowOpen;
91: htp.tableData('', 'Right',
94: cattributes=>'id=""');
95: htp.tableData(htf.formPassword('Password', 25,
96: cattributes=>'id="i_password"'), 'Left',

Line 112: wf_core.translate ('LOGIN'),

108:
109: htp.p('');
110:
111: wfa_html.create_reg_button ('javascript:document.WFA_LOGIN.submit()',
112: wf_core.translate ('LOGIN'),
113: wfa_html.image_loc,
114: 'FNDJLFOK.gif',
115: wf_core.translate ('LOGIN'));
116:

Line 115: wf_core.translate ('LOGIN'));

111: wfa_html.create_reg_button ('javascript:document.WFA_LOGIN.submit()',
112: wf_core.translate ('LOGIN'),
113: wfa_html.image_loc,
114: 'FNDJLFOK.gif',
115: wf_core.translate ('LOGIN'));
116:
117: htp.p('');
118:
119: htp.tableRowClose;

Line 127: wf_core.context('Wfa_Html', 'Login');

123: htp.htmlClose;
124: exception
125: when others then
126: rollback;
127: wf_core.context('Wfa_Html', 'Login');
128: wfa_html.Error;
129: end Login;
130:
131: --

Line 165: if (wf_core.error_name='WFSEC_USER_PASSWORD') then

161: begin
162: wfa_sec.CreateSession(username, password);
163: exception
164: when others then
165: if (wf_core.error_name='WFSEC_USER_PASSWORD') then
166: -- Bad username or password
167: wf_core.clear;
168: wfa_html.Login('WFA_ILLEGAL_IDP');
169: return;

Line 167: wf_core.clear;

163: exception
164: when others then
165: if (wf_core.error_name='WFSEC_USER_PASSWORD') then
166: -- Bad username or password
167: wf_core.clear;
168: wfa_html.Login('WFA_ILLEGAL_IDP');
169: return;
170: end if;
171: -- Raise any other error message

Line 203: wf_core.context('Wfa_Html', 'Viewer', user_id, password);

199:
200: exception
201: when others then
202: rollback;
203: wf_core.context('Wfa_Html', 'Viewer', user_id, password);
204: wfa_html.Error;
205: end Viewer;
206:
207:

Line 285: WFA_HTML.g_priority := WF_CORE.Translate('WFJSP_HIGH_PRIORITY');

281: return varchar2
282: as
283: begin
284: if (priority < 34) /* HIGH */ then
285: WFA_HTML.g_priority := WF_CORE.Translate('WFJSP_HIGH_PRIORITY');
286: return(wfa_html.image_loc||'high.gif');
287: elsif (priority > 66) /* LOW */ then
288: WFA_HTML.g_priority := WF_CORE.Translate('WFJSP_LOW_PRIORITY');
289: return(wfa_html.image_loc||'low.gif');

Line 288: WFA_HTML.g_priority := WF_CORE.Translate('WFJSP_LOW_PRIORITY');

284: if (priority < 34) /* HIGH */ then
285: WFA_HTML.g_priority := WF_CORE.Translate('WFJSP_HIGH_PRIORITY');
286: return(wfa_html.image_loc||'high.gif');
287: elsif (priority > 66) /* LOW */ then
288: WFA_HTML.g_priority := WF_CORE.Translate('WFJSP_LOW_PRIORITY');
289: return(wfa_html.image_loc||'low.gif');
290: else /* NORMAL */
291: return null;
292: end if;

Line 385: Wf_Core.Token('NID', nid);

381: from WF_NOTIFICATIONS WN
382: where WN.NOTIFICATION_ID = nid;
383: exception
384: when no_data_found then
385: Wf_Core.Token('NID', nid);
386: Wf_Core.Raise('WFNTF_NID');
387: end;
388:
389: -- Verify this notification was sent to this user

Line 386: Wf_Core.Raise('WFNTF_NID');

382: where WN.NOTIFICATION_ID = nid;
383: exception
384: when no_data_found then
385: Wf_Core.Token('NID', nid);
386: Wf_Core.Raise('WFNTF_NID');
387: end;
388:
389: -- Verify this notification was sent to this user
390: -- Note that username could be the in the recipient role

Line 471: admin_role := wf_core.translate('WF_ADMIN_ROLE');

467: exception
468: when no_data_found then
469: -- Check if current user has WF_ADMIN_ROLE privileges.
470: -- If so, allow access anyway.
471: admin_role := wf_core.translate('WF_ADMIN_ROLE');
472: if (admin_role <> '*' and
473: not Wf_Directory.IsPerformer(username, admin_role)) then
474: Wf_Core.Token('USER', username);
475: Wf_Core.Token('NID', to_char(nid));

Line 474: Wf_Core.Token('USER', username);

470: -- If so, allow access anyway.
471: admin_role := wf_core.translate('WF_ADMIN_ROLE');
472: if (admin_role <> '*' and
473: not Wf_Directory.IsPerformer(username, admin_role)) then
474: Wf_Core.Token('USER', username);
475: Wf_Core.Token('NID', to_char(nid));
476: Wf_Core.Raise('WFNTF_ACCESS_USER');
477: end if;
478: end;

Line 475: Wf_Core.Token('NID', to_char(nid));

471: admin_role := wf_core.translate('WF_ADMIN_ROLE');
472: if (admin_role <> '*' and
473: not Wf_Directory.IsPerformer(username, admin_role)) then
474: Wf_Core.Token('USER', username);
475: Wf_Core.Token('NID', to_char(nid));
476: Wf_Core.Raise('WFNTF_ACCESS_USER');
477: end if;
478: end;
479: else

Line 476: Wf_Core.Raise('WFNTF_ACCESS_USER');

472: if (admin_role <> '*' and
473: not Wf_Directory.IsPerformer(username, admin_role)) then
474: Wf_Core.Token('USER', username);
475: Wf_Core.Token('NID', to_char(nid));
476: Wf_Core.Raise('WFNTF_ACCESS_USER');
477: end if;
478: end;
479: else
480: -- Nkey passed, means this must be disconnected (mailed html).

Line 499: wf_core.raise('WFNTF_ACCESS_KEY');

495: end if;
496:
497: username := Wf_Notification.AccessCheck(wfsession);
498: if (username is null) then
499: wf_core.raise('WFNTF_ACCESS_KEY');
500: end if;
501: end if;
502:
503: return(username);

Line 507: wf_core.context('Wfa_Html', 'Authenticate', to_char(nid), nkey);

503: return(username);
504:
505: exception
506: when others then
507: wf_core.context('Wfa_Html', 'Authenticate', to_char(nid), nkey);
508: raise;
509: end Authenticate;
510:
511: --

Line 667: wf_core.context('Wfa_Html', 'RespFrameSize', to_char(nid));

663: return(respsize);
664:
665: exception
666: when others then
667: wf_core.context('Wfa_Html', 'RespFrameSize', to_char(nid));
668: raise;
669: end RespFrameSize;
670:
671: --

Line 731: htf.title(wf_core.translate('WFA_DTITLE')||' '||realname)||

727: result := htf.htmlOpen ||g_newLine;
728: result := result || htf.headOpen||g_newLine;
729: if (status = 'OPEN') then
730: result := result ||
731: htf.title(wf_core.translate('WFA_DTITLE')||' '||realname)||
732: g_newLine;
733: else
734: result := result ||
735: htf.title(wf_core.translate('WFA_CDTITLE')||' '||realname)||

Line 735: htf.title(wf_core.translate('WFA_CDTITLE')||' '||realname)||

731: htf.title(wf_core.translate('WFA_DTITLE')||' '||realname)||
732: g_newLine;
733: else
734: result := result ||
735: htf.title(wf_core.translate('WFA_CDTITLE')||' '||realname)||
736: g_newLine;
737: end if;
738:
739: --tr: dont execute the help function

Line 753: WF_CORE.Translate('WFA_DTITLE_TBAR') || '" LONGDESC="' ||

749: -- NOTE: Do NOT set the focus here, because it is not supported on
750: -- all platforms, and it is unknown at this point what browser will
751: -- be used to display the html returned to the mailer.
752: result := result||''||
756: g_newLine;
757: result := result ||

Line 761: WF_CORE.Translate('WFA_DTITLE_TBAR') || '" LONGDESC="' ||

757: result := result ||
758: ' 759: 'src="'||agent||'/wfa_html.DetailFrame?nid='||to_char(nid)||
760: '&'||'nkey='||key||'" TITLE="' ||
761: WF_CORE.Translate('WFA_DTITLE_TBAR') || '" LONGDESC="' ||
762: agent ||
763: 'wfa_html.LongDesc?p_token=WFA_DTITLE_TBAR">'||g_newLine;
764: result := result ||
765: '

Line 768: WF_CORE.Translate('WFA_DTITLE_TBAR') || '" LONGDESC="' ||

764: result := result ||
765: ' 766: 'src="'||agent||'/wfa_html.ResponseFrame?nid='||to_char(nid)||
767: '&'||'nkey='||key||'" TITLE="' ||
768: WF_CORE.Translate('WFA_DTITLE_TBAR') || '" LONGDESC="' ||
769: agent ||
770: 'wfa_html.LongDesc?p_token=WFA_DTITLE_TBAR">'||g_newLine;
771: result := result || ''||g_newLine;
772: result := result || htf.htmlClose;

Line 786: htf.title(wf_core.translate('WFA_LOGIN_REQUEST'))||

782:
783: result := htf.htmlOpen ||g_newLine;
784: result := result || htf.headOpen||g_newLine;
785: result := result ||
786: htf.title(wf_core.translate('WFA_LOGIN_REQUEST'))||
787: g_newLine;
788: result := result || htf.headClose||g_newLine;
789:
790: result := result||''||g_newLine;

Line 802: wf_core.context('Wfa_Html', 'Detail', to_char(nid), nkey, agent);

798:
799: return(result);
800: exception
801: when others then
802: wf_core.context('Wfa_Html', 'Detail', to_char(nid), nkey, agent);
803: raise;
804: end Detail;
805:
806: --

Line 846: htf.title(wf_core.translate('WFA_DTITLE')||' '||realname)||

842: result := htf.htmlOpen ||g_newLine;
843: result := result || htf.headOpen||g_newLine;
844: if (status = 'OPEN') then
845: result := result ||
846: htf.title(wf_core.translate('WFA_DTITLE')||' '||realname)||
847: g_newLine;
848: else
849: result := result ||
850: htf.title(wf_core.translate('WFA_CDTITLE')||' '||realname)||

Line 850: htf.title(wf_core.translate('WFA_CDTITLE')||' '||realname)||

846: htf.title(wf_core.translate('WFA_DTITLE')||' '||realname)||
847: g_newLine;
848: else
849: result := result ||
850: htf.title(wf_core.translate('WFA_CDTITLE')||' '||realname)||
851: g_newLine;
852: end if;
853:
854: result := result || htf.headClose||g_newLine;

Line 886: wf_core.context('Wfa_Html', 'Detail', to_char(nid), nkey, agent);

882:
883: return(result);
884: exception
885: when others then
886: wf_core.context('Wfa_Html', 'Detail', to_char(nid), nkey, agent);
887: raise;
888: end Detail2;
889:
890:

Line 910: wf_core.context('Wfa_Html', 'DetailLink', to_char(nid), nkey, agent);

906: -- bug 7314545
907: null;
908: exception
909: when others then
910: wf_core.context('Wfa_Html', 'DetailLink', to_char(nid), nkey, agent);
911: raise;
912: end DetailLink;
913:
914:

Line 1046: wf_core.raise('WFNTF_NO_SELECT');

1042: begin
1043: -- There is always a dummy nid passed in. We will handle it here.
1044: -- Make sure subsequent index start at 2 not 1.
1045: if (to_number(h_nids.count) = 1) then
1046: wf_core.raise('WFNTF_NO_SELECT');
1047: end if;
1048:
1049: -- Fully resolve forwardee name
1050: l_forwardee := forwardee;

Line 1143: install_type := wf_core.translate('WF_INSTALL');

1139: ** then use the file prefix method of getting to the help
1140: ** content. Otherwise use the fnd function method to get and
1141: ** display the help content.
1142: */
1143: install_type := wf_core.translate('WF_INSTALL');
1144:
1145: if (install_type = 'STANDALONE') THEN
1146:
1147: help_prefix := '/OA_DOC/';

Line 1166: htp.p(WF_CORE.Translate('WFA_NOSCRIPT'));

1162:
1163: htp.p('');
1164:
1165: htp.p('');
1168:
1169: else
1170:

Line 1191: Wf_Core.Context('wfa_html', 'create_help_function',

1187: end if;
1188:
1189: exception
1190: when others then
1191: Wf_Core.Context('wfa_html', 'create_help_function',
1192: p_help_file);
1193: wfa_html.Error;
1194:
1195: END create_help_function;

Line 1320: wf_core.raise('WFENG_PRECESSION_EXCEED');

1316: || '%' || substr(l_str,3,2)
1317: || '%' || substr(l_str,5,2)
1318: || '%' || substr(l_str,7,2);
1319: else -- maximum precision
1320: wf_core.raise('WFENG_PRECESSION_EXCEED');
1321: end if;
1322: end if;
1323: end loop;
1324: return l_tmp;

Line 1327: Wf_Core.Context('wfa_html', 'conv_special_url_chars',

1323: end loop;
1324: return l_tmp;
1325: exception
1326: when others then
1327: Wf_Core.Context('wfa_html', 'conv_special_url_chars',
1328: p_url_token);
1329: wfa_html.Error;
1330: END conv_special_url_chars;
1331:

Line 1466: wf_core.raise('WFENG_PRECESSION_EXCEED');

1462: || '%' || substr(l_str,3,2)
1463: || '%' || substr(l_str,5,2)
1464: || '%' || substr(l_str,7,2);
1465: else -- maximum precision
1466: wf_core.raise('WFENG_PRECESSION_EXCEED');
1467: end if;
1468: end if;
1469: end loop;
1470: return l_tmp;

Line 1473: Wf_Core.Context('wfa_html', 'encode_url',

1469: end loop;
1470: return l_tmp;
1471: exception
1472: when others then
1473: Wf_Core.Context('wfa_html', 'encode_url',
1474: p_url_token);
1475: wfa_html.Error;
1476: END encode_url;
1477:

Line 1605: htp.title(wf_core.translate('WFITD_ATTR_TYPE_DOCUMENT'));

1601: -- HTML or text document.
1602: htp.htmlOpen;
1603: htp.headOpen;
1604: htp.p('');
1605: htp.title(wf_core.translate('WFITD_ATTR_TYPE_DOCUMENT'));
1606: wfa_html.create_help_function('wfnew/wfnew52.htm#nrr');
1607: htp.headClose;
1608: wfa_sec.Header(FALSE, '',wf_core.translate('WFITD_ATTR_TYPE_DOCUMENT'),
1609: TRUE);

Line 1608: wfa_sec.Header(FALSE, '',wf_core.translate('WFITD_ATTR_TYPE_DOCUMENT'),

1604: htp.p('');
1605: htp.title(wf_core.translate('WFITD_ATTR_TYPE_DOCUMENT'));
1606: wfa_html.create_help_function('wfnew/wfnew52.htm#nrr');
1607: htp.headClose;
1608: wfa_sec.Header(FALSE, '',wf_core.translate('WFITD_ATTR_TYPE_DOCUMENT'),
1609: TRUE);
1610: htp.br;
1611:
1612: lobsize := dbms_lob.getlength(clob_loc);

Line 1681: htp.title(wf_core.translate('WFITD_ATTR_TYPE_DOCUMENT'));

1677: else
1678: -- Set page title
1679: htp.htmlOpen;
1680: htp.headOpen;
1681: htp.title(wf_core.translate('WFITD_ATTR_TYPE_DOCUMENT'));
1682: wfa_html.create_help_function('wfnew/wfnew52.htm#nrr');
1683: htp.headClose;
1684: wfa_sec.Header(FALSE, '',wf_core.translate('WFITD_ATTR_TYPE_DOCUMENT'),
1685: TRUE);

Line 1684: wfa_sec.Header(FALSE, '',wf_core.translate('WFITD_ATTR_TYPE_DOCUMENT'),

1680: htp.headOpen;
1681: htp.title(wf_core.translate('WFITD_ATTR_TYPE_DOCUMENT'));
1682: wfa_html.create_help_function('wfnew/wfnew52.htm#nrr');
1683: htp.headClose;
1684: wfa_sec.Header(FALSE, '',wf_core.translate('WFITD_ATTR_TYPE_DOCUMENT'),
1685: TRUE);
1686: htp.br;
1687:
1688: htp.p (doctext);

Line 1696: wf_core.context('Wfa_Html','show_plsql_doc',wf_core.substitutespecialchars(nid),

1692: end if;
1693:
1694: exception
1695: when others then
1696: wf_core.context('Wfa_Html','show_plsql_doc',wf_core.substitutespecialchars(nid),
1697: wf_core.substitutespecialchars(aname));
1698: wfa_html.Error;
1699: end show_plsql_doc;
1700:

Line 1697: wf_core.substitutespecialchars(aname));

1693:
1694: exception
1695: when others then
1696: wf_core.context('Wfa_Html','show_plsql_doc',wf_core.substitutespecialchars(nid),
1697: wf_core.substitutespecialchars(aname));
1698: wfa_html.Error;
1699: end show_plsql_doc;
1700:
1701: -- base_url

Line 1721: l_base_url := wf_core.translate ('WF_WEB_AGENT');

1717: LENGTH(RTRIM(owa_util.get_owa_service_path)) - 1);
1718:
1719: ELSE
1720:
1721: l_base_url := wf_core.translate ('WF_WEB_AGENT');
1722:
1723: END IF;
1724:
1725: EXCEPTION

Line 1728: l_base_url := wf_core.translate ('WF_WEB_AGENT');

1724:
1725: EXCEPTION
1726: WHEN OTHERS THEN
1727:
1728: l_base_url := wf_core.translate ('WF_WEB_AGENT');
1729:
1730: END;
1731:
1732: return (l_base_url);

Line 1736: wf_core.context('Wfa_Html','base_url');

1732: return (l_base_url);
1733:
1734: exception
1735: when others then
1736: wf_core.context('Wfa_Html','base_url');
1737: wfa_html.Error;
1738: end base_url;
1739:
1740: --

Line 1805: wf_lov.g_define_rec.add_attr1_title := wf_core.translate ('WFITD_INTERNAL_NAME');

1801: and (UPPER(display_name) LIKE UPPER(p_display_value)||'%');
1802:
1803: wf_lov.g_define_rec.total_rows := l_total_rows;
1804:
1805: wf_lov.g_define_rec.add_attr1_title := wf_core.translate ('WFITD_INTERNAL_NAME');
1806:
1807: open c_user_lov (p_display_value);
1808:
1809: LOOP

Line 1905: wf_core.context('Wfa_Html', 'wf_user_val');

1901:
1902: exception
1903: when others then
1904: rollback;
1905: wf_core.context('Wfa_Html', 'wf_user_val');
1906: raise;
1907: end wf_user_val;
1908:
1909:

Line 2021: wf_core.token('ROLE', p_display_name);

2017: */
2018: if (l_names_count = 0) then
2019:
2020: -- Not displayed or internal role name, error
2021: wf_core.token('ROLE', p_display_name);
2022: wf_core.raise('WFNTF_ROLE');
2023:
2024: /*
2025: ** If there is just one match then get the internal name

Line 2022: wf_core.raise('WFNTF_ROLE');

2018: if (l_names_count = 0) then
2019:
2020: -- Not displayed or internal role name, error
2021: wf_core.token('ROLE', p_display_name);
2022: wf_core.raise('WFNTF_ROLE');
2023:
2024: /*
2025: ** If there is just one match then get the internal name
2026: ** and assign it.

Line 2064: wf_core.raise('WFNTF_ORIGSYSTEMID');

2060: begin
2061: l_orig_system_id := to_number(substr(p_user_name, l_colon+1));
2062: exception
2063: when invalid_number then
2064: wf_core.raise('WFNTF_ORIGSYSTEMID');
2065: when others then
2066: raise;
2067: end;
2068: select count(1)

Line 2078: wf_core.token('ROLE', p_display_name);

2074: and DISPLAY_NAME = p_display_name;
2075: end if;
2076:
2077: if (l_names_count <> 1) then
2078: wf_core.token('ROLE', p_display_name);
2079: wf_core.raise('WFNTF_UNIQUE_ROLE');
2080: end if;
2081:
2082: end if;

Line 2079: wf_core.raise('WFNTF_UNIQUE_ROLE');

2075: end if;
2076:
2077: if (l_names_count <> 1) then
2078: wf_core.token('ROLE', p_display_name);
2079: wf_core.raise('WFNTF_UNIQUE_ROLE');
2080: end if;
2081:
2082: end if;
2083:

Line 2088: wf_core.context('Wfa_Html', 'validate_display_name', p_display_name,

2084: end if;
2085:
2086: exception
2087: when others then
2088: wf_core.context('Wfa_Html', 'validate_display_name', p_display_name,
2089: p_user_name);
2090: raise;
2091: end validate_display_name;
2092:

Line 2101: htp.title(wf_core.translate('LONG_DESC'));

2097: as
2098: BEGIN
2099: htp.htmlOpen;
2100: htp.headOpen;
2101: htp.title(wf_core.translate('LONG_DESC'));
2102: htp.headClose;
2103:
2104: begin
2105: wfa_sec.Header(background_only=>TRUE);

Line 2111: htp.p(WF_CORE.Translate(UPPER(p_token)));

2107: when others then
2108: htp.bodyOpen;
2109: end;
2110:
2111: htp.p(WF_CORE.Translate(UPPER(p_token)));
2112:
2113: wfa_sec.Footer;
2114: htp.htmlClose;
2115: