DBA Data[Home] [Help]

APPS.WFA_HTML dependencies on WFA_HTML

Line 1: package body WFA_HTML as

1: package body WFA_HTML as
2: /* $Header: wfhtmb.pls 120.5.12010000.4 2009/01/14 09:14:16 sudchakr ship $ */
3:
4: -- Bug# 2236250 exception to handle invalid number
5: invalid_number exception;

Line 62: wfa_html.create_help_function('wf/links/log.htm?LOGIN');

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:
66: htp.p('

');

Line 66: htp.p('');

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:
66: htp.p('');
67:
68: -- bug 1838410
69: if (i_direct is not null) then
70: htp.formHidden('i_direct', i_direct);

Line 111: wfa_html.create_reg_button ('javascript:document.WFA_LOGIN.submit()',

107: htp.tableRowOpen;
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'));

Line 113: wfa_html.image_loc,

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:
117: htp.p('');

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 128: wfa_html.Error;

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

Line 156: wfa_html.Login('WFA_ENTER_ID');

152: begin
153: -- Validate the user
154: if (user_id is null) then
155: -- No username entered
156: wfa_html.Login('WFA_ENTER_ID');
157: return;
158: end if;
159: username := upper(user_id);
160:

Line 168: wfa_html.Login('WFA_ILLEGAL_IDP');

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
172: raise;

Line 178: Wfa_Html.Home;

174:
175: if (i_direct is null) then
176:
177: -- Go to home page
178: Wfa_Html.Home;
179:
180: else
181: -- Fix for bug 1838410
182: -- Instead of navigating to the home page, we will go directly to the URL

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 204: wfa_html.Error;

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:
208: --

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 286: return(wfa_html.image_loc||'high.gif');

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');
290: else /* NORMAL */

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 289: return(wfa_html.image_loc||'low.gif');

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;
293: end GetPriorityIcon;

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 612: username := Wfa_Html.Authenticate(to_number(nid), nkey);

608: error_stack varchar2(32000);
609: begin
610:
611: -- Authenticate user
612: username := Wfa_Html.Authenticate(to_number(nid), nkey);
613:
614: if (nkey is not null) then
615: -- Set a cookie for future IC access.
616:

Line 701: wfa_html.create_help_function('wf/links/det.htm?DETNOT');

697: htp.title(wf_core.translate('WFA_DTITLE')||' '||titlerole);
698: else
699: htp.title(wf_core.translate('WFA_CDTITLE')||' '||titlerole);
700: end if;
701: wfa_html.create_help_function('wf/links/det.htm?DETNOT');
702:
703: -- Make sure the resulting link puts on the top window.
704: htp.p('');
705: htp.headClose;

Line 714: wfa_sec.Header(FALSE, owa_util.get_owa_service_path ||'wfa_html.Find',

710: htp.p('');
711: htp.p('');
712:
713: if (nkey is null) then
714: wfa_sec.Header(FALSE, owa_util.get_owa_service_path ||'wfa_html.Find',
715: wf_core.translate('WFA_DTITLE_TBAR'), FALSE, pseudo_login);
716: else
717: -- disabled Find for detached notification
718: wfa_sec.Header(FALSE, null,

Line 867: '' ||<br>
</h5><p>
863:               link_text);<br>
864: <br>
865:            link_text :=  '<A HREF='||
867: '' ||<br>
</b>868:                  WF_CORE.Translate('WFITD_ATTR_TYPE_DOCUMENT') || '';
869:
870: elsif (UPPER(SUBSTR(not_attr_row.text_value, 1, 5)) = 'PLSQL') then
871:

Line 874: wfa_html.base_url||'/wfa_html.show_plsql_doc'||

870: elsif (UPPER(SUBSTR(not_attr_row.text_value, 1, 5)) = 'PLSQL') then
871:
872: if (nkey is null) then
873: link_text := ''||
877: '' ||<br>
878:                  WF_CORE.Translate('WFITD_ATTR_TYPE_DOCUMENT') || '
';

Line 877: '' ||<br>
</h5><p>
873:               link_text := '<A HREF='||
877: '' ||<br>
</b>878:                  WF_CORE.Translate('WFITD_ATTR_TYPE_DOCUMENT') || '';
879: else
880: link_text := '';
879: else
880: link_text := ''||
884: '' ||<br>
885:                  WF_CORE.Translate('WFITD_ATTR_TYPE_DOCUMENT') || '
';

Line 884: '' ||<br>
</h5><p>
880:               link_text := '<A HREF='||
884: '' ||<br>
</b>885:                  WF_CORE.Translate('WFITD_ATTR_TYPE_DOCUMENT') || '';
886: end if;
887:
888: end if;

Line 901: '' ||<br>
</h5><p>
897:         begin<br>
898:           if (not wf_core.CheckIllegalChars(link_text,true)) then<br>
899:             link_text := '<A HREF='||
901: '' ||<br>
</b>902:                  WF_CORE.Translate('WFITD_ATTR_TYPE_DOCUMENT') || '';
903: end if;
904: exception
905: when OTHERS then

Line 985: wfa_html.base_url||'/wfa_html.show_plsql_doc'||

981: elsif (UPPER(SUBSTR(not_attr_row.text_value, 1, 5)) = 'PLSQL') then
982:
983: if (nkey is null) then
984: link_text := ''||
988: not_attr_row.display_name||'
';
989: else

Line 991: wfa_html.base_url||'/wfa_html.show_plsql_doc'||

987: '" TARGET="'||not_attr_row.format||'">'||
988: not_attr_row.display_name||'';
989: else
990: link_text := ''||
994: not_attr_row.display_name||'
';
995: end if;

Line 1061: wf_core.context('Wfa_Html', 'DetailFrame', nid, nkey);

1057:
1058: exception
1059: when others then
1060: rollback;
1061: wf_core.context('Wfa_Html', 'DetailFrame', nid, nkey);
1062: wfa_html.Error;
1063: end DetailFrame;
1064:
1065: --

Line 1062: wfa_html.Error;

1058: exception
1059: when others then
1060: rollback;
1061: wf_core.context('Wfa_Html', 'DetailFrame', nid, nkey);
1062: wfa_html.Error;
1063: end DetailFrame;
1064:
1065: --
1066: -- ResponseFrame

Line 1155: username := Wfa_Html.Authenticate(to_number(nid), nkey);

1151: sess_username varchar2(320);
1152:
1153: begin
1154: -- Authenticate user
1155: username := Wfa_Html.Authenticate(to_number(nid), nkey);
1156: Wf_Notification.GetInfo(to_number(nid), recipient, s0, s0, s0, s0, status);
1157: Wf_Directory.GetRoleInfo(recipient, realname, s0, s0, s0, s0);
1158:
1159: -- if nkey is not null, it is from email, and we need to create a pseudo

Line 1189: wfa_html_util.GetUrlCount(to_number(nid),urlcount,urlstring);

1185: end;
1186: wfa_sec.validate_only := FALSE;
1187: end if;
1188:
1189: wfa_html_util.GetUrlCount(to_number(nid),urlcount,urlstring);
1190:
1191: -- If there is just one url then replace the response frame with the url
1192: if (urlcount = 1) then
1193: -- GoToUrl(wf_notification.GetURLText(urlstring, nid),'_self');

Line 1237: curl => owa_util.get_owa_service_path||'wfa_html.WorkList',

1233: -- Fix bug #785206. We don't show the WorkList link if is coming from
1234: -- email attachment
1235: if (nkey is null) then
1236: htp.center(htf.anchor(
1237: curl => owa_util.get_owa_service_path||'wfa_html.WorkList',
1238: ctext => wf_core.translate('WFA_WORKLIST_RETURN'),
1239: cattributes=>'TARGET="_top"'));
1240: else
1241: pseudo_login := TRUE;

Line 1316: wfa_html_util.GetUrl(nid, rec.description, rec.text_value);

1312: htp.tableOpen(cattributes=>'summary=""');
1313: for rec in attrs('NORESULT', 'URL') loop
1314:
1315: htp.tableRowOpen;
1316: wfa_html_util.GetUrl(nid, rec.description, rec.text_value);
1317: htp.tableRowClose;
1318:
1319: end loop;
1320:

Line 1333: 'wfa_html.SubmitResponse" METHOD="POST" ONSUBMIT="return false">');

1329: if (status = 'OPEN') then
1330:
1331: htp.p('');
1334:
1335: htp.formHidden('nkey', nkey);
1336: htp.formHidden('forward', null);
1337:

Line 1374: 'wfa_html.AttributeInfo?nid='||nid||

1370: -- Draw prompt with anchor for info
1371: htp.tableData(
1372: cvalue=>htf.anchor(
1373: curl=>owa_util.get_owa_service_path||
1374: 'wfa_html.AttributeInfo?nid='||nid||
1375: '&'||'name='||rec.name,
1376: ctext=>rec.display_name,
1377: cattributes=>'OnMouseOver="window.status='''||wfa_html.replace_onMouseOver_quotes(rec.description2)||'''; return true"'),
1378: calign=>'right',

Line 1377: cattributes=>'OnMouseOver="window.status='''||wfa_html.replace_onMouseOver_quotes(rec.description2)||'''; return true"'),

1373: curl=>owa_util.get_owa_service_path||
1374: 'wfa_html.AttributeInfo?nid='||nid||
1375: '&'||'name='||rec.name,
1376: ctext=>rec.display_name,
1377: cattributes=>'OnMouseOver="window.status='''||wfa_html.replace_onMouseOver_quotes(rec.description2)||'''; return true"'),
1378: calign=>'right',
1379: cattributes=>'id=""');
1380:
1381: dvalue := wfa_html_util.GetDisplayValue(rec.type, rec.format, rec.text_value,

Line 1381: dvalue := wfa_html_util.GetDisplayValue(rec.type, rec.format, rec.text_value,

1377: cattributes=>'OnMouseOver="window.status='''||wfa_html.replace_onMouseOver_quotes(rec.description2)||'''; return true"'),
1378: calign=>'right',
1379: cattributes=>'id=""');
1380:
1381: dvalue := wfa_html_util.GetDisplayValue(rec.type, rec.format, rec.text_value,
1382: rec.number_value, rec.date_value);
1383: if (status <> 'OPEN') then
1384:
1385: if (rec.type = 'DOCUMENT' and dvalue is not null) then

Line 1435: wfa_html_util.GetLookup(rec.name, rec.text_value, rec.format, FALSE);

1431: else
1432:
1433: respcnt := respcnt + 1;
1434: if (rec.type = 'LOOKUP') then
1435: wfa_html_util.GetLookup(rec.name, rec.text_value, rec.format, FALSE);
1436: else
1437: if (nkey is null) then
1438: wfa_html_util.GetField(rec.name,rec.type,rec.format,dvalue,respcnt);
1439: else

Line 1438: wfa_html_util.GetField(rec.name,rec.type,rec.format,dvalue,respcnt);

1434: if (rec.type = 'LOOKUP') then
1435: wfa_html_util.GetLookup(rec.name, rec.text_value, rec.format, FALSE);
1436: else
1437: if (nkey is null) then
1438: wfa_html_util.GetField(rec.name,rec.type,rec.format,dvalue,respcnt);
1439: else
1440: wfa_html_util.GetField(rec.name,rec.type,rec.format,dvalue,respcnt,
1441: to_number(nid), nkey);
1442: end if;

Line 1440: wfa_html_util.GetField(rec.name,rec.type,rec.format,dvalue,respcnt,

1436: else
1437: if (nkey is null) then
1438: wfa_html_util.GetField(rec.name,rec.type,rec.format,dvalue,respcnt);
1439: else
1440: wfa_html_util.GetField(rec.name,rec.type,rec.format,dvalue,respcnt,
1441: to_number(nid), nkey);
1442: end if;
1443: end if;
1444:

Line 1466: wfa_html.create_reg_button ('javascript:document.WFNOTRESP.submit()',

1462: -- Non-result responses exist.
1463: -- Add a 'Submit' button to submit the form.
1464: htp.tableRowOpen;
1465: htp.p('');
1466: wfa_html.create_reg_button ('javascript:document.WFNOTRESP.submit()',
1467: wf_core.translate ('SUBMIT'),
1468: wfa_html.image_loc,
1469: null,
1470: wf_core.translate ('SUBMIT'));

Line 1468: wfa_html.image_loc,

1464: htp.tableRowOpen;
1465: htp.p('');
1466: wfa_html.create_reg_button ('javascript:document.WFNOTRESP.submit()',
1467: wf_core.translate ('SUBMIT'),
1468: wfa_html.image_loc,
1469: null,
1470: wf_core.translate ('SUBMIT'));
1471:
1472: htp.p('');

Line 1488: wfa_html.create_reg_button ('javascript:document.WFNOTRESP.submit()',

1484: htp.p('');
1485: htp.tableopen(cattributes=>'summary=""');
1486: htp.tablerowopen;
1487: htp.p('');
1488: wfa_html.create_reg_button ('javascript:document.WFNOTRESP.submit()',
1489: wf_core.translate ('CLOSE'),
1490: wfa_html.image_loc,
1491: null,
1492: wf_core.translate ('CLOSE'));

Line 1490: wfa_html.image_loc,

1486: htp.tablerowopen;
1487: htp.p('');
1488: wfa_html.create_reg_button ('javascript:document.WFNOTRESP.submit()',
1489: wf_core.translate ('CLOSE'),
1490: wfa_html.image_loc,
1491: null,
1492: wf_core.translate ('CLOSE'));
1493:
1494: htp.p('');

Line 1505: 'wfa_html.AttributeInfo?nid='||nid||

1501: htp.tableRowOpen;
1502: htp.tableData(
1503: cvalue=>htf.anchor(
1504: curl=>owa_util.get_owa_service_path||
1505: 'wfa_html.AttributeInfo?nid='||nid||
1506: '&'||'name=RESULT',
1507: ctext=>result.display_name,
1508: cattributes=>'OnMouseOver="window.status='''||wfa_html.replace_onMouseOver_quotes(result.description2)||'''; return true"'),
1509: calign=>'right',

Line 1508: cattributes=>'OnMouseOver="window.status='''||wfa_html.replace_onMouseOver_quotes(result.description2)||'''; return true"'),

1504: curl=>owa_util.get_owa_service_path||
1505: 'wfa_html.AttributeInfo?nid='||nid||
1506: '&'||'name=RESULT',
1507: ctext=>result.display_name,
1508: cattributes=>'OnMouseOver="window.status='''||wfa_html.replace_onMouseOver_quotes(result.description2)||'''; return true"'),
1509: calign=>'right',
1510: cattributes=>'id=""');
1511:
1512: if (status = 'OPEN') then

Line 1518: wfa_html_util.GetButtons(result.text_value, result.format, respcnt);

1514: htp.p('');
1515: htp.tableopen(cattributes=>'cellspacing=0 summary=""');
1516: htp.tablerowopen;
1517: respcnt := respcnt + 1;
1518: wfa_html_util.GetButtons(result.text_value, result.format, respcnt);
1519:
1520: else
1521: -- Not open. Throw the result into boilerplate.
1522: htp.tableData(cvalue=>wfa_html_util.GetDisplayValue(result.type, result.format,

Line 1522: htp.tableData(cvalue=>wfa_html_util.GetDisplayValue(result.type, result.format,

1518: wfa_html_util.GetButtons(result.text_value, result.format, respcnt);
1519:
1520: else
1521: -- Not open. Throw the result into boilerplate.
1522: htp.tableData(cvalue=>wfa_html_util.GetDisplayValue(result.type, result.format,
1523: result.text_value, result.number_value,
1524: result.date_value),
1525: cattributes=>'BGCOLOR=WHITE id=""');
1526: end if;

Line 1545: wfa_html.create_reg_button ('javascript:document.WFNOTRESP.forward.value=1;

1541: Wf_Core.Clear;
1542: end;
1543: if (hide_button <> 'Y') then
1544: htp.p('');
1545: wfa_html.create_reg_button ('javascript:document.WFNOTRESP.forward.value=1;
1546: document.WFNOTRESP.submit()',
1547: wf_core.translate ('ASSIGN'),
1548: wfa_html.image_loc,
1549: null,

Line 1548: wfa_html.image_loc,

1544: htp.p('');
1545: wfa_html.create_reg_button ('javascript:document.WFNOTRESP.forward.value=1;
1546: document.WFNOTRESP.submit()',
1547: wf_core.translate ('ASSIGN'),
1548: wfa_html.image_loc,
1549: null,
1550: wf_core.translate ('ASSIGN'));
1551:
1552: htp.p('');

Line 1584: wf_core.context('Wfa_Html', 'ResponseFrame', nid, nkey);

1580: if (attrs%isopen) then
1581: close attrs; -- Close cursor just in case
1582: end if;
1583: rollback;
1584: wf_core.context('Wfa_Html', 'ResponseFrame', nid, nkey);
1585: wfa_html.Error;
1586: end ResponseFrame;
1587:
1588: --

Line 1585: wfa_html.Error;

1581: close attrs; -- Close cursor just in case
1582: end if;
1583: rollback;
1584: wf_core.context('Wfa_Html', 'ResponseFrame', nid, nkey);
1585: wfa_html.Error;
1586: end ResponseFrame;
1587:
1588: --
1589: -- ForwardFrame

Line 1606: l_message varchar2(240) := wfa_html.replace_onMouseOver_quotes(wf_core.translate ('WFPREF_LOV'));

1602: status varchar2(8);
1603: s0 varchar2(2000);
1604: lang_codeset varchar2(50); -- Language Codeset from environment
1605: -- (e.g. WE8ISO8859P1)
1606: l_message varchar2(240) := wfa_html.replace_onMouseOver_quotes(wf_core.translate ('WFPREF_LOV'));
1607:
1608: l_url varchar2(1000);
1609: l_media varchar2(240) := wfa_html.image_loc;
1610: l_icon varchar2(30) := 'FNDILOV.gif';

Line 1609: l_media varchar2(240) := wfa_html.image_loc;

1605: -- (e.g. WE8ISO8859P1)
1606: l_message varchar2(240) := wfa_html.replace_onMouseOver_quotes(wf_core.translate ('WFPREF_LOV'));
1607:
1608: l_url varchar2(1000);
1609: l_media varchar2(240) := wfa_html.image_loc;
1610: l_icon varchar2(30) := 'FNDILOV.gif';
1611:
1612: begin
1613: -- Authenticate user

Line 1614: username := Wfa_Html.Authenticate(to_number(nid), nkey);

1610: l_icon varchar2(30) := 'FNDILOV.gif';
1611:
1612: begin
1613: -- Authenticate user
1614: username := Wfa_Html.Authenticate(to_number(nid), nkey);
1615: Wf_Notification.GetInfo(to_number(nid), recipient, s0, s0, s0, s0, status);
1616: Wf_Directory.GetRoleInfo(recipient, realname, s0, s0, s0, s0);
1617:
1618: -- Get language codeset

Line 1657: htp.formOpen(curl=>owa_util.get_owa_service_path||'wfa_html.SubmitForward',

1653: -- Body contents
1654: wfa_sec.header(background_only=>TRUE);
1655:
1656: -- Open form and add hidden fields
1657: htp.formOpen(curl=>owa_util.get_owa_service_path||'wfa_html.SubmitForward',
1658: cmethod=>'Post', cattributes=>'NAME="WF_HTML"');
1659: htp.formHidden('nkey', nkey);
1660: htp.formHidden('h_nid', nid);
1661:

Line 1678: '&p_validation_callback=wfa_html.wf_user_val'||

1674: -- the proper escape sequence.
1675: l_url := 'javascript:fnd_open_dm_display_window('||''''||
1676: REPLACE('wf_lov.display_lov?p_lov_name='||'owner'||
1677: '&p_display_name='||'WFA_FIND_USER'||
1678: '&p_validation_callback=wfa_html.wf_user_val'||
1679: '&p_dest_hidden_field=top.opener.parent.bottom.document.WF_HTML.forwardee.value'||
1680: '&p_current_value=top.opener.parent.bottom.document.WF_HTML.display_forwardee.value'||
1681: '&p_display_key='||'Y'||
1682: '&p_dest_display_field=top.opener.parent.bottom.document.WF_HTML.display_forwardee.value',

Line 1736: wfa_html.create_reg_button ('javascript:SubmitForward()',

1732:
1733: htp.p('');
1734:
1735: --1578431: Changed button to call SubmitForward() javascript function.
1736: wfa_html.create_reg_button ('javascript:SubmitForward()',
1737: wf_core.translate ('WFMON_OK'),
1738: wfa_html.image_loc,
1739: 'FNDJLFOK.gif',
1740: wf_core.translate ('WFMON_OK'));

Line 1738: wfa_html.image_loc,

1734:
1735: --1578431: Changed button to call SubmitForward() javascript function.
1736: wfa_html.create_reg_button ('javascript:SubmitForward()',
1737: wf_core.translate ('WFMON_OK'),
1738: wfa_html.image_loc,
1739: 'FNDJLFOK.gif',
1740: wf_core.translate ('WFMON_OK'));
1741:
1742: htp.p('');

Line 1746: wfa_html.create_reg_button ('Wfa_Html.ResponseFrame?nid='||nid||

1742: htp.p('');
1743:
1744: htp.p('');
1745:
1746: wfa_html.create_reg_button ('Wfa_Html.ResponseFrame?nid='||nid||
1747: '&nkey='||nkey,
1748: wf_core.translate ('CANCEL'),
1749: wfa_html.image_loc,
1750: 'FNDJLFCN.gif',

Line 1749: wfa_html.image_loc,

1745:
1746: wfa_html.create_reg_button ('Wfa_Html.ResponseFrame?nid='||nid||
1747: '&nkey='||nkey,
1748: wf_core.translate ('CANCEL'),
1749: wfa_html.image_loc,
1750: 'FNDJLFCN.gif',
1751: wf_core.translate ('CANCEL'));
1752:
1753: htp.p('');

Line 1763: wf_core.context('Wfa_Html', 'ForwardFrame', nid, nkey);

1759: htp.htmlClose;
1760: exception
1761: when others then
1762: rollback;
1763: wf_core.context('Wfa_Html', 'ForwardFrame', nid, nkey);
1764: wfa_html.Error;
1765: end ForwardFrame;
1766:
1767: --

Line 1764: wfa_html.Error;

1760: exception
1761: when others then
1762: rollback;
1763: wf_core.context('Wfa_Html', 'ForwardFrame', nid, nkey);
1764: wfa_html.Error;
1765: end ForwardFrame;
1766:
1767: --
1768: -- AttributeInfo

Line 1832: htp.tableData(cvalue=>htf.bold(wfa_html_util.GetLookupMeaning('WFSTD_ATTRTYPE',

1828:
1829: -- Type
1830: htp.tableRowOpen;
1831: htp.tableData(cvalue=>wf_core.translate('TYPE'), calign=>'right', cattributes=>'id=""');
1832: htp.tableData(cvalue=>htf.bold(wfa_html_util.GetLookupMeaning('WFSTD_ATTRTYPE',
1833: attrtype)),
1834: calign=>'left',
1835: cattributes=>'bgcolor=white id=""');
1836: htp.tableRowClose;

Line 1877: wf_core.context('Wfa_Html', 'AttributeInfo', nid, name);

1873: htp.htmlClose;
1874: exception
1875: when others then
1876: rollback;
1877: wf_core.context('Wfa_Html', 'AttributeInfo', nid, name);
1878: wfa_html.Error;
1879: end AttributeInfo;
1880:
1881: --

Line 1878: wfa_html.Error;

1874: exception
1875: when others then
1876: rollback;
1877: wf_core.context('Wfa_Html', 'AttributeInfo', nid, name);
1878: wfa_html.Error;
1879: end AttributeInfo;
1880:
1881: --
1882: -- RespFrameSize (RPIVATE)

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

1961: return(respsize);
1962:
1963: exception
1964: when others then
1965: wf_core.context('Wfa_Html', 'RespFrameSize', to_char(nid));
1966: raise;
1967: end RespFrameSize;
1968:
1969: --

Line 1993: username := Wfa_Html.Authenticate(to_number(nid), null);

1989: begin
1990:
1991: -- Get status
1992: Wf_Notification.GetInfo(to_number(nid), recipient, s0, s0, s0, s0, status);
1993: username := Wfa_Html.Authenticate(to_number(nid), null);
1994: Wf_Directory.GetRoleInfo(username, realname, s0, s0, s0, s0);
1995:
1996: htp.htmlOpen;
1997: htp.headOpen;

Line 2004: wfa_html.create_help_function('wf/links/det.htm?DETNOT');

2000: else
2001: htp.title(wf_core.translate('WFA_CDTITLE') || ' ' || realname);
2002: end if;
2003:
2004: wfa_html.create_help_function('wf/links/det.htm?DETNOT');
2005:
2006: -- Add the java script to the header to open the dm window for
2007: -- any DM function that is executed.
2008: fnd_document_management.get_open_dm_display_window;

Line 2021: 'wfa_html.LongDesc?p_token=WFA_DTITLE_TBAR">');

2017: if (instr(owa_util.get_cgi_env('HTTP_USER_AGENT'), 'MSIE') <> 0) then
2018: htp.p('');
2022: else
2023: htp.p('');

2023: htp.p('');
2028: end if;
2029:
2030: -- Descide to show Forms or not
2031: if (Wf_Core.translate('WF_INSTALL') = 'EMBEDDED') then

Line 2040: 'wfa_html.DetailFrame?nid='||nid||'&'||'showforms=T'||'" TITLE="' ||

2036:
2037: if (showforms is not null) then
2038: htp.p(' 2039: 'src="'||owa_util.get_owa_service_path||
2040: 'wfa_html.DetailFrame?nid='||nid||'&'||'showforms=T'||'" TITLE="' ||
2041: WF_CORE.Translate('WFA_DTITLE_TBAR') || '" LONGDESC="' ||
2042: owa_util.get_owa_service_path ||
2043: 'wfa_html.LongDesc?p_token=WFA_DTITLE_TBAR">');
2044: else

Line 2043: 'wfa_html.LongDesc?p_token=WFA_DTITLE_TBAR">');

2039: 'src="'||owa_util.get_owa_service_path||
2040: 'wfa_html.DetailFrame?nid='||nid||'&'||'showforms=T'||'" TITLE="' ||
2041: WF_CORE.Translate('WFA_DTITLE_TBAR') || '" LONGDESC="' ||
2042: owa_util.get_owa_service_path ||
2043: 'wfa_html.LongDesc?p_token=WFA_DTITLE_TBAR">');
2044: else
2045: htp.p(' 2046: 'src="'||owa_util.get_owa_service_path||
2047: 'wfa_html.DetailFrame?nid='||nid||'" TITLE="' ||

Line 2047: 'wfa_html.DetailFrame?nid='||nid||'" TITLE="' ||

2043: 'wfa_html.LongDesc?p_token=WFA_DTITLE_TBAR">');
2044: else
2045: htp.p(' 2046: 'src="'||owa_util.get_owa_service_path||
2047: 'wfa_html.DetailFrame?nid='||nid||'" TITLE="' ||
2048: WF_CORE.Translate('WFA_DTITLE_TBAR') || '" LONGDESC="' ||
2049: owa_util.get_owa_service_path ||
2050: 'wfa_html.LongDesc?p_token=WFA_DTITLE_TBAR">');
2051: end if;

Line 2050: 'wfa_html.LongDesc?p_token=WFA_DTITLE_TBAR">');

2046: 'src="'||owa_util.get_owa_service_path||
2047: 'wfa_html.DetailFrame?nid='||nid||'" TITLE="' ||
2048: WF_CORE.Translate('WFA_DTITLE_TBAR') || '" LONGDESC="' ||
2049: owa_util.get_owa_service_path ||
2050: 'wfa_html.LongDesc?p_token=WFA_DTITLE_TBAR">');
2051: end if;
2052:
2053: url_str := owa_util.get_owa_service_path||
2054: 'wfa_html.ResponseFrame?nid='||nid;

Line 2054: 'wfa_html.ResponseFrame?nid='||nid;

2050: 'wfa_html.LongDesc?p_token=WFA_DTITLE_TBAR">');
2051: end if;
2052:
2053: url_str := owa_util.get_owa_service_path||
2054: 'wfa_html.ResponseFrame?nid='||nid;
2055:
2056: if (showforms is not null) then
2057: url_str := url_str||'&'||'showforms=T';
2058: end if;

Line 2060: -- Note frame name BOTTOM is hardcoded into wfa_html.detail

2056: if (showforms is not null) then
2057: url_str := url_str||'&'||'showforms=T';
2058: end if;
2059:
2060: -- Note frame name BOTTOM is hardcoded into wfa_html.detail
2061: htp.p(' 2062: 'src="'||url_str||'" TITLE="' ||
2063: WF_CORE.Translate('WFA_DTITLE_TBAR') || '" LONGDESC="' ||
2064: owa_util.get_owa_service_path ||

Line 2065: 'wfa_html.LongDesc?p_token=WFA_DTITLE_TBAR">');

2061: htp.p(' 2062: 'src="'||url_str||'" TITLE="' ||
2063: WF_CORE.Translate('WFA_DTITLE_TBAR') || '" LONGDESC="' ||
2064: owa_util.get_owa_service_path ||
2065: 'wfa_html.LongDesc?p_token=WFA_DTITLE_TBAR">');
2066:
2067: htp.p('');
2068: htp.htmlClose;
2069: exception

Line 2072: wf_core.context('Wfa_Html','Detail', nid);

2068: htp.htmlClose;
2069: exception
2070: when others then
2071: rollback;
2072: wf_core.context('Wfa_Html','Detail', nid);
2073: wfa_html.Error;
2074: end Detail;
2075:
2076: --

Line 2073: wfa_html.Error;

2069: exception
2070: when others then
2071: rollback;
2072: wf_core.context('Wfa_Html','Detail', nid);
2073: wfa_html.Error;
2074: end Detail;
2075:
2076: --
2077: -- Detail (FUNCTION)

Line 2108: username := Wfa_Html.Authenticate(nid, nkey);

2104: if (wf_mail.send_accesskey and n_sig_policy not in ('PSIG_ONLY')) then
2105: key := nkey;
2106:
2107: -- Authenticate the user has access
2108: username := Wfa_Html.Authenticate(nid, nkey);
2109:
2110: -- Get notification recipient and status
2111: Wf_Notification.GetInfo(nid, username, s0, s0, s0, s0, status);
2112: Wf_Directory.GetRoleInfo(username, realname, s0, s0, s0, s0);

Line 2129: -- wfa_html.create_help_function('wf/links/det.htm?DETNOT');

2125: end if;
2126:
2127: --tr: dont execute the help function
2128: --it calls htp procs which causes session to hang
2129: -- wfa_html.create_help_function('wf/links/det.htm?DETNOT');
2130:
2131: result := result || htf.headClose||g_newLine;
2132:
2133: -- Calculate size of response frame

Line 2143: 'wfa_html.LongDesc?p_token=WFA_DTITLE_TBAR">'||

2139: -- be used to display the html returned to the mailer.
2140: result := result||''||
2144: g_newLine;
2145: result := result ||
2146: ' 2147: 'src="'||agent||'/wfa_html.DetailFrame?nid='||to_char(nid)||

Line 2147: 'src="'||agent||'/wfa_html.DetailFrame?nid='||to_char(nid)||

2143: 'wfa_html.LongDesc?p_token=WFA_DTITLE_TBAR">'||
2144: g_newLine;
2145: result := result ||
2146: ' 2147: 'src="'||agent||'/wfa_html.DetailFrame?nid='||to_char(nid)||
2148: '&'||'nkey='||key||'" TITLE="' ||
2149: WF_CORE.Translate('WFA_DTITLE_TBAR') || '" LONGDESC="' ||
2150: agent ||
2151: 'wfa_html.LongDesc?p_token=WFA_DTITLE_TBAR">'||g_newLine;

Line 2151: 'wfa_html.LongDesc?p_token=WFA_DTITLE_TBAR">'||g_newLine;

2147: 'src="'||agent||'/wfa_html.DetailFrame?nid='||to_char(nid)||
2148: '&'||'nkey='||key||'" TITLE="' ||
2149: WF_CORE.Translate('WFA_DTITLE_TBAR') || '" LONGDESC="' ||
2150: agent ||
2151: 'wfa_html.LongDesc?p_token=WFA_DTITLE_TBAR">'||g_newLine;
2152: result := result ||
2153: ' 2154: 'src="'||agent||'/wfa_html.ResponseFrame?nid='||to_char(nid)||
2155: '&'||'nkey='||key||'" TITLE="' ||

Line 2154: 'src="'||agent||'/wfa_html.ResponseFrame?nid='||to_char(nid)||

2150: agent ||
2151: 'wfa_html.LongDesc?p_token=WFA_DTITLE_TBAR">'||g_newLine;
2152: result := result ||
2153: ' 2154: 'src="'||agent||'/wfa_html.ResponseFrame?nid='||to_char(nid)||
2155: '&'||'nkey='||key||'" TITLE="' ||
2156: WF_CORE.Translate('WFA_DTITLE_TBAR') || '" LONGDESC="' ||
2157: agent ||
2158: 'wfa_html.LongDesc?p_token=WFA_DTITLE_TBAR">'||g_newLine;

Line 2158: 'wfa_html.LongDesc?p_token=WFA_DTITLE_TBAR">'||g_newLine;

2154: 'src="'||agent||'/wfa_html.ResponseFrame?nid='||to_char(nid)||
2155: '&'||'nkey='||key||'" TITLE="' ||
2156: WF_CORE.Translate('WFA_DTITLE_TBAR') || '" LONGDESC="' ||
2157: agent ||
2158: 'wfa_html.LongDesc?p_token=WFA_DTITLE_TBAR">'||g_newLine;
2159: result := result || ''||g_newLine;
2160: result := result || htf.htmlClose;
2161:
2162: else

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

2186:
2187: return(result);
2188: exception
2189: when others then
2190: wf_core.context('Wfa_Html', 'Detail', to_char(nid), nkey, agent);
2191: raise;
2192: end Detail;
2193:
2194: --

Line 2223: username := Wfa_Html.Authenticate(nid, nkey);

2219:
2220: Wf_Mail.GetSignaturePolicy(nid, n_sig_policy);
2221:
2222: -- Authenticate the user has access
2223: username := Wfa_Html.Authenticate(nid, nkey);
2224:
2225: -- Get notification recipient and status
2226: Wf_Notification.GetInfo(nid, username, s0, s0, s0, s0, status);
2227: Wf_Directory.GetRoleInfo(username, realname, s0, s0, s0, s0);

Line 2265: result := wfa_html.detail(nid, nkey, g_webAgent);

2261: else
2262: -- While the call is within standalone, continue to
2263: -- operate as before.
2264: if (agent is null) then
2265: result := wfa_html.detail(nid, nkey, g_webAgent);
2266: else
2267: result := wfa_html.detail(nid, nkey, agent);
2268: end if;
2269: end if;

Line 2267: result := wfa_html.detail(nid, nkey, agent);

2263: -- operate as before.
2264: if (agent is null) then
2265: result := wfa_html.detail(nid, nkey, g_webAgent);
2266: else
2267: result := wfa_html.detail(nid, nkey, agent);
2268: end if;
2269: end if;
2270:
2271: return(result);

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

2270:
2271: return(result);
2272: exception
2273: when others then
2274: wf_core.context('Wfa_Html', 'Detail', to_char(nid), nkey, agent);
2275: raise;
2276: end Detail2;
2277:
2278:

Line 2295: m_html := Wfa_Html.Detail2(nid, nkey, agent);

2291: agent in varchar2)
2292: is
2293: m_html varchar2(32000);
2294: begin
2295: m_html := Wfa_Html.Detail2(nid, nkey, agent);
2296: htp.p(m_html);
2297:
2298: exception
2299: when others then

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

2296: htp.p(m_html);
2297:
2298: exception
2299: when others then
2300: wf_core.context('Wfa_Html', 'DetailLink', to_char(nid), nkey, agent);
2301: raise;
2302: end DetailLink;
2303:
2304:

Line 2335: Wfa_Html.ResponseFrame(h_nid, nkey);

2331: pseudo_login boolean := FALSE;
2332: begin
2333: -- If CANCEL button, swap frame to ResponseFrame and exit.
2334: if (cancel is not null) then
2335: Wfa_Html.ResponseFrame(h_nid, nkey);
2336: return;
2337: end if;
2338:
2339: if (nkey is not null) then

Line 2345: wfa_html.validate_display_name (display_forwardee, l_forwardee);

2341: end if;
2342:
2343: -- Fully resolve forwardee name
2344: l_forwardee := forwardee;
2345: wfa_html.validate_display_name (display_forwardee, l_forwardee);
2346:
2347: -- REASSIGN button.
2348: -- Authenticate user
2349: nid := to_number(h_nid);

Line 2350: username := Wfa_Html.Authenticate(nid, nkey);

2346:
2347: -- REASSIGN button.
2348: -- Authenticate user
2349: nid := to_number(h_nid);
2350: username := Wfa_Html.Authenticate(nid, nkey);
2351:
2352: -- Make sure the comments field is <= 240.
2353: if ( lengthb(comments) > 240 ) then
2354: WF_CORE.Raise('WFA_MAX_COMMENTS');

Line 2392: Wfa_Html.GotoURL('Wfa_Html.WorkList', '_top');

2388: htp.htmlClose;
2389:
2390: else
2391: -- Putting WorkList in the browser window
2392: Wfa_Html.GotoURL('Wfa_Html.WorkList', '_top');
2393: end if;
2394:
2395: exception
2396: when others then

Line 2398: wf_core.context('Wfa_Html','SubmitForward', h_nid, nkey, forwardee,

2394:
2395: exception
2396: when others then
2397: rollback;
2398: wf_core.context('Wfa_Html','SubmitForward', h_nid, nkey, forwardee,
2399: comments);
2400: wfa_html.Error;
2401: end SubmitForward;
2402:

Line 2400: wfa_html.Error;

2396: when others then
2397: rollback;
2398: wf_core.context('Wfa_Html','SubmitForward', h_nid, nkey, forwardee,
2399: comments);
2400: wfa_html.Error;
2401: end SubmitForward;
2402:
2403: -- SubmitResponse
2404: -- Submit notification response

Line 2431: Wfa_Html.ForwardFrame(h_nid, nkey);

2427: pseudo_login boolean := FALSE;
2428: begin
2429: -- If FORWARD button, swap frame to ForwardFrame and exit.
2430: if (forward is not null) then
2431: Wfa_Html.ForwardFrame(h_nid, nkey);
2432: return;
2433: end if;
2434:
2435: if (nkey is not null) then

Line 2442: username := Wfa_Html.Authenticate(nid, nkey);

2438:
2439: -- One of RESPOND buttons pushed - submit response.
2440: -- Authenticate user
2441: nid := to_number(h_nid);
2442: username := Wfa_Html.Authenticate(nid, nkey);
2443:
2444: -- Set attributes in the reponse array.
2445: -- Start at 2 to step over the Dummy_Name/Dummy_Value pair added at
2446: -- the start of the array.

Line 2448: wfa_html_util.SetAttribute(nid, h_fnames(x), h_fvalues(x), h_fdocnames(x));

2444: -- Set attributes in the reponse array.
2445: -- Start at 2 to step over the Dummy_Name/Dummy_Value pair added at
2446: -- the start of the array.
2447: for x in 2 .. to_number(h_counter) loop
2448: wfa_html_util.SetAttribute(nid, h_fnames(x), h_fvalues(x), h_fdocnames(x));
2449: end loop;
2450:
2451: -- Submit response
2452: -- If there is a problem, go back to the ResponseFrame

Line 2464: -- Wfa_Html.ResponseFrame(h_nid, nkey);

2460: when others then
2461: -- ### We do not want this now. Since there is real error message
2462: -- ### we want users to see, we raise an exception instead.
2463: -- Reload response window to reflect changes
2464: -- Wfa_Html.ResponseFrame(h_nid, nkey);
2465:
2466: -- When an exception ocurr, raise it and show the error stack.
2467: raise;
2468: end;

Line 2471: Wfa_Html.ResponseFrame(h_nid, nkey);

2467: raise;
2468: end;
2469:
2470: if (pseudo_login) then
2471: Wfa_Html.ResponseFrame(h_nid, nkey);
2472:
2473: else
2474: -- Putting WorkList in the browser window
2475: Wfa_Html.GotoURL('Wfa_Html.WorkList', '_top');

Line 2475: Wfa_Html.GotoURL('Wfa_Html.WorkList', '_top');

2471: Wfa_Html.ResponseFrame(h_nid, nkey);
2472:
2473: else
2474: -- Putting WorkList in the browser window
2475: Wfa_Html.GotoURL('Wfa_Html.WorkList', '_top');
2476: end if;
2477:
2478: exception
2479: when others then

Line 2481: wf_core.context('Wfa_Html','SubmitResponse',

2477:
2478: exception
2479: when others then
2480: rollback;
2481: wf_core.context('Wfa_Html','SubmitResponse',
2482: h_nid, nkey, submit, forward);
2483: wfa_html.Error;
2484: end SubmitResponse;
2485:

Line 2483: wfa_html.Error;

2479: when others then
2480: rollback;
2481: wf_core.context('Wfa_Html','SubmitResponse',
2482: h_nid, nkey, submit, forward);
2483: wfa_html.Error;
2484: end SubmitResponse;
2485:
2486: -- GotoURL
2487: -- GotoURL let you open an url in a specify place. This is very useful

Line 2509: l_url := wfa_html.encode_url(url);

2505: is
2506: l_url varchar2(32767);
2507: begin
2508: -- Bug 4634849
2509: l_url := wfa_html.encode_url(url);
2510:
2511: htp.htmlOpen;
2512: htp.headOpen;
2513: htp.p('