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);
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('
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: '
240: end if;
241: exception
242: when others then
268: template varchar2(4000);
269:
270: begin
271: -- Create hidden field and select list
272: template := htf.formHidden('h_fnames', name||'#LOOKUP#'||format)||
273: wf_core.newline||
274: htf.formSelectOpen('h_fvalues');
275:
276:
270: begin
271: -- Create hidden field and select list
272: template := htf.formHidden('h_fnames', name||'#LOOKUP#'||format)||
273: wf_core.newline||
274: htf.formSelectOpen('h_fvalues');
275:
276:
277: -- Add all lookups to select list
278: for i in lookup_codes(format) loop
277: -- Add all lookups to select list
278: for i in lookup_codes(format) loop
279: if (i.lookup_code = value) then
280: template := template||wf_core.newline||
281: htf.formSelectOption(i.meaning, 'SELECTED','VALUE="'||i.lookup_code||'"');
282: else
283: template := template||wf_core.newline||
284: htf.formSelectOption(i.meaning,null,'VALUE="'||i.lookup_code||'"');
285: end if;
280: template := template||wf_core.newline||
281: htf.formSelectOption(i.meaning, 'SELECTED','VALUE="'||i.lookup_code||'"');
282: else
283: template := template||wf_core.newline||
284: htf.formSelectOption(i.meaning,null,'VALUE="'||i.lookup_code||'"');
285: end if;
286: end loop;
287: template := template||wf_core.newline||htf.formSelectClose;
288:
283: template := template||wf_core.newline||
284: htf.formSelectOption(i.meaning,null,'VALUE="'||i.lookup_code||'"');
285: end if;
286: end loop;
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=""');