25: if (value is null) then
26: return;
27: end if;
28:
29: htp.tableRowOpen;
30:
31: -- Include description if needed.
32: -- NOTE: Description are printed here instead of in the prompt link
33: -- as for other fields, because the prompt is already used for the
32: -- NOTE: Description are printed here instead of in the prompt link
33: -- as for other fields, because the prompt is already used for the
34: -- URL itself.
35: if (description is not null) then
36: htp.tableData(description, 'right', cattributes=>'id=""');
37: else
38: htp.tableData(htf.br, cattributes=>'id=""');
39: end if;
40:
34: -- URL itself.
35: if (description is not null) then
36: htp.tableData(description, 'right', cattributes=>'id=""');
37: else
38: htp.tableData(htf.br, cattributes=>'id=""');
39: end if;
40:
41: -- Print URL
42: urlstring:=wf_notification.GetURLText(value, nid);
42: urlstring:=wf_notification.GetURLText(value, nid);
43:
44: -- Bug 4634849
45: urlstring := wfa_html.encode_url(urlstring);
46: htp.p('
44: -- Bug 4634849
45: urlstring := wfa_html.encode_url(urlstring);
46: htp.p('
94: len := 62;
95: end if;
96:
97: -- Draw field
98: htp.formHidden('h_fnames', name||'#'||type||'#'||format);
99:
100: /* Need to create a hidden document name field if this is not a document
101: ** resond attrubute, otherwise the index will reference index elements
102: ** that don't exist because the element lists are out of sync
101: ** resond attrubute, otherwise the index will reference index elements
102: ** that don't exist because the element lists are out of sync
103: */
104: if (type NOT IN ('DOCUMENT' , 'ROLE')) THEN
105: htp.formHidden('h_fdocnames', '');
106: end if;
107:
108: if (len <= 80) then
109:
115: */
116:
117: if (type = 'DOCUMENT') THEN
118:
119: htp.formhidden ('h_fvalues', dvalue);
120:
121: -- Set the destination field name for the document id
122: fnd_document_management.set_document_id_html (
123: 'bottom',
175:
176: END IF;
177:
178: -- document field
179: htp.tableData(
180: cvalue=>htf.formText(cname=>'h_fdocnames', csize=>len-30,
181: cmaxlength=>len, cvalue=>l_document_name)||
182: '   '||
183: l_attach_URL,
184: calign=>'Left', cattributes=>'id=""');
185:
186: else
187: -- single line field
188: -- htp.tableData(
189: -- cvalue=>htf.formText(cname=>'h_fvalues', csize=>len,
190: -- cmaxlength=>len, cvalue=>dvalue),
191: -- calign=>'Left');
192: htp.p('
188: -- htp.tableData(
189: -- cvalue=>htf.formText(cname=>'h_fvalues', csize=>len,
190: -- cmaxlength=>len, cvalue=>dvalue),
191: -- calign=>'Left');
192: htp.p('
191: -- calign=>'Left');
192: htp.p('
197: else
198:
199: l_message := wf_core.translate ('WFPREF_LOV');
200:
201: htp.formhidden ('h_fvalues', dvalue);
202:
203: -- add LOV here: Note:bottom is name of frame.
204: -- Note: The REPLACE function replaces all the space characters with
205: -- the proper escape sequence.
213: '&p_dest_display_field=top.opener.parent.bottom.document.WFNOTRESP.h_fdocnames['||to_char(index_num)||'].value',
214: ' ', '%20')||''''||',500,500)';
215:
216: -- print everything together so ther is no gap.
217: htp.p(htf.formText(cname=>'h_fdocnames', csize=>len, cmaxlength=>240,
218: cvalue=>dvalue)||
219: ''||
220: '');
223: end if;
224: htp.p('
226: end if;
227:
228: else
229: -- multi line field
230: htp.tableData(
231: cvalue=>htf.formTextareaOpen2(
232: cname=>'h_fvalues',
233: nrows=>2,
234: ncolumns=>65,
287: template := template||wf_core.newline||htf.formSelectClose;
288:
289: if (not submit) then
290: -- Draw a normal field
291: htp.tableData(template, 'left', cattributes=>'id=""');
292: htp.formHidden('h_fdocnames', '');
293:
294: else
295: -- Draw a submit-style field for the result.
288:
289: if (not submit) then
290: -- Draw a normal field
291: htp.tableData(template, 'left', cattributes=>'id=""');
292: htp.formHidden('h_fdocnames', '');
293:
294: else
295: -- Draw a submit-style field for the result.
296: -- Leave TableData open so reassign button can be added to same cell.
294: else
295: -- Draw a submit-style field for the result.
296: -- Leave TableData open so reassign button can be added to same cell.
297:
298: htp.p('
296: -- Leave TableData open so reassign button can be added to same cell.
297:
298: htp.p('
303: wfa_html.image_loc,
304: null,
305: wf_core.translate ('SUBMIT'));
306:
307: htp.p('
353: else
354: -- Use buttons.
355:
356: -- Add a hidden field for the result field name
357: htp.formHidden('h_fnames', 'RESULT#LOOKUP#'||format);
358: htp.formHidden('h_fvalues', null);
359:
360: -- Add a button for every lookup
361: for i in lookup_codes(format) loop
354: -- Use buttons.
355:
356: -- Add a hidden field for the result field name
357: htp.formHidden('h_fnames', 'RESULT#LOOKUP#'||format);
358: htp.formHidden('h_fvalues', null);
359:
360: -- Add a button for every lookup
361: for i in lookup_codes(format) loop
362: htp.p('
358: htp.formHidden('h_fvalues', null);
359:
360: -- Add a button for every lookup
361: for i in lookup_codes(format) loop
362: htp.p('
366: i.meaning,
367: wfa_html.image_loc,
368: null,
369: i.meaning);
370: htp.p('
368: null,
369: i.meaning);
370: htp.p('');
371:
372: /*htp.formSubmit('h_fvalues', i.meaning, 'NOBORDER');*/
373: end loop;
374:
375: end if;
376: