269: --
270: begin
271:
272: -- Draw field
273: htp.formHidden('h_fnames', name||'#ROLE#');
274: -- always print the display field as null
275: htp.formHidden('h_fvalues', dvalue);
276:
277: -- get the display name
271:
272: -- Draw field
273: htp.formHidden('h_fnames', name||'#ROLE#');
274: -- always print the display field as null
275: htp.formHidden('h_fvalues', dvalue);
276:
277: -- get the display name
278: wf_directory.GetRoleInfo(dvalue, realname, s0, s0, s0, s0);
279:
290: '&p_dest_display_field=top.opener.parent.document.CREATE_RULE.h_fdocnames['||seq||'].value',
291: ' ', '%20')||''''||',500,500)';
292:
293: -- print everything together so ther is no gap.
294: htp.tabledata(htf.formText(cname=>'h_fdocnames',
295: csize=>30,
296: cmaxlength=>240,
297: cvalue=>realname,
298: cattributes=>'id="i_attr'||seq||'"')||
337: template varchar2(4000);
338:
339: begin
340: -- always print the display field as null
341: htp.formHidden('h_fdocnames', '');
342:
343: -- Create hidden field and select list
344: template := htf.formHidden('h_fnames', name||'#LOOKUP#'||format)||
345: wf_core.newline||
360: template := template||wf_core.newline||htf.formSelectClose;
361:
362: if (not submit) then
363: -- Draw a normal field
364: htp.tableData(template, 'left',cattributes=>'id=""');
365: else
366: -- Draw a submit-style field for the result.
367: -- Leave TableData open so reassign button can be added to same cell.
368: htp.p('
364: htp.tableData(template, 'left',cattributes=>'id=""');
365: else
366: -- Draw a submit-style field for the result.
367: -- Leave TableData open so reassign button can be added to same cell.
368: htp.p('
366: -- Draw a submit-style field for the result.
367: -- Leave TableData open so reassign button can be added to same cell.
368: htp.p('
387: l_callback_URL varchar2(4000);
388: l_attach_URL varchar2(4000);
389: begin
390:
391: htp.formHidden('h_fnames', name||'#DOCUMENT#'||format);
392: htp.formHidden('h_fvalues', null);
393:
394: -- Set the destination field name for the document id
395: fnd_document_management.set_document_id_html (
388: l_attach_URL varchar2(4000);
389: begin
390:
391: htp.formHidden('h_fnames', name||'#DOCUMENT#'||format);
392: htp.formHidden('h_fvalues', null);
393:
394: -- Set the destination field name for the document id
395: fnd_document_management.set_document_id_html (
396: null,
409: TRUE,
410: l_attach_url);
411:
412: -- document field
413: htp.tableData(cvalue=>htf.formText(cname=>'h_fdocnames', csize=>32,
414: cmaxlength=>60,
415: cvalue=>dvalue,
416: cattributes=>'id="i_attr'||index_num||'"')
417: ||'   '||l_attach_URL,
450: len := 62;
451: end if;
452:
453: -- Draw field
454: htp.formHidden('h_fnames', name||'#'||type||'#'||format);
455:
456: -- always print the display field as null
457: htp.formHidden('h_fdocnames', '');
458:
453: -- Draw field
454: htp.formHidden('h_fnames', name||'#'||type||'#'||format);
455:
456: -- always print the display field as null
457: htp.formHidden('h_fdocnames', '');
458:
459: if (len <= 80) then
460: -- single line field
461: htp.tableData(
457: htp.formHidden('h_fdocnames', '');
458:
459: if (len <= 80) then
460: -- single line field
461: htp.tableData(
462: cvalue=>htf.formText(cname=>'h_fvalues',
463: csize=>len,
464: cmaxlength=>len,
465: cvalue=>dvalue,
467: calign=>'Left',
468: cattributes=>'id=""');
469: else
470: -- multi line field
471: htp.tableData(
472: cvalue=>htf.formTextareaOpen2(
473: cname=>'h_fvalues',
474: nrows=>2,
475: ncolumns=>65,
967: end if;
968: close rulecurs;
969:
970: -- Set page title
971: htp.htmlOpen;
972: htp.headOpen;
973: htp.title(wf_core.translate('WFRTG_UPDATE_TITLE')||' '||realname);
974: wfa_html.create_help_function('wf/links/upr.htm?UPRULE');
975: fnd_document_management.get_open_dm_display_window;
968: close rulecurs;
969:
970: -- Set page title
971: htp.htmlOpen;
972: htp.headOpen;
973: htp.title(wf_core.translate('WFRTG_UPDATE_TITLE')||' '||realname);
974: wfa_html.create_help_function('wf/links/upr.htm?UPRULE');
975: fnd_document_management.get_open_dm_display_window;
976:
969:
970: -- Set page title
971: htp.htmlOpen;
972: htp.headOpen;
973: htp.title(wf_core.translate('WFRTG_UPDATE_TITLE')||' '||realname);
974: wfa_html.create_help_function('wf/links/upr.htm?UPRULE');
975: fnd_document_management.get_open_dm_display_window;
976:
977: -- Add the java script to the header to open the dm window for
977: -- Add the java script to the header to open the dm window for
978: -- any DM function that and any standard LOV
979: fnd_document_management.get_open_dm_attach_window;
980:
981: htp.headClose;
982: wfa_sec.Header(FALSE,'',wf_core.translate('WFRTG_UPDATE_TITLE'), TRUE);
983:
984: -- Open form
985: -- Add dummy fields to start both array-type input fields.
988: -- response fields. This would cause a pl/sql error, because array
989: -- parameters can't be defaulted.
990: htp.p('
989: -- parameters can't be defaulted.
990: htp.p('
990: htp.p('
991: htp.formHidden('h_fnames', 'Dummy_Name');
992: htp.formHidden('h_fvalues', 'Dummy_Value');
993: htp.formHidden('h_fdocnames', 'Dummy_Document_Value');
994: htp.formHidden('rule_id', ruleid);
995: -- htp.formHidden('action', rulerec.action);
996:
997: htp.tableOpen(cattributes=>'width=100% summary=""');
998:
999: --
993: htp.formHidden('h_fdocnames', 'Dummy_Document_Value');
994: htp.formHidden('rule_id', ruleid);
995: -- htp.formHidden('action', rulerec.action);
996:
997: htp.tableOpen(cattributes=>'width=100% summary=""');
998:
999: --
1000: -- Rules main table section
1001: --
1000: -- Rules main table section
1001: --
1002:
1003: -- Message Type/Name
1004: htp.tableRowOpen;
1005: htp.tableData(cvalue=>wf_core.translate('MESSAGE_TYPE'),
1006: calign=>'right',
1007: cattributes=>'id=""');
1008: htp.tableHeader(cvalue=>nvl(rulerec.type_display,
1001: --
1002:
1003: -- Message Type/Name
1004: htp.tableRowOpen;
1005: htp.tableData(cvalue=>wf_core.translate('MESSAGE_TYPE'),
1006: calign=>'right',
1007: cattributes=>'id=""');
1008: htp.tableHeader(cvalue=>nvl(rulerec.type_display,
1009: htf.em(wf_core.translate('
1004: htp.tableRowOpen;
1005: htp.tableData(cvalue=>wf_core.translate('MESSAGE_TYPE'),
1006: calign=>'right',
1007: cattributes=>'id=""');
1008: htp.tableHeader(cvalue=>nvl(rulerec.type_display,
1009: htf.em(wf_core.translate('
1010: calign=>'left',
1011: cattributes=>'id=""');
1012: htp.tableRowClose;
1008: htp.tableHeader(cvalue=>nvl(rulerec.type_display,
1009: htf.em(wf_core.translate('
1010: calign=>'left',
1011: cattributes=>'id=""');
1012: htp.tableRowClose;
1013: htp.tableRowOpen;
1014: htp.tableData(cvalue=>wf_core.translate('NOTIFICATION'),
1015: calign=>'right',
1016: cattributes=>'id=""');
1009: htf.em(wf_core.translate('
1010: calign=>'left',
1011: cattributes=>'id=""');
1012: htp.tableRowClose;
1013: htp.tableRowOpen;
1014: htp.tableData(cvalue=>wf_core.translate('NOTIFICATION'),
1015: calign=>'right',
1016: cattributes=>'id=""');
1017: IF (rulerec.subject IS NULL) THEN
1010: calign=>'left',
1011: cattributes=>'id=""');
1012: htp.tableRowClose;
1013: htp.tableRowOpen;
1014: htp.tableData(cvalue=>wf_core.translate('NOTIFICATION'),
1015: calign=>'right',
1016: cattributes=>'id=""');
1017: IF (rulerec.subject IS NULL) THEN
1018:
1015: calign=>'right',
1016: cattributes=>'id=""');
1017: IF (rulerec.subject IS NULL) THEN
1018:
1019: htp.tableHeader(cvalue=>htf.em(wf_core.translate('
1021: cattributes=>'id=""');
1022: ELSE
1023:
1020: calign=>'left',
1021: cattributes=>'id=""');
1022: ELSE
1023:
1024: htp.tableHeader(cvalue=>wf_notification.GetSubSubjectDisplay(rulerec.message_type,
1025: rulerec.message_name),
1026: calign=>'left',cattributes=>'id=""');
1027:
1028: END IF;
1026: calign=>'left',cattributes=>'id=""');
1027:
1028: END IF;
1029:
1030: htp.tableRowClose;
1031:
1032: -- Active Dates
1033: htp.tableRowOpen;
1034: htp.tableData(cvalue=>'
1029:
1030: htp.tableRowClose;
1031:
1032: -- Active Dates
1033: htp.tableRowOpen;
1034: htp.tableData(cvalue=>'',
1036: calign=>'right',
1037: cattributes=>'id=""');
1030: htp.tableRowClose;
1031:
1032: -- Active Dates
1033: htp.tableRowOpen;
1034: htp.tableData(cvalue=>'1035: wf_core.translate('WFRTG_BEGIN_DATE') || '',
1036: calign=>'right',
1037: cattributes=>'id=""');
1038: htp.tableData(cvalue=>htf.formText(cname=>'begin_date',
1034: htp.tableData(cvalue=>'',
1036: calign=>'right',
1037: cattributes=>'id=""');
1038: htp.tableData(cvalue=>htf.formText(cname=>'begin_date',
1039: csize=>30, cmaxlength=>64,
1040: cvalue=>rulerec.cbegin_date,
1041: cattributes=>'id="i_begin_date"'),
1042: calign=>'left',
1040: cvalue=>rulerec.cbegin_date,
1041: cattributes=>'id="i_begin_date"'),
1042: calign=>'left',
1043: cattributes=>'id=""');
1044: htp.tableRowClose;
1045: htp.tableRowOpen;
1046: htp.tableData(cvalue=>'',
1048: calign=>'right',
1041: cattributes=>'id="i_begin_date"'),
1042: calign=>'left',
1043: cattributes=>'id=""');
1044: htp.tableRowClose;
1045: htp.tableRowOpen;
1046: htp.tableData(cvalue=>'',
1048: calign=>'right',
1049: cattributes=>'id=""');
1042: calign=>'left',
1043: cattributes=>'id=""');
1044: htp.tableRowClose;
1045: htp.tableRowOpen;
1046: htp.tableData(cvalue=>'1047: wf_core.translate('WFRTG_END_DATE') || '',
1048: calign=>'right',
1049: cattributes=>'id=""');
1050: htp.tableData(cvalue=>htf.formText(cname=>'end_date',
1046: htp.tableData(cvalue=>'',
1048: calign=>'right',
1049: cattributes=>'id=""');
1050: htp.tableData(cvalue=>htf.formText(cname=>'end_date',
1051: csize=>30, cmaxlength=>64,
1052: cvalue=>rulerec.cend_date,
1053: cattributes=>'id="i_end_date"'),
1054: calign=>'left',
1052: cvalue=>rulerec.cend_date,
1053: cattributes=>'id="i_end_date"'),
1054: calign=>'left',
1055: cattributes=>'id=""');
1056: htp.tableRowClose;
1057:
1058: htp.tableRowOpen;
1059: htp.tableData(htf.br,cattributes=>'id=""');
1060: htp.tableRowClose;
1054: calign=>'left',
1055: cattributes=>'id=""');
1056: htp.tableRowClose;
1057:
1058: htp.tableRowOpen;
1059: htp.tableData(htf.br,cattributes=>'id=""');
1060: htp.tableRowClose;
1061: htp.tableRowOpen;
1062: htp.tableHeader(wf_core.translate('WFRTG_AUTOMATICALLY'), 'left',
1055: cattributes=>'id=""');
1056: htp.tableRowClose;
1057:
1058: htp.tableRowOpen;
1059: htp.tableData(htf.br,cattributes=>'id=""');
1060: htp.tableRowClose;
1061: htp.tableRowOpen;
1062: htp.tableHeader(wf_core.translate('WFRTG_AUTOMATICALLY'), 'left',
1063: ccolspan=>'2',cattributes=>'id=""');
1056: htp.tableRowClose;
1057:
1058: htp.tableRowOpen;
1059: htp.tableData(htf.br,cattributes=>'id=""');
1060: htp.tableRowClose;
1061: htp.tableRowOpen;
1062: htp.tableHeader(wf_core.translate('WFRTG_AUTOMATICALLY'), 'left',
1063: ccolspan=>'2',cattributes=>'id=""');
1064: htp.tableRowClose;
1057:
1058: htp.tableRowOpen;
1059: htp.tableData(htf.br,cattributes=>'id=""');
1060: htp.tableRowClose;
1061: htp.tableRowOpen;
1062: htp.tableHeader(wf_core.translate('WFRTG_AUTOMATICALLY'), 'left',
1063: ccolspan=>'2',cattributes=>'id=""');
1064: htp.tableRowClose;
1065:
1058: htp.tableRowOpen;
1059: htp.tableData(htf.br,cattributes=>'id=""');
1060: htp.tableRowClose;
1061: htp.tableRowOpen;
1062: htp.tableHeader(wf_core.translate('WFRTG_AUTOMATICALLY'), 'left',
1063: ccolspan=>'2',cattributes=>'id=""');
1064: htp.tableRowClose;
1065:
1066:
1060: htp.tableRowClose;
1061: htp.tableRowOpen;
1062: htp.tableHeader(wf_core.translate('WFRTG_AUTOMATICALLY'), 'left',
1063: ccolspan=>'2',cattributes=>'id=""');
1064: htp.tableRowClose;
1065:
1066:
1067: -- Comment
1068:
1065:
1066:
1067: -- Comment
1068:
1069: htp.tableRowOpen;
1070: htp.tableData(cvalue=>'',
1072: calign=>'right', cattributes=>'width="10%" id=""');
1073: htp.tableData(cvalue=>htf.formTextareaOpen2(
1066:
1067: -- Comment
1068:
1069: htp.tableRowOpen;
1070: htp.tableData(cvalue=>'1071: wf_core.translate('WFRTG_COMMENTS_INCLUDE') || '',
1072: calign=>'right', cattributes=>'width="10%" id=""');
1073: htp.tableData(cvalue=>htf.formTextareaOpen2(
1074: cname=>'rule_comment',
1069: htp.tableRowOpen;
1070: htp.tableData(cvalue=>'',
1072: calign=>'right', cattributes=>'width="10%" id=""');
1073: htp.tableData(cvalue=>htf.formTextareaOpen2(
1074: cname=>'rule_comment',
1075: nrows=>3,
1076: ncolumns=>65,
1077: cwrap=>'soft',
1079: rulerec.rule_comment||
1080: htf.formTextareaClose,
1081: ccolspan=>3,
1082: calign=>'left', cattributes=>'width="*" id=""');
1083: htp.tableRowClose;
1084:
1085: htp.tableClose;
1086:
1087: -- Action
1081: ccolspan=>3,
1082: calign=>'left', cattributes=>'width="*" id=""');
1083: htp.tableRowClose;
1084:
1085: htp.tableClose;
1086:
1087: -- Action
1088: if (rulerec.action = 'FORWARD' or rulerec.action = 'TRANSFER') then
1089: if (rulerec.action = 'FORWARD') then
1090: fchecked := 1;
1091: else
1092: tchecked := 1;
1093: end if;
1094: htp.formRadio(cname=>'action', cvalue=>'FORWARD', cchecked=>'1',
1095: cattributes=>'id="i_wfa_assignto"');
1096:
1097: else
1098:
1095: cattributes=>'id="i_wfa_assignto"');
1096:
1097: else
1098:
1099: htp.formRadio(cname=>'action', cvalue=>'FORWARD',
1100: cattributes=>'id="i_wfa_assignto"');
1101: -- If this is not a reassign the go ahead and set the delagate default
1102: fchecked := 1;
1103:
1102: fchecked := 1;
1103:
1104: end if;
1105:
1106: htp.p('1107: wf_core.translate('WFA_ASSIGNTO') || '');
1108: htp.formHidden('action_argument', rulerec.action_argument);
1109:
1110: if (rulerec.action_argument IS NOT NULL) then
1104: end if;
1105:
1106: htp.p('');
1108: htp.formHidden('action_argument', rulerec.action_argument);
1109:
1110: if (rulerec.action_argument IS NOT NULL) then
1111:
1112: wf_directory.GetRoleInfo(rulerec.action_argument, realname, s0, s0, s0, s0);
1126: '&p_dest_display_field=top.opener.parent.document.CREATE_RULE.display_action_argument.value',
1127: ' ', '%20')||''''||',500,500)';
1128:
1129: -- print everything together so ther is no gap.
1130: htp.formText(cname=>'display_action_argument', csize=>30,
1131: cmaxlength=>240,
1132: cvalue=>realname,
1133: cattributes=>'id="i_wfa_assignto"');
1134: htp.p(''||
1130: htp.formText(cname=>'display_action_argument', csize=>30,
1131: cmaxlength=>240,
1132: cvalue=>realname,
1133: cattributes=>'id="i_wfa_assignto"');
1134: htp.p(''||
1135: '');
1138:
1135: '');
1138:
1139: htp.br;
1140:
1141: -- Forward Mode
1142: htp.p('&'||'nbsp;&'||'nbsp;&'||'nbsp;');
1143: htp.formRadio(cname=>'fmode', cvalue=>'FORWARD', cchecked=>fchecked,
1138:
1139: htp.br;
1140:
1141: -- Forward Mode
1142: htp.p('&'||'nbsp;&'||'nbsp;&'||'nbsp;');
1143: htp.formRadio(cname=>'fmode', cvalue=>'FORWARD', cchecked=>fchecked,
1144: cattributes=>'id="i_group_reassign"');
1145: htp.p('');
1139: htp.br;
1140:
1141: -- Forward Mode
1142: htp.p('&'||'nbsp;&'||'nbsp;&'||'nbsp;');
1143: htp.formRadio(cname=>'fmode', cvalue=>'FORWARD', cchecked=>fchecked,
1144: cattributes=>'id="i_group_reassign"');
1145: htp.p('');
1147: htp.br;
1141: -- Forward Mode
1142: htp.p('&'||'nbsp;&'||'nbsp;&'||'nbsp;');
1143: htp.formRadio(cname=>'fmode', cvalue=>'FORWARD', cchecked=>fchecked,
1144: cattributes=>'id="i_group_reassign"');
1145: htp.p('1146: wf_core.translate('WFA_GROUP_REASSIGN_DELEGATE') || '');
1147: htp.br;
1148: htp.p('&'||'nbsp;&'||'nbsp;&'||'nbsp;');
1149: htp.formRadio(cname=>'fmode', cvalue=>'TRANSFER', cchecked=>tchecked,
1143: htp.formRadio(cname=>'fmode', cvalue=>'FORWARD', cchecked=>fchecked,
1144: cattributes=>'id="i_group_reassign"');
1145: htp.p('');
1147: htp.br;
1148: htp.p('&'||'nbsp;&'||'nbsp;&'||'nbsp;');
1149: htp.formRadio(cname=>'fmode', cvalue=>'TRANSFER', cchecked=>tchecked,
1150: cattributes=>'id="i_transfer"');
1151: htp.p('
1144: cattributes=>'id="i_group_reassign"');
1145: htp.p('');
1147: htp.br;
1148: htp.p('&'||'nbsp;&'||'nbsp;&'||'nbsp;');
1149: htp.formRadio(cname=>'fmode', cvalue=>'TRANSFER', cchecked=>tchecked,
1150: cattributes=>'id="i_transfer"');
1151: htp.p('');
1145: htp.p('');
1147: htp.br;
1148: htp.p('&'||'nbsp;&'||'nbsp;&'||'nbsp;');
1149: htp.formRadio(cname=>'fmode', cvalue=>'TRANSFER', cchecked=>tchecked,
1150: cattributes=>'id="i_transfer"');
1151: htp.p('');
1153: htp.br;
1147: htp.br;
1148: htp.p('&'||'nbsp;&'||'nbsp;&'||'nbsp;');
1149: htp.formRadio(cname=>'fmode', cvalue=>'TRANSFER', cchecked=>tchecked,
1150: cattributes=>'id="i_transfer"');
1151: htp.p('1152: wf_core.translate('WFA_GROUP_REASSIGN_TRANSFER') || '');
1153: htp.br;
1154:
1155: -- ### Comment below out since we have Delegate and Transfer implemented
1149: htp.formRadio(cname=>'fmode', cvalue=>'TRANSFER', cchecked=>tchecked,
1150: cattributes=>'id="i_transfer"');
1151: htp.p('');
1153: htp.br;
1154:
1155: -- ### Comment below out since we have Delegate and Transfer implemented
1156: -- Instead put a hidden field to make fmode forward
1157: -- htp.formHidden('fmode', 'FORWARD');
1153: htp.br;
1154:
1155: -- ### Comment below out since we have Delegate and Transfer implemented
1156: -- Instead put a hidden field to make fmode forward
1157: -- htp.formHidden('fmode', 'FORWARD');
1158:
1159: select MESSAGE_TYPE, MESSAGE_NAME
1160: into msg_type, msg_name
1161: from WF_ROUTING_RULES
1164: -- Not a valid option when msg_type or msg_name is null
1165: if ((msg_type is not null) and (msg_name is not null)) then
1166:
1167: if (rulerec.action = 'RESPOND') then
1168: htp.formRadio(cname=>'action', cvalue=>'RESPOND', cchecked=>'1',
1169: cattributes=>'id="i_wfitd_msg_respond"');
1170: else
1171: htp.formRadio(cname=>'action', cvalue=>'RESPOND',
1172: cattributes=>'id="i_wfrtg_close"');
1167: if (rulerec.action = 'RESPOND') then
1168: htp.formRadio(cname=>'action', cvalue=>'RESPOND', cchecked=>'1',
1169: cattributes=>'id="i_wfitd_msg_respond"');
1170: else
1171: htp.formRadio(cname=>'action', cvalue=>'RESPOND',
1172: cattributes=>'id="i_wfrtg_close"');
1173: end if;
1174: -- Check existing of response
1175: select count(WMA.NAME) into rowcount
1188: -- If there is no message attributes, there is no response and we give
1189: -- a choice of 'close', otherwise 'respond'.
1190: --
1191: if (rowcount = 0) then
1192: htp.p('1193: wf_core.translate('WFRTG_CLOSE') || '');
1194: else
1195: htp.p('');
1191: if (rowcount = 0) then
1192: htp.p('');
1194: else
1195: htp.p('1196: wf_core.translate('WFITD_MSG_SOURCE_TYPE_RESPOND') || '');
1197: -- Draw attr fields
1198: htp.tableOpen(cattributes=>'summary=""');
1199: -- LOOP
1194: else
1195: htp.p('');
1197: -- Draw attr fields
1198: htp.tableOpen(cattributes=>'summary=""');
1199: -- LOOP
1200: for attr in attrcurs loop
1201: respcnt := respcnt + 1;
1202: htp.tableRowOpen;
1198: htp.tableOpen(cattributes=>'summary=""');
1199: -- LOOP
1200: for attr in attrcurs loop
1201: respcnt := respcnt + 1;
1202: htp.tableRowOpen;
1203: -- Indentation
1204: htp.p('
1200: for attr in attrcurs loop
1201: respcnt := respcnt + 1;
1202: htp.tableRowOpen;
1203: -- Indentation
1204: htp.p('
1232: else
1233: GetField(attr.name, attr.type, attr.format, dispvalue,
1234: to_char(respcnt));
1235: end if;
1236: htp.tableRowClose;
1237: end loop;
1238: -- END LOOP
1239: htp.tableClose;
1240: end if;
1235: end if;
1236: htp.tableRowClose;
1237: end loop;
1238: -- END LOOP
1239: htp.tableClose;
1240: end if;
1241: htp.br;
1242: end if;
1243: -- Add counter
1237: end loop;
1238: -- END LOOP
1239: htp.tableClose;
1240: end if;
1241: htp.br;
1242: end if;
1243: -- Add counter
1244: htp.formHidden('h_counter', to_char(respcnt+1), null);
1245:
1240: end if;
1241: htp.br;
1242: end if;
1243: -- Add counter
1244: htp.formHidden('h_counter', to_char(respcnt+1), null);
1245:
1246: -- Not a valid option when both msg_type and msg_name are null
1247: if ((msg_type is not null) or (msg_name is not null)) then
1248: if (rulerec.action = 'NOOP') then
1245:
1246: -- Not a valid option when both msg_type and msg_name are null
1247: if ((msg_type is not null) or (msg_name is not null)) then
1248: if (rulerec.action = 'NOOP') then
1249: htp.formRadio(cname=>'action', cvalue=>'NOOP', cchecked=>'1',
1250: cattributes=>'id="i_deliver"');
1251: else
1252: htp.formRadio(cname=>'action', cvalue=>'NOOP',
1253: cattributes=>'id="i_deliver"');
1248: if (rulerec.action = 'NOOP') then
1249: htp.formRadio(cname=>'action', cvalue=>'NOOP', cchecked=>'1',
1250: cattributes=>'id="i_deliver"');
1251: else
1252: htp.formRadio(cname=>'action', cvalue=>'NOOP',
1253: cattributes=>'id="i_deliver"');
1254: end if;
1255: htp.p('
1256: wf_core.translate('WFRTG_DELIVER') ||
1251: else
1252: htp.formRadio(cname=>'action', cvalue=>'NOOP',
1253: cattributes=>'id="i_deliver"');
1254: end if;
1255: htp.p('
1257: '');
1258: htp.br;
1259: end if;
1254: end if;
1255: htp.p('
1256: wf_core.translate('WFRTG_DELIVER') ||
1257: '
1258: htp.br;
1259: end if;
1260: -- NOTE: Do NOT create any more fields for h_names or h_values here. The
1261: -- submit buttons created above must be the last values for these fields
1262: -- to work around an MSIE bug that always sends the submit button last.
1259: end if;
1260: -- NOTE: Do NOT create any more fields for h_names or h_values here. The
1261: -- submit buttons created above must be the last values for these fields
1262: -- to work around an MSIE bug that always sends the submit button last.
1263: htp.formClose;
1264:
1265:
1266: -- Add submit button
1267: htp.tableopen(calign=>'CENTER',cattributes=>'summary=""');
1263: htp.formClose;
1264:
1265:
1266: -- Add submit button
1267: htp.tableopen(calign=>'CENTER',cattributes=>'summary=""');
1268: htp.tableRowOpen;
1269:
1270: htp.p('
1264:
1265:
1266: -- Add submit button
1267: htp.tableopen(calign=>'CENTER',cattributes=>'summary=""');
1268: htp.tableRowOpen;
1269:
1270: htp.p('
1266: -- Add submit button
1267: htp.tableopen(calign=>'CENTER',cattributes=>'summary=""');
1268: htp.tableRowOpen;
1269:
1270: htp.p('
1274: wfa_html.image_loc,
1275: 'FNDJLFOK.gif',
1276: wf_core.translate ('WFMON_DONE'));
1277:
1278: htp.p('
1276: wf_core.translate ('WFMON_DONE'));
1277:
1278: htp.p('
1284: wfa_html.image_loc,
1285: 'FNDJLFCN.gif',
1286: wf_core.translate ('CANCEL'));
1287:
1288: htp.p('
1287:
1288: htp.p('
1288: htp.p('
1291: htp.tableRowClose;
1292: htp.tableClose;
1293:
1294: wfa_sec.footer;
1295: htp.htmlClose;
1296:
1297: exception
1298: when others then
1299: if (rulecurs%isopen) then
1623: -- Set today's date
1624: select sysdate into today from sys.dual;
1625:
1626: -- Set page title
1627: htp.htmlOpen;
1628: -- DEBUG info
1629: -- htp.p('
t_user='||t_user||' username='||username||'
realname='||realname||'
t_user='||t_user||' username='||username||'
realname='||realname||'
1625:
1626: -- Set page title
1627: htp.htmlOpen;
1628: -- DEBUG info
1629: -- htp.p('
t_user='||t_user||' username='||username||'
realname='||realname||'
1630: --
1631:
1632: IF (realname IS NULL) THEN
1633:
1634: htp.p('');
1635: htp.center(htf.bold(wf_core.translate('WFPREF_INVALID_ROLE_NAME'))||':'||display_user);
1636: htp.br;
1637:
1638: htp.tableopen(calign=>'CENTER',cattributes=>'summary=""');
1631:
1632: IF (realname IS NULL) THEN
1633:
1634: htp.p('
1632: IF (realname IS NULL) THEN
1633:
1634: htp.p('
1634: htp.p('
');
1638: htp.tableopen(calign=>'CENTER',cattributes=>'summary=""');
1639:
1640: --Submit Button
1641:
1642: htp.tableRowOpen;
1643:
1644: l_url := wfa_html.base_url||
1645: '/wf_route.find';
1646: l_icon := 'FNDJLFOK.gif';
1646: l_icon := 'FNDJLFOK.gif';
1647: l_text := wf_core.translate ('WFMON_OK');
1648: l_onmouseover := wf_core.translate ('WFMON_OK');
1649:
1650: htp.p('
1650: htp.p('
1651:
1652: wf_pref.create_reg_button (l_url, l_onmouseover, l_media, l_icon, l_text);
1653:
1654: htp.p('');
1655: htp.tablerowclose;
1656: htp.tableclose;
1657: htp.p('');
1658: return;
1659:
1652: wf_pref.create_reg_button (l_url, l_onmouseover, l_media, l_icon, l_text);
1653:
1654: htp.p('');
1655: htp.tablerowclose;
1656: htp.tableclose;
1657: htp.p('');
1658: return;
1659:
1660: END IF;
1653:
1654: htp.p('');
1655: htp.tablerowclose;
1656: htp.tableclose;
1657: htp.p('');
1658: return;
1659:
1660: END IF;
1661:
1658: return;
1659:
1660: END IF;
1661:
1662: htp.headOpen;
1663: htp.p('
1664: htp.title(wf_core.translate('WFRTG_LIST_TITLE')||' - '||realname);
1665: wfa_html.create_help_function('wf/links/nrr.htm?NRR');
1666: htp.headClose;
1659:
1660: END IF;
1661:
1662: htp.headOpen;
1663: htp.p('
1664: htp.title(wf_core.translate('WFRTG_LIST_TITLE')||' - '||realname);
1665: wfa_html.create_help_function('wf/links/nrr.htm?NRR');
1666: htp.headClose;
1667: wfa_sec.header(FALSE, 'wf_route.find', wf_core.translate('WFRTG_FIND_TITLE'), TRUE);
1660: END IF;
1661:
1662: htp.headOpen;
1663: htp.p('
1664: htp.title(wf_core.translate('WFRTG_LIST_TITLE')||' - '||realname);
1665: wfa_html.create_help_function('wf/links/nrr.htm?NRR');
1666: htp.headClose;
1667: wfa_sec.header(FALSE, 'wf_route.find', wf_core.translate('WFRTG_FIND_TITLE'), TRUE);
1668:
1662: htp.headOpen;
1663: htp.p('
1664: htp.title(wf_core.translate('WFRTG_LIST_TITLE')||' - '||realname);
1665: wfa_html.create_help_function('wf/links/nrr.htm?NRR');
1666: htp.headClose;
1667: wfa_sec.header(FALSE, 'wf_route.find', wf_core.translate('WFRTG_FIND_TITLE'), TRUE);
1668:
1669: -- Column headers
1670: htp.tableOpen(calign=>'CENTER', cattributes=>'border=1 cellpadding=3 bgcolor=white width="100%" summary="' || wf_core.translate('WFRTG_FIND_TITLE') || '"');
1666: htp.headClose;
1667: wfa_sec.header(FALSE, 'wf_route.find', wf_core.translate('WFRTG_FIND_TITLE'), TRUE);
1668:
1669: -- Column headers
1670: htp.tableOpen(calign=>'CENTER', cattributes=>'border=1 cellpadding=3 bgcolor=white width="100%" summary="' || wf_core.translate('WFRTG_FIND_TITLE') || '"');
1671: -- htp.tableRowOpen(cattributes=>'bgcolor=#83c1c1');
1672: htp.tableRowOpen(cattributes=>'bgcolor=#006699');
1673:
1674: -- htp.tableData(cvalue=>''||
1667: wfa_sec.header(FALSE, 'wf_route.find', wf_core.translate('WFRTG_FIND_TITLE'), TRUE);
1668:
1669: -- Column headers
1670: htp.tableOpen(calign=>'CENTER', cattributes=>'border=1 cellpadding=3 bgcolor=white width="100%" summary="' || wf_core.translate('WFRTG_FIND_TITLE') || '"');
1671: -- htp.tableRowOpen(cattributes=>'bgcolor=#83c1c1');
1672: htp.tableRowOpen(cattributes=>'bgcolor=#006699');
1673:
1674: -- htp.tableData(cvalue=>''||
1675: htp.tableHeader(cvalue=>''||
1668:
1669: -- Column headers
1670: htp.tableOpen(calign=>'CENTER', cattributes=>'border=1 cellpadding=3 bgcolor=white width="100%" summary="' || wf_core.translate('WFRTG_FIND_TITLE') || '"');
1671: -- htp.tableRowOpen(cattributes=>'bgcolor=#83c1c1');
1672: htp.tableRowOpen(cattributes=>'bgcolor=#006699');
1673:
1674: -- htp.tableData(cvalue=>''||
1675: htp.tableHeader(cvalue=>''||
1676: wf_core.translate('MESSAGE_TYPE')||'',
1670: htp.tableOpen(calign=>'CENTER', cattributes=>'border=1 cellpadding=3 bgcolor=white width="100%" summary="' || wf_core.translate('WFRTG_FIND_TITLE') || '"');
1671: -- htp.tableRowOpen(cattributes=>'bgcolor=#83c1c1');
1672: htp.tableRowOpen(cattributes=>'bgcolor=#006699');
1673:
1674: -- htp.tableData(cvalue=>''||
1675: htp.tableHeader(cvalue=>''||
1676: wf_core.translate('MESSAGE_TYPE')||'',
1677: calign=>'Center',
1678: cattributes=>'id="' || wf_core.translate('MESSAGE_TYPE') || '"');
1671: -- htp.tableRowOpen(cattributes=>'bgcolor=#83c1c1');
1672: htp.tableRowOpen(cattributes=>'bgcolor=#006699');
1673:
1674: -- htp.tableData(cvalue=>''||
1675: htp.tableHeader(cvalue=>''||
1676: wf_core.translate('MESSAGE_TYPE')||'',
1677: calign=>'Center',
1678: cattributes=>'id="' || wf_core.translate('MESSAGE_TYPE') || '"');
1679: htp.tableHeader(cvalue=>''||
1675: htp.tableHeader(cvalue=>''||
1676: wf_core.translate('MESSAGE_TYPE')||'',
1677: calign=>'Center',
1678: cattributes=>'id="' || wf_core.translate('MESSAGE_TYPE') || '"');
1679: htp.tableHeader(cvalue=>''||
1680: wf_core.translate('NOTIFICATION')||'',
1681: calign=>'Center',
1682: cattributes=>'id="' || wf_core.translate('NOTIFICATION') || '"');
1683: htp.tableHeader(cvalue=>''||
1679: htp.tableHeader(cvalue=>''||
1680: wf_core.translate('NOTIFICATION')||'',
1681: calign=>'Center',
1682: cattributes=>'id="' || wf_core.translate('NOTIFICATION') || '"');
1683: htp.tableHeader(cvalue=>''||
1684: wf_core.translate('RESULT_APPLY_RULE')||'',
1685: calign=>'Center',
1686: cattributes=>'id="' || wf_core.translate('RESULT_APPLY_RULE') || '"');
1687: htp.tableHeader(cvalue=>''||
1683: htp.tableHeader(cvalue=>''||
1684: wf_core.translate('RESULT_APPLY_RULE')||'',
1685: calign=>'Center',
1686: cattributes=>'id="' || wf_core.translate('RESULT_APPLY_RULE') || '"');
1687: htp.tableHeader(cvalue=>''||
1688: wf_core.translate('ACTIVE')||'',
1689: calign=>'Center',
1690: cattributes=>'id="' || wf_core.translate('ACTIVE') || '"');
1691: htp.tableHeader(cvalue=>''||
1687: htp.tableHeader(cvalue=>''||
1688: wf_core.translate('ACTIVE')||'',
1689: calign=>'Center',
1690: cattributes=>'id="' || wf_core.translate('ACTIVE') || '"');
1691: htp.tableHeader(cvalue=>''||
1692: wf_core.translate('WFRTG_DELETE')||'',
1693: calign=>'Center',
1694: cattributes=>'id="' || wf_core.translate('WFRTG_DELETE') || '"');
1695: htp.tableRowClose;
1691: htp.tableHeader(cvalue=>''||
1692: wf_core.translate('WFRTG_DELETE')||'',
1693: calign=>'Center',
1694: cattributes=>'id="' || wf_core.translate('WFRTG_DELETE') || '"');
1695: htp.tableRowClose;
1696: htp.tableRowOpen;
1697: htp.tableRowClose;
1698:
1699: -- Query matching rules
1692: wf_core.translate('WFRTG_DELETE')||'',
1693: calign=>'Center',
1694: cattributes=>'id="' || wf_core.translate('WFRTG_DELETE') || '"');
1695: htp.tableRowClose;
1696: htp.tableRowOpen;
1697: htp.tableRowClose;
1698:
1699: -- Query matching rules
1700: for rule in wf_rules_cursor loop
1693: calign=>'Center',
1694: cattributes=>'id="' || wf_core.translate('WFRTG_DELETE') || '"');
1695: htp.tableRowClose;
1696: htp.tableRowOpen;
1697: htp.tableRowClose;
1698:
1699: -- Query matching rules
1700: for rule in wf_rules_cursor loop
1701: isactive := 0;
1714: end if;
1715: end if;
1716: end if;
1717:
1718: htp.tableRowOpen(null, 'TOP');
1719: htp.tableData(nvl(rule.type_display,
1720: htf.em(wf_core.translate('
1721: 'left',cattributes=>'id=""');
1722:
1715: end if;
1716: end if;
1717:
1718: htp.tableRowOpen(null, 'TOP');
1719: htp.tableData(nvl(rule.type_display,
1720: htf.em(wf_core.translate('
1721: 'left',cattributes=>'id=""');
1722:
1723: IF (rule.subject IS NULL) THEN
1721: 'left',cattributes=>'id=""');
1722:
1723: IF (rule.subject IS NULL) THEN
1724:
1725: htp.tableData(htf.em(wf_core.translate('
1727:
1728: ELSE
1729:
1726: 'left', cattributes=>'id=""');
1727:
1728: ELSE
1729:
1730: htp.tableData(wf_notification.GetSubSubjectDisplay(rule.message_type,
1731: rule.message_name),
1732: 'left', cattributes=>'id=""');
1733:
1734: END IF;
1737: if ( rule.action = 'FORWARD' ) then
1738: -- get the display name of the forwardee in delegation
1739: wf_directory.GetRoleInfo(rule.action_argument, forwardname,
1740: s0, s0, s0, s0);
1741: htp.tableData(htf.anchor(wfa_html.base_url||
1742: '/Wf_Route.UpdateRule?ruleid='||
1743: to_char(rule.rule_id),
1744: wf_core.translate('DELEGATE')||':'||
1745: forwardname),
1747: elsif ( rule.action = 'TRANSFER' ) then
1748: -- get the display name of the forwardee in transfering
1749: wf_directory.GetRoleInfo(rule.action_argument, forwardname,
1750: s0, s0, s0, s0);
1751: htp.tableData(htf.anchor(wfa_html.base_url||
1752: '/Wf_Route.UpdateRule?ruleid='||
1753: to_char(rule.rule_id),
1754: wf_core.translate('TRANSFER')||':'||
1755: forwardname),
1755: forwardname),
1756: 'left',cattributes=>'id=""');
1757: else
1758: if ( rule.action = 'NOOP' ) then
1759: htp.tableData(htf.anchor(wfa_html.base_url||
1760: '/Wf_Route.UpdateRule?ruleid='||
1761: to_char(rule.rule_id),
1762: wf_core.translate('WFRTG_DELIVERTOME')),
1763: 'left',cattributes=>'id=""');
1811: -- If there is no message attributes, there is no response and we give
1812: -- a choice of 'close', otherwise 'response'.
1813: --
1814: if (rowcount = 0) then
1815: htp.tableData(htf.anchor(wfa_html.base_url||
1816: '/Wf_Route.UpdateRule?ruleid='||
1817: to_char(rule.rule_id),
1818: wf_core.translate('WFRTG_CLOSE')),
1819: 'left',cattributes=>'id="' ||
1819: 'left',cattributes=>'id="' ||
1820: wf_core.translate('WFRTG_CLOSE') || '"');
1821: else
1822: if (att_tvalue is not null) then
1823: htp.tableData(htf.anchor(wfa_html.base_url||
1824: '/Wf_Route.UpdateRule?ruleid='||
1825: to_char(rule.rule_id),
1826: wf_core.translate('WFITD_MSG_SOURCE_TYPE_RESPOND')||':'
1827: ||att_tvalue),
1826: wf_core.translate('WFITD_MSG_SOURCE_TYPE_RESPOND')||':'
1827: ||att_tvalue),
1828: 'left',cattributes=>'id="' || wf_core.translate('WFITD_MSG_SOURCE_TYPE_RESPOND') || '"');
1829: else
1830: htp.tableData(htf.anchor(wfa_html.base_url||
1831: '/Wf_Route.UpdateRule?ruleid='||
1832: to_char(rule.rule_id),
1833: wf_core.translate('WFITD_MSG_SOURCE_TYPE_RESPOND')),
1834: 'left',cattributes=>'id="' || wf_core.translate('WFITD_MSG_SOURCE_TYPE_RESPOND') || '"');
1837: end if;
1838: end if;
1839:
1840: if isactive = 1 then
1841: htp.tableData(htf.img(wfa_html.image_loc||'FNDICHEK.gif',
1842: 'Center', wf_core.translate('ACTIVE')), 'center',
1843: cattributes=>'valign="MIDDLE" id=""');
1844: else
1845: htp.tableData(htf.br,cattributes=>'id=""');
1841: htp.tableData(htf.img(wfa_html.image_loc||'FNDICHEK.gif',
1842: 'Center', wf_core.translate('ACTIVE')), 'center',
1843: cattributes=>'valign="MIDDLE" id=""');
1844: else
1845: htp.tableData(htf.br,cattributes=>'id=""');
1846: end if;
1847:
1848: -- htp.tableData(nvl(to_char(rule.begin_date)||
1849: -- to_char(rule.begin_date, ' HH24:MI:SS'),
1844: else
1845: htp.tableData(htf.br,cattributes=>'id=""');
1846: end if;
1847:
1848: -- htp.tableData(nvl(to_char(rule.begin_date)||
1849: -- to_char(rule.begin_date, ' HH24:MI:SS'),
1850: -- htf.br), 'left',cattributes=>'id=""');
1851:
1852: htp.tableData(htf.anchor2(curl=>wfa_html.base_url||
1848: -- htp.tableData(nvl(to_char(rule.begin_date)||
1849: -- to_char(rule.begin_date, ' HH24:MI:SS'),
1850: -- htf.br), 'left',cattributes=>'id=""');
1851:
1852: htp.tableData(htf.anchor2(curl=>wfa_html.base_url||
1853: '/Wf_Route.DeleteRule?user='||username||
1854: '&'||'ruleid='||to_char(rule.rule_id),
1855: ctext=>'
1856: alt="' || wf_core.translate('WFRTG_DELETE') || '" BORDER=0>'),
1854: '&'||'ruleid='||to_char(rule.rule_id),
1855: ctext=>'
1856: alt="' || wf_core.translate('WFRTG_DELETE') || '" BORDER=0>'),
1857: 'center', cattributes=>'valign="MIDDLE" id=""');
1858: htp.tableRowClose;
1859: end loop;
1860:
1861: htp.tableClose;
1862:
1857: 'center', cattributes=>'valign="MIDDLE" id=""');
1858: htp.tableRowClose;
1859: end loop;
1860:
1861: htp.tableClose;
1862:
1863:
1864: -- Button to create new rule
1865: htp.formOpen(curl=>'wf_route.CreateRule',
1861: htp.tableClose;
1862:
1863:
1864: -- Button to create new rule
1865: htp.formOpen(curl=>'wf_route.CreateRule',
1866: cmethod=>'POST', cattributes=>'NAME="WF_LIST"');
1867:
1868: htp.formHidden('user', username);
1869:
1864: -- Button to create new rule
1865: htp.formOpen(curl=>'wf_route.CreateRule',
1866: cmethod=>'POST', cattributes=>'NAME="WF_LIST"');
1867:
1868: htp.formHidden('user', username);
1869:
1870: htp.formClose;
1871:
1872: -- Add submit button
1866: cmethod=>'POST', cattributes=>'NAME="WF_LIST"');
1867:
1868: htp.formHidden('user', username);
1869:
1870: htp.formClose;
1871:
1872: -- Add submit button
1873: htp.tableopen(calign=>'CENTER',cattributes=>'summary=""');
1874: htp.tableRowOpen;
1869:
1870: htp.formClose;
1871:
1872: -- Add submit button
1873: htp.tableopen(calign=>'CENTER',cattributes=>'summary=""');
1874: htp.tableRowOpen;
1875:
1876: htp.p('
1870: htp.formClose;
1871:
1872: -- Add submit button
1873: htp.tableopen(calign=>'CENTER',cattributes=>'summary=""');
1874: htp.tableRowOpen;
1875:
1876: htp.p('
1872: -- Add submit button
1873: htp.tableopen(calign=>'CENTER',cattributes=>'summary=""');
1874: htp.tableRowOpen;
1875:
1876: htp.p('
1880: wfa_html.image_loc,
1881: 'FNDJLFOK.gif',
1882: wf_core.translate('WFRTG_INSERT'));
1883:
1884: htp.p('
1882: wf_core.translate('WFRTG_INSERT'));
1883:
1884: htp.p('');
1885:
1886: htp.tableRowClose;
1887: htp.tableClose;
1888:
1889:
1890: -- Close up shop
1883:
1884: htp.p('');
1885:
1886: htp.tableRowClose;
1887: htp.tableClose;
1888:
1889:
1890: -- Close up shop
1891: -- wfa_sec.Footer;
1888:
1889:
1890: -- Close up shop
1891: -- wfa_sec.Footer;
1892: htp.htmlClose;
1893: exception
1894: when others then
1895: wf_core.context('Wf_Route', 'List', user, display_user);
1896: wf_route.error;
1931: return;
1932: end if;
1933:
1934: -- Admin approved, draw the form
1935: htp.htmlOpen;
1936: htp.headOpen;
1937: htp.title(wf_core.translate('WFRTG_FIND_TITLE'));
1938: wfa_html.create_help_function('wf/links/rul.htm?RULES');
1939: fnd_document_management.get_open_dm_display_window;
1932: end if;
1933:
1934: -- Admin approved, draw the form
1935: htp.htmlOpen;
1936: htp.headOpen;
1937: htp.title(wf_core.translate('WFRTG_FIND_TITLE'));
1938: wfa_html.create_help_function('wf/links/rul.htm?RULES');
1939: fnd_document_management.get_open_dm_display_window;
1940: htp.headClose;
1933:
1934: -- Admin approved, draw the form
1935: htp.htmlOpen;
1936: htp.headOpen;
1937: htp.title(wf_core.translate('WFRTG_FIND_TITLE'));
1938: wfa_html.create_help_function('wf/links/rul.htm?RULES');
1939: fnd_document_management.get_open_dm_display_window;
1940: htp.headClose;
1941: wfa_sec.header(FALSE, '', wf_core.translate('WFRTG_FIND_TITLE'), TRUE);
1936: htp.headOpen;
1937: htp.title(wf_core.translate('WFRTG_FIND_TITLE'));
1938: wfa_html.create_help_function('wf/links/rul.htm?RULES');
1939: fnd_document_management.get_open_dm_display_window;
1940: htp.headClose;
1941: wfa_sec.header(FALSE, '', wf_core.translate('WFRTG_FIND_TITLE'), TRUE);
1942:
1943: htp.formOpen(curl=>'wf_route.list',
1944: cmethod=>'POST', cattributes=>'NAME="WF_FIND"');
1939: fnd_document_management.get_open_dm_display_window;
1940: htp.headClose;
1941: wfa_sec.header(FALSE, '', wf_core.translate('WFRTG_FIND_TITLE'), TRUE);
1942:
1943: htp.formOpen(curl=>'wf_route.list',
1944: cmethod=>'POST', cattributes=>'NAME="WF_FIND"');
1945:
1946: htp.tableOpen(calign=>'CENTER', cattributes=>'border=0 cellpadding=2 cellspacing=0 summary=""');
1947:
1942:
1943: htp.formOpen(curl=>'wf_route.list',
1944: cmethod=>'POST', cattributes=>'NAME="WF_FIND"');
1945:
1946: htp.tableOpen(calign=>'CENTER', cattributes=>'border=0 cellpadding=2 cellspacing=0 summary=""');
1947:
1948: htp.tableRowOpen;
1949: htp.tableData(cvalue=>'
1950: wf_core.translate('USER_ID') || '
1944: cmethod=>'POST', cattributes=>'NAME="WF_FIND"');
1945:
1946: htp.tableOpen(calign=>'CENTER', cattributes=>'border=0 cellpadding=2 cellspacing=0 summary=""');
1947:
1948: htp.tableRowOpen;
1949: htp.tableData(cvalue=>'
1950: wf_core.translate('USER_ID') || '
1951: cattributes=>'id=""');
1952: htp.formHidden('user', curuser);
1945:
1946: htp.tableOpen(calign=>'CENTER', cattributes=>'border=0 cellpadding=2 cellspacing=0 summary=""');
1947:
1948: htp.tableRowOpen;
1949: htp.tableData(cvalue=>'
1951: cattributes=>'id=""');
1952: htp.formHidden('user', curuser);
1953:
1948: htp.tableRowOpen;
1949: htp.tableData(cvalue=>'
1950: wf_core.translate('USER_ID') || '
1951: cattributes=>'id=""');
1952: htp.formHidden('user', curuser);
1953:
1954: -- add LOV here: Note:bottom is name of frame.
1955: -- Note: The REPLACE function replaces all the space characters with
1956: -- the proper escape sequence.
1964: '&p_dest_display_field=top.opener.parent.document.WF_FIND.display_user.value',
1965: ' ', '%20')||''''||',500,500)';
1966:
1967: -- print everything together so ther is no gap.
1968: htp.tabledata(htf.formText(cname=>'display_user', csize=>30,
1969: cmaxlength=>360,
1970: cvalue=>realname,
1971: cattributes=>'id="i_display_user"')||
1972: ''||
1974: l_message||'" onmouseover="window.status='||''''||
1975: l_message||''''||';return true">',
1976: cattributes=>'id=""');
1977:
1978: htp.tableRowClose;
1979: htp.tableClose;
1980: htp.formClose;
1981:
1982: -- Add submit button
1975: l_message||''''||';return true">',
1976: cattributes=>'id=""');
1977:
1978: htp.tableRowClose;
1979: htp.tableClose;
1980: htp.formClose;
1981:
1982: -- Add submit button
1983: htp.tableopen(calign=>'CENTER',cattributes=>'summary=""');
1976: cattributes=>'id=""');
1977:
1978: htp.tableRowClose;
1979: htp.tableClose;
1980: htp.formClose;
1981:
1982: -- Add submit button
1983: htp.tableopen(calign=>'CENTER',cattributes=>'summary=""');
1984: htp.tableRowOpen;
1979: htp.tableClose;
1980: htp.formClose;
1981:
1982: -- Add submit button
1983: htp.tableopen(calign=>'CENTER',cattributes=>'summary=""');
1984: htp.tableRowOpen;
1985:
1986: htp.p('
1980: htp.formClose;
1981:
1982: -- Add submit button
1983: htp.tableopen(calign=>'CENTER',cattributes=>'summary=""');
1984: htp.tableRowOpen;
1985:
1986: htp.p('
1982: -- Add submit button
1983: htp.tableopen(calign=>'CENTER',cattributes=>'summary=""');
1984: htp.tableRowOpen;
1985:
1986: htp.p('
1990: wfa_html.image_loc,
1991: 'fndfind.gif',
1992: wf_core.translate ('FIND'));
1993:
1994: htp.p('
1992: wf_core.translate ('FIND'));
1993:
1994: htp.p('');
1995:
1996: htp.tableRowClose;
1997: htp.tableClose;
1998:
1999: wfa_sec.Footer;
2000: htp.htmlClose;
1993:
1994: htp.p('');
1995:
1996: htp.tableRowClose;
1997: htp.tableClose;
1998:
1999: wfa_sec.Footer;
2000: htp.htmlClose;
2001: exception
1996: htp.tableRowClose;
1997: htp.tableClose;
1998:
1999: wfa_sec.Footer;
2000: htp.htmlClose;
2001: exception
2002: when others then
2003: wf_core.context('Wf_Route', 'Find', user);
2004: wf_route.error;