11: begin
12: if icx_sec.validateSession then
13: icx_util.getPrompts(601,'ICX_RELATED_TEMPLATES_R',l_title,l_prompts);
14:
15: htp.htmlOpen;
16: htp.headOpen;
17: icx_util.copyright;
18: htp.title(l_title);
19: htp.headClose;
12: if icx_sec.validateSession then
13: icx_util.getPrompts(601,'ICX_RELATED_TEMPLATES_R',l_title,l_prompts);
14:
15: htp.htmlOpen;
16: htp.headOpen;
17: icx_util.copyright;
18: htp.title(l_title);
19: htp.headClose;
20:
14:
15: htp.htmlOpen;
16: htp.headOpen;
17: icx_util.copyright;
18: htp.title(l_title);
19: htp.headClose;
20:
21: htp.p('
25:
26:
27: htp.p('
28: FND_MESSAGE.SET_NAME('ICX','ICX_BROWSER');
29: htp.p(FND_MESSAGE.Get);
30: htp.p('
31:
32: htp.htmlClose;
33: end if; -- validateSession
26:
27: htp.p('
28: FND_MESSAGE.SET_NAME('ICX','ICX_BROWSER');
29: htp.p(FND_MESSAGE.Get);
30: htp.p('
31:
32: htp.htmlClose;
33: end if; -- validateSession
34:
28: FND_MESSAGE.SET_NAME('ICX','ICX_BROWSER');
29: htp.p(FND_MESSAGE.Get);
30: htp.p('');
31:
32: htp.htmlClose;
33: end if; -- validateSession
34:
35: end main;
36:
67: l_language := icx_sec.getID(icx_sec.PV_LANGUAGE_CODE);
68: icx_util.getPrompts(601,'ICX_RELATED_TEMPLATES_R',l_title,l_prompts);
69: icx_util.getPrompts(601,'ICX_LOV',lov_title,lov_prompts);
70:
71: htp.htmlOpen;
72: htp.headOpen;
73: icx_util.copyright;
74:
75: htp.title(l_title);
68: icx_util.getPrompts(601,'ICX_RELATED_TEMPLATES_R',l_title,l_prompts);
69: icx_util.getPrompts(601,'ICX_LOV',lov_title,lov_prompts);
70:
71: htp.htmlOpen;
72: htp.headOpen;
73: icx_util.copyright;
74:
75: htp.title(l_title);
76:
71: htp.htmlOpen;
72: htp.headOpen;
73: icx_util.copyright;
74:
75: htp.title(l_title);
76:
77: js.scriptOpen;
78: icx_util.LOVScript;
79: icx_admin_sig.help_win_script('/OA_HTML/'||l_language||'/ICXHLMTH.htm');
80:
81: js.null_alert;
82: js.equal_alert;
83:
84: htp.p('function autoquery() {
85: parent.tail.document.Tail.p_template.value = document.Template.ICX_TEMPLATE1.value
86: parent.tail.document.Tail.submit()
87: }');
88:
86: parent.tail.document.Tail.submit()
87: }');
88:
89:
90: htp.p('function template_changed() {
91: parent.tail.document.Tail.p_template.value = document.Template.ICX_TEMPLATE1.value
92: parent.tail.document.Tail.submit()
93: }');
94:
91: parent.tail.document.Tail.p_template.value = document.Template.ICX_TEMPLATE1.value
92: parent.tail.document.Tail.submit()
93: }');
94:
95: htp.p('function pre_template_LOV() {
96: LOV(''178'',''ICX_TEMPLATE1'',''601'',''ICX_RELATED_TEMPLATES_R'',''Template'',''header'','''','''')
97: }');
98:
99: htp.p('function post_template_LOV(template_name) {
95: htp.p('function pre_template_LOV() {
96: LOV(''178'',''ICX_TEMPLATE1'',''601'',''ICX_RELATED_TEMPLATES_R'',''Template'',''header'','''','''')
97: }');
98:
99: htp.p('function post_template_LOV(template_name) {
100: parent.tail.document.Tail.p_template.value = template_name
101: parent.tail.document.Tail.submit()
102: }');
103:
101: parent.tail.document.Tail.submit()
102: }');
103:
104: FND_MESSAGE.SET_NAME('ICX','ICX_TMP_BEFORE');
105: htp.p('function pre_rel_template_LOV() {
106: if (!null_alert(document.Template.ICX_TEMPLATE1.value,"'||icx_util.replace_quotes(FND_MESSAGE.Get)||'")) {
107: LOV(''178'',''ICX_RELATED_TEMPLATE'',''601'',''ICX_RELATED_TEMPLATES_R'',''Template'',''header'','''','''')
108: }
109: }');
112: -- var l_where = "EXPRESS_NAME<>''" + document.Template.ICX_TEMPLATE1.value + "''"
113:
114:
115: FND_MESSAGE.SET_NAME('ICX','ICX_NOT_NULL');
116: htp.p('function template_submit() {
117: if (!null_alert(document.Template.ICX_TEMPLATE1.value,"'||icx_util.replace_quotes(l_prompts(1))||' '||icx_util.replace_quotes(FND_MESSAGE.Get)||'")) {
118: if (document.Template.ICX_RELATION.options[document.Template.ICX_RELATION.selectedIndex].value != "TOP") {');
119: FND_MESSAGE.SET_NAME('ICX','ICX_NOT_NULL');
120: htp.p(' if (!null_alert(document.Template.ICX_RELATED_TEMPLATE.value,"'||icx_util.replace_quotes(l_prompts(2))||' '||icx_util.replace_quotes(FND_MESSAGE.Get)||'")) {');
116: htp.p('function template_submit() {
117: if (!null_alert(document.Template.ICX_TEMPLATE1.value,"'||icx_util.replace_quotes(l_prompts(1))||' '||icx_util.replace_quotes(FND_MESSAGE.Get)||'")) {
118: if (document.Template.ICX_RELATION.options[document.Template.ICX_RELATION.selectedIndex].value != "TOP") {');
119: FND_MESSAGE.SET_NAME('ICX','ICX_NOT_NULL');
120: htp.p(' if (!null_alert(document.Template.ICX_RELATED_TEMPLATE.value,"'||icx_util.replace_quotes(l_prompts(2))||' '||icx_util.replace_quotes(FND_MESSAGE.Get)||'")) {');
121: FND_MESSAGE.SET_NAME('ICX','ICX_CAT_PARENT');
122: htp.p(' if (!equal_alert(document.Template.ICX_TEMPLATE1.value,document.Template.ICX_RELATED_TEMPLATE.value,"'||icx_util.replace_quotes(FND_MESSAGE.Get)||'")) {
123: document.Template.submit()
124: }
118: if (document.Template.ICX_RELATION.options[document.Template.ICX_RELATION.selectedIndex].value != "TOP") {');
119: FND_MESSAGE.SET_NAME('ICX','ICX_NOT_NULL');
120: htp.p(' if (!null_alert(document.Template.ICX_RELATED_TEMPLATE.value,"'||icx_util.replace_quotes(l_prompts(2))||' '||icx_util.replace_quotes(FND_MESSAGE.Get)||'")) {');
121: FND_MESSAGE.SET_NAME('ICX','ICX_CAT_PARENT');
122: htp.p(' if (!equal_alert(document.Template.ICX_TEMPLATE1.value,document.Template.ICX_RELATED_TEMPLATE.value,"'||icx_util.replace_quotes(FND_MESSAGE.Get)||'")) {
123: document.Template.submit()
124: }
125: }
126: } else {
129: }
130: }');
131:
132: js.scriptClose;
133: htp.headClose;
134:
135: htp.bodyOpen(icx_admin_sig.background);
136: icx_admin_sig.toolbar(language_code => l_language);
137:
131:
132: js.scriptClose;
133: htp.headClose;
134:
135: htp.bodyOpen(icx_admin_sig.background);
136: icx_admin_sig.toolbar(language_code => l_language);
137:
138: htp.formOpen(l_agent||'/icx_template_heirarchy.template_insert','POST','','','NAME="Template"');
139:
134:
135: htp.bodyOpen(icx_admin_sig.background);
136: icx_admin_sig.toolbar(language_code => l_language);
137:
138: htp.formOpen(l_agent||'/icx_template_heirarchy.template_insert','POST','','','NAME="Template"');
139:
140: htp.tableOpen;
141: htp.tableRowOpen;
142: htp.tableData('
136: icx_admin_sig.toolbar(language_code => l_language);
137:
138: htp.formOpen(l_agent||'/icx_template_heirarchy.template_insert','POST','','','NAME="Template"');
139:
140: htp.tableOpen;
141: htp.tableRowOpen;
142: htp.tableData('
137:
138: htp.formOpen(l_agent||'/icx_template_heirarchy.template_insert','POST','','','NAME="Template"');
139:
140: htp.tableOpen;
141: htp.tableRowOpen;
142: htp.tableData('
138: htp.formOpen(l_agent||'/icx_template_heirarchy.template_insert','POST','','','NAME="Template"');
139:
140: htp.tableOpen;
141: htp.tableRowOpen;
142: htp.tableData(''||l_title||'
');
143: htp.tableRowClose;
144: htp.tableClose;
145:
146: htp.tableOpen;
139:
140: htp.tableOpen;
141: htp.tableRowOpen;
142: htp.tableData('
140: htp.tableOpen;
141: htp.tableRowOpen;
142: htp.tableData('
142: htp.tableData('
143: htp.tableRowClose;
144: htp.tableClose;
145:
146: htp.tableOpen;
147: htp.tableRowOpen;
148:
149: -- Blank table data
150: htp.tableData('
');
151: htp.tableData('
');
146: htp.tableOpen;
147: htp.tableRowOpen;
148:
149: -- Blank table data
150: htp.tableData('
');
151: htp.tableData('
');
152:
153: -- Template text field
154: htp.tableData(l_prompts(1),'RIGHT');
147: htp.tableRowOpen;
148:
149: -- Blank table data
150: htp.tableData('
');
151: htp.tableData('
');
152:
153: -- Template text field
154: htp.tableData(l_prompts(1),'RIGHT');
155: htp.tableData(htf.formText('ICX_TEMPLATE1',30,81,p_template,'onchange="template_changed()"'));
150: htp.tableData('
');
151: htp.tableData('
');
152:
153: -- Template text field
154: htp.tableData(l_prompts(1),'RIGHT');
155: htp.tableData(htf.formText('ICX_TEMPLATE1',30,81,p_template,'onchange="template_changed()"'));
156: htp.tableData(htf.anchor('javascript:pre_template_LOV()',htf.img('/OA_MEDIA/'||l_language||'/FNDILOV.gif','CENTER',icx_util.replace_alt_quotes(lov_title),
157: '','BORDER=0 WIDTH=23 HEIGHT=21'),'','onMouseOver="window.status='''||icx_util.replace_onMouseOver_quotes(lov_title)||''';return true"'));
158: htp.tableRowClose;
151: htp.tableData('
');
152:
153: -- Template text field
154: htp.tableData(l_prompts(1),'RIGHT');
155: htp.tableData(htf.formText('ICX_TEMPLATE1',30,81,p_template,'onchange="template_changed()"'));
156: htp.tableData(htf.anchor('javascript:pre_template_LOV()',htf.img('/OA_MEDIA/'||l_language||'/FNDILOV.gif','CENTER',icx_util.replace_alt_quotes(lov_title),
157: '','BORDER=0 WIDTH=23 HEIGHT=21'),'','onMouseOver="window.status='''||icx_util.replace_onMouseOver_quotes(lov_title)||''';return true"'));
158: htp.tableRowClose;
159:
152:
153: -- Template text field
154: htp.tableData(l_prompts(1),'RIGHT');
155: htp.tableData(htf.formText('ICX_TEMPLATE1',30,81,p_template,'onchange="template_changed()"'));
156: htp.tableData(htf.anchor('javascript:pre_template_LOV()',htf.img('/OA_MEDIA/'||l_language||'/FNDILOV.gif','CENTER',icx_util.replace_alt_quotes(lov_title),
157: '','BORDER=0 WIDTH=23 HEIGHT=21'),'','onMouseOver="window.status='''||icx_util.replace_onMouseOver_quotes(lov_title)||''';return true"'));
158: htp.tableRowClose;
159:
160: -- Relation poplist
154: htp.tableData(l_prompts(1),'RIGHT');
155: htp.tableData(htf.formText('ICX_TEMPLATE1',30,81,p_template,'onchange="template_changed()"'));
156: htp.tableData(htf.anchor('javascript:pre_template_LOV()',htf.img('/OA_MEDIA/'||l_language||'/FNDILOV.gif','CENTER',icx_util.replace_alt_quotes(lov_title),
157: '','BORDER=0 WIDTH=23 HEIGHT=21'),'','onMouseOver="window.status='''||icx_util.replace_onMouseOver_quotes(lov_title)||''';return true"'));
158: htp.tableRowClose;
159:
160: -- Relation poplist
161: htp.tableRowOpen;
162: htp.tableData(l_prompts(3),'RIGHT');
157: '','BORDER=0 WIDTH=23 HEIGHT=21'),'','onMouseOver="window.status='''||icx_util.replace_onMouseOver_quotes(lov_title)||''';return true"'));
158: htp.tableRowClose;
159:
160: -- Relation poplist
161: htp.tableRowOpen;
162: htp.tableData(l_prompts(3),'RIGHT');
163: htp.p('
158: htp.tableRowClose;
159:
160: -- Relation poplist
161: htp.tableRowOpen;
162: htp.tableData(l_prompts(3),'RIGHT');
163: htp.p('
159:
160: -- Relation poplist
161: htp.tableRowOpen;
162: htp.tableData(l_prompts(3),'RIGHT');
163: htp.p('
164: open relations;
165: loop
166: fetch relations into temp_relation_code, temp_relation;
167: exit when relations%NOTFOUND;
168: htp.formSelectOption(temp_relation,'','VALUE="'||temp_relation_code||'"');
169: end loop;
170: close relations;
171: htp.p(htf.formSelectClose||'
167: exit when relations%NOTFOUND;
168: htp.formSelectOption(temp_relation,'','VALUE="'||temp_relation_code||'"');
169: end loop;
170: close relations;
171: htp.p(htf.formSelectClose||'');
172:
173: -- Related Category text field
174: htp.tableData(l_prompts(2),'RIGHT');
175: htp.tableData(htf.formText('ICX_RELATED_TEMPLATE',30,81,''));
170: close relations;
171: htp.p(htf.formSelectClose||'');
172:
173: -- Related Category text field
174: htp.tableData(l_prompts(2),'RIGHT');
175: htp.tableData(htf.formText('ICX_RELATED_TEMPLATE',30,81,''));
176: htp.tableData(htf.anchor('javascript:pre_rel_template_LOV()',htf.img('/OA_MEDIA/'||l_language||'/FNDILOV.gif','CENTER',icx_util.replace_alt_quotes(lov_title),
177: '','BORDER=0 WIDTH=23 HEIGHT=21'),'','onMouseOver="window.status='''||icx_util.replace_onMouseOver_quotes(lov_title)||''';return true"'));
178: htp.tableRowClose;
171: htp.p(htf.formSelectClose||'');
172:
173: -- Related Category text field
174: htp.tableData(l_prompts(2),'RIGHT');
175: htp.tableData(htf.formText('ICX_RELATED_TEMPLATE',30,81,''));
176: htp.tableData(htf.anchor('javascript:pre_rel_template_LOV()',htf.img('/OA_MEDIA/'||l_language||'/FNDILOV.gif','CENTER',icx_util.replace_alt_quotes(lov_title),
177: '','BORDER=0 WIDTH=23 HEIGHT=21'),'','onMouseOver="window.status='''||icx_util.replace_onMouseOver_quotes(lov_title)||''';return true"'));
178: htp.tableRowClose;
179: htp.tableClose;
172:
173: -- Related Category text field
174: htp.tableData(l_prompts(2),'RIGHT');
175: htp.tableData(htf.formText('ICX_RELATED_TEMPLATE',30,81,''));
176: htp.tableData(htf.anchor('javascript:pre_rel_template_LOV()',htf.img('/OA_MEDIA/'||l_language||'/FNDILOV.gif','CENTER',icx_util.replace_alt_quotes(lov_title),
177: '','BORDER=0 WIDTH=23 HEIGHT=21'),'','onMouseOver="window.status='''||icx_util.replace_onMouseOver_quotes(lov_title)||''';return true"'));
178: htp.tableRowClose;
179: htp.tableClose;
180:
174: htp.tableData(l_prompts(2),'RIGHT');
175: htp.tableData(htf.formText('ICX_RELATED_TEMPLATE',30,81,''));
176: htp.tableData(htf.anchor('javascript:pre_rel_template_LOV()',htf.img('/OA_MEDIA/'||l_language||'/FNDILOV.gif','CENTER',icx_util.replace_alt_quotes(lov_title),
177: '','BORDER=0 WIDTH=23 HEIGHT=21'),'','onMouseOver="window.status='''||icx_util.replace_onMouseOver_quotes(lov_title)||''';return true"'));
178: htp.tableRowClose;
179: htp.tableClose;
180:
181:
182: -- Write submit and clear buttons
175: htp.tableData(htf.formText('ICX_RELATED_TEMPLATE',30,81,''));
176: htp.tableData(htf.anchor('javascript:pre_rel_template_LOV()',htf.img('/OA_MEDIA/'||l_language||'/FNDILOV.gif','CENTER',icx_util.replace_alt_quotes(lov_title),
177: '','BORDER=0 WIDTH=23 HEIGHT=21'),'','onMouseOver="window.status='''||icx_util.replace_onMouseOver_quotes(lov_title)||''';return true"'));
178: htp.tableRowClose;
179: htp.tableClose;
180:
181:
182: -- Write submit and clear buttons
183: htp.tableOpen;
179: htp.tableClose;
180:
181:
182: -- Write submit and clear buttons
183: htp.tableOpen;
184: htp.tableRowOpen;
185: icx_util.DynamicButton(l_prompts(4),'FNDBSBMT.gif',l_prompts(4),'javascript:template_submit()',l_language,FALSE);
186: if (instr(c_browser, 'MSIE') = 0) then
187: icx_util.DynamicButton(l_prompts(5),'FNDBCLR.gif',l_prompts(5),'javascript:document.Template.reset()',l_language,FALSE);
180:
181:
182: -- Write submit and clear buttons
183: htp.tableOpen;
184: htp.tableRowOpen;
185: icx_util.DynamicButton(l_prompts(4),'FNDBSBMT.gif',l_prompts(4),'javascript:template_submit()',l_language,FALSE);
186: if (instr(c_browser, 'MSIE') = 0) then
187: icx_util.DynamicButton(l_prompts(5),'FNDBCLR.gif',l_prompts(5),'javascript:document.Template.reset()',l_language,FALSE);
188: end if;
185: icx_util.DynamicButton(l_prompts(4),'FNDBSBMT.gif',l_prompts(4),'javascript:template_submit()',l_language,FALSE);
186: if (instr(c_browser, 'MSIE') = 0) then
187: icx_util.DynamicButton(l_prompts(5),'FNDBCLR.gif',l_prompts(5),'javascript:document.Template.reset()',l_language,FALSE);
188: end if;
189: htp.tableRowClose;
190: htp.tableClose;
191:
192:
193: -- Query relationships if screen is being repainted after a commit
186: if (instr(c_browser, 'MSIE') = 0) then
187: icx_util.DynamicButton(l_prompts(5),'FNDBCLR.gif',l_prompts(5),'javascript:document.Template.reset()',l_language,FALSE);
188: end if;
189: htp.tableRowClose;
190: htp.tableClose;
191:
192:
193: -- Query relationships if screen is being repainted after a commit
194: if p_query_flag = 'T' then
192:
193: -- Query relationships if screen is being repainted after a commit
194: if p_query_flag = 'T' then
195: htp.p('');
198: end if;
199:
200:
193: -- Query relationships if screen is being repainted after a commit
194: if p_query_flag = 'T' then
195: htp.p('');
198: end if;
199:
200:
201: htp.formClose;
197: htp.p('');
198: end if;
199:
200:
201: htp.formClose;
202: icx_sig.footer;
203: htp.bodyClose;
204: htp.htmlClose;
205:
199:
200:
201: htp.formClose;
202: icx_sig.footer;
203: htp.bodyClose;
204: htp.htmlClose;
205:
206: end if; -- ValidateSession
207:
200:
201: htp.formClose;
202: icx_sig.footer;
203: htp.bodyClose;
204: htp.htmlClose;
205:
206: end if; -- ValidateSession
207:
208: exception
255: icx_util.error_page_setup;
256: l_language := icx_sec.getID(icx_sec.PV_LANGUAGE_CODE);
257: icx_util.getPrompts(601,'ICX_RELATED_TEMPLATES_DISP_R',l_title,l_prompts);
258:
259: htp.htmlOpen;
260: htp.headOpen;
261: icx_util.copyright;
262: js.scriptOpen;
263:
256: l_language := icx_sec.getID(icx_sec.PV_LANGUAGE_CODE);
257: icx_util.getPrompts(601,'ICX_RELATED_TEMPLATES_DISP_R',l_title,l_prompts);
258:
259: htp.htmlOpen;
260: htp.headOpen;
261: icx_util.copyright;
262: js.scriptOpen;
263:
264: -- Javascript function to handle CD buttons
261: icx_util.copyright;
262: js.scriptOpen;
263:
264: -- Javascript function to handle CD buttons
265: htp.p('function rows(start_num, end_num) {
266: document.Tail.p_start_row.value = start_num
267: document.Tail.p_end_row.value = end_num
268: document.Tail.submit()
269: }');
269: }');
270:
271: -- javascript function to confirm delete of relationship
272: FND_MESSAGE.Set_name('ICX','ICX_DELETE');
273: htp.p('function delete_relation(template, related_template, html_template, html_related_template) {
274: if (confirm("'||icx_util.replace_onMouseOver_quotes(FND_MESSAGE.Get)||': " + template + " - " + related_template)) {
275: open('''||l_agent||'/ICX_TEMPLATE_HEIRARCHY.template_delete?icx_template1='' + html_template + ''&icx_related_template='' + html_related_template,''tail'')
276: }
277: }');
276: }
277: }');
278:
279: js.scriptClose;
280: htp.headClose;
281:
282: htp.bodyOpen(icx_admin_sig.background);
283:
284: htp.formOpen(l_agent||'/icx_template_heirarchy.template_tail','POST','','','NAME="Tail"');
278:
279: js.scriptClose;
280: htp.headClose;
281:
282: htp.bodyOpen(icx_admin_sig.background);
283:
284: htp.formOpen(l_agent||'/icx_template_heirarchy.template_tail','POST','','','NAME="Tail"');
285:
286: htp.formHidden('p_template',p_template);
280: htp.headClose;
281:
282: htp.bodyOpen(icx_admin_sig.background);
283:
284: htp.formOpen(l_agent||'/icx_template_heirarchy.template_tail','POST','','','NAME="Tail"');
285:
286: htp.formHidden('p_template',p_template);
287: htp.formHidden('p_start_row',p_start_row);
288: htp.formHidden('p_end_row',p_end_row);
282: htp.bodyOpen(icx_admin_sig.background);
283:
284: htp.formOpen(l_agent||'/icx_template_heirarchy.template_tail','POST','','','NAME="Tail"');
285:
286: htp.formHidden('p_template',p_template);
287: htp.formHidden('p_start_row',p_start_row);
288: htp.formHidden('p_end_row',p_end_row);
289:
290:
283:
284: htp.formOpen(l_agent||'/icx_template_heirarchy.template_tail','POST','','','NAME="Tail"');
285:
286: htp.formHidden('p_template',p_template);
287: htp.formHidden('p_start_row',p_start_row);
288: htp.formHidden('p_end_row',p_end_row);
289:
290:
291: -- check if p_template is valid
284: htp.formOpen(l_agent||'/icx_template_heirarchy.template_tail','POST','','','NAME="Tail"');
285:
286: htp.formHidden('p_template',p_template);
287: htp.formHidden('p_start_row',p_start_row);
288: htp.formHidden('p_end_row',p_end_row);
289:
290:
291: -- check if p_template is valid
292: select count(*) into l_count
375: end if; -- CD Buttons
376:
377:
378: -- display table header
379: htp.tableOpen('BORDER=1');
380: htp.p('
376:
380: htp.p('
383: ak_query_pkg.g_items_table(k).node_display_flag = 'Y' then
393: icx_util.transfer_Row_To_Column(ak_query_pkg.g_results_table(i-1), l_result_row_table);
407: end if;
409: -- dont display related category if relationship is TOP
413: htp.p(icx_on_utilities.formatData(icx_on_utilities.formatText(l_result_row_table(ak_query_pkg.g_items_table(k).value_id),
428: end if;
433: '''||replace(icx_util.replace_quotes(temp_template),' ','@~$')||''','''||replace(icx_util.replace_quotes(temp_related_template),' ','@~$')||''')',
437: htp.tableRowClose;
460: -- display message if no rows were returned by query
469: if p_template is not null then
475:
476: end if;
477:
377:
378: -- display table header
379: htp.tableOpen('BORDER=1');
380: htp.p('');
381: for k in ak_query_pkg.g_items_table.FIRST..ak_query_pkg.g_items_table.LAST loop
382: if ak_query_pkg.g_items_table(k).secured_column = 'F' and
383: ak_query_pkg.g_items_table(k).node_display_flag = 'Y' then
384: htp.tableData(htf.strong(ak_query_pkg.g_items_table(k).attribute_label_long),'LEFT');
Line 384: htp.tableData(htf.strong(ak_query_pkg.g_items_table(k).attribute_label_long),'LEFT');
');
381: for k in ak_query_pkg.g_items_table.FIRST..ak_query_pkg.g_items_table.LAST loop
382: if ak_query_pkg.g_items_table(k).secured_column = 'F' and
383: ak_query_pkg.g_items_table(k).node_display_flag = 'Y' then
384: htp.tableData(htf.strong(ak_query_pkg.g_items_table(k).attribute_label_long),'LEFT');
385: end if;
386: end loop;
387: htp.tableRowClose;
388:
Line 387: htp.tableRowClose;
384: htp.tableData(htf.strong(ak_query_pkg.g_items_table(k).attribute_label_long),'LEFT');
385: end if;
386: end loop;
387: htp.tableRowClose;
388:
389: end if; -- CD Buttons and table header
390:
391:
Line 397: htp.p('
');
394:
395:
396: -- display one row of data
397: htp.p('');
398: for k in ak_query_pkg.g_items_table.FIRST..ak_query_pkg.g_items_table.LAST loop
399: if ak_query_pkg.g_items_table(k).secured_column = 'F' and
400: ak_query_pkg.g_items_table(k).node_display_flag = 'Y' then
401:
Line 411: htp.tableData('
');
408: end loop;
409: -- dont display related category if relationship is TOP
410: if l_result_row_table(ak_query_pkg.g_items_table(temp_relation_item).value_id) = 'TOP' then
411: htp.tableData('
');
412: else
413: htp.p(icx_on_utilities.formatData(icx_on_utilities.formatText(l_result_row_table(ak_query_pkg.g_items_table(k).value_id),
414: ak_query_pkg.g_items_table(k).bold,ak_query_pkg.g_items_table(k).italic),ak_query_pkg.g_items_table(k).horizontal_alignment,ak_query_pkg.g_items_table(k).vertical_alignment));
415: end if;
Line 413: htp.p(icx_on_utilities.formatData(icx_on_utilities.formatText(l_result_row_table(ak_query_pkg.g_items_table(k).value_id),
410: if l_result_row_table(ak_query_pkg.g_items_table(temp_relation_item).value_id) = 'TOP' then
411: htp.tableData('
');
412: else
413: htp.p(icx_on_utilities.formatData(icx_on_utilities.formatText(l_result_row_table(ak_query_pkg.g_items_table(k).value_id),
414: ak_query_pkg.g_items_table(k).bold,ak_query_pkg.g_items_table(k).italic),ak_query_pkg.g_items_table(k).horizontal_alignment,ak_query_pkg.g_items_table(k).vertical_alignment));
415: end if;
416: else
417: htp.p(icx_on_utilities.formatData(icx_on_utilities.formatText(l_result_row_table(ak_query_pkg.g_items_table(k).value_id),
Line 417: htp.p(icx_on_utilities.formatData(icx_on_utilities.formatText(l_result_row_table(ak_query_pkg.g_items_table(k).value_id),
414: ak_query_pkg.g_items_table(k).bold,ak_query_pkg.g_items_table(k).italic),ak_query_pkg.g_items_table(k).horizontal_alignment,ak_query_pkg.g_items_table(k).vertical_alignment));
415: end if;
416: else
417: htp.p(icx_on_utilities.formatData(icx_on_utilities.formatText(l_result_row_table(ak_query_pkg.g_items_table(k).value_id),
418: ak_query_pkg.g_items_table(k).bold,ak_query_pkg.g_items_table(k).italic),ak_query_pkg.g_items_table(k).horizontal_alignment,ak_query_pkg.g_items_table(k).vertical_alignment));
419: end if;
420: end if;
421:
Line 432: htp.tableData(htf.anchor('javascript:delete_relation('''||icx_util.replace_quotes(temp_template)||''','''||icx_util.replace_quotes(temp_related_template)||''',
429:
430: end loop;
431:
432: htp.tableData(htf.anchor('javascript:delete_relation('''||icx_util.replace_quotes(temp_template)||''','''||icx_util.replace_quotes(temp_related_template)||''',
433: '''||replace(icx_util.replace_quotes(temp_template),' ','@~$')||''','''||replace(icx_util.replace_quotes(temp_related_template),' ','@~$')||''')',
434: htf.img('/OA_MEDIA/'||l_language||'/FNDIDELR.gif','CENTER',icx_util.replace_alt_quotes(l_prompts(6)),'',
435: 'BORDER=0 WIDTH=16 HEIGHT=17'),'','onMouseOver="window.status='''||icx_util.replace_onMouseOver_quotes(l_prompts(6))||''';return true"'));
436:
Line 437: htp.tableRowClose;
434: htf.img('/OA_MEDIA/'||l_language||'/FNDIDELR.gif','CENTER',icx_util.replace_alt_quotes(l_prompts(6)),'',
435: 'BORDER=0 WIDTH=16 HEIGHT=17'),'','onMouseOver="window.status='''||icx_util.replace_onMouseOver_quotes(l_prompts(6))||''';return true"'));
436:
437: htp.tableRowClose;
438:
439: end loop; -- Display data
440:
441: htp.tableClose;
Line 441: htp.tableClose;
438:
439: end loop; -- Display data
440:
441: htp.tableClose;
442:
443:
444: -- print button set if appropriate
445: if (l_total_rows > l_query_size) and not
Line 464: htp.p('
'||fnd_message.get||'
');
461: if j = 0 then
462: fnd_message.set_name('ICX','ICX_TMP_NO_RELATION');
463: fnd_message.set_token('TEMPLATE',p_template);
464: htp.p(''||fnd_message.get||'
');
465: end if;
466:
467:
468: else -- p_template is not valid
Line 473: htp.p('
'||FND_MESSAGE.Get||'
');
470: -- display message that category name is not valid
471: FND_MESSAGE.SET_NAME('ICX','ICX_INVALID_ENTRY');
472: FND_MESSAGE.SET_TOKEN('INVALID_TOKEN',p_template);
473: htp.p(''||FND_MESSAGE.Get||'
474: end if;');
475:
476: end if;
477:
Line 479: htp.formClose;
476: end if;
477:
478:
479: htp.formClose;
480: htp.bodyClose;
481: htp.htmlClose;
482:
483: end if; -- ValidateSession
Line 480: htp.bodyClose;
477:
478:
479: htp.formClose;
480: htp.bodyClose;
481: htp.htmlClose;
482:
483: end if; -- ValidateSession
484:
Line 481: htp.htmlClose;
478:
479: htp.formClose;
480: htp.bodyClose;
481: htp.htmlClose;
482:
483: end if; -- ValidateSession
484:
485: exception