57:
58:
59: FUNCTION item_reqd(l_index in number) RETURN VARCHAR2 IS
60: BEGIN
61: if ak_query_pkg.g_items_table(l_index).required_flag = 'Y' then
62: return '';
63: else
64: return '';
65: end if;
68: FUNCTION item_halign(l_index in number) RETURN VARCHAR2 IS
69: BEGIN
70:
71: RETURN ' align=' ||
72: ak_query_pkg.g_items_table(l_index).horizontal_alignment;
73:
74: END item_halign;
75:
76: FUNCTION item_valign(l_index in number) RETURN VARCHAR2 IS
76: FUNCTION item_valign(l_index in number) RETURN VARCHAR2 IS
77: BEGIN
78:
79: RETURN ' valign=' ||
80: ak_query_pkg.g_items_table(l_index).vertical_alignment;
81:
82: END item_valign;
83:
84: FUNCTION item_name(l_index in number) RETURN VARCHAR2 IS
83:
84: FUNCTION item_name(l_index in number) RETURN VARCHAR2 IS
85: BEGIN
86:
87: RETURN ak_query_pkg.g_items_table(l_index).attribute_label_long;
88:
89: END item_name;
90:
91: FUNCTION item_code(l_index in number) RETURN VARCHAR2 IS
90:
91: FUNCTION item_code(l_index in number) RETURN VARCHAR2 IS
92: BEGIN
93:
94: RETURN ak_query_pkg.g_items_table(l_index).attribute_code;
95:
96: END item_code;
97:
98: FUNCTION item_style(l_index in number) RETURN VARCHAR2 IS
97:
98: FUNCTION item_style(l_index in number) RETURN VARCHAR2 IS
99: BEGIN
100:
101: RETURN ak_query_pkg.g_items_table(l_index).item_style;
102:
103: END item_style;
104:
105: FUNCTION item_displayed(l_index in number) RETURN BOOLEAN IS
104:
105: FUNCTION item_displayed(l_index in number) RETURN BOOLEAN IS
106: BEGIN
107:
108: RETURN (ak_query_pkg.g_items_table(l_index).node_display_flag = 'Y');
109:
110: END item_displayed;
111:
112: FUNCTION item_updateable(l_index in number) RETURN BOOLEAN IS
111:
112: FUNCTION item_updateable(l_index in number) RETURN BOOLEAN IS
113: BEGIN
114:
115: RETURN (ak_query_pkg.g_items_table(l_index).update_flag = 'Y');
116:
117: END item_updateable;
118:
119: FUNCTION item_size (l_index in number) RETURN VARCHAR2 IS
118:
119: FUNCTION item_size (l_index in number) RETURN VARCHAR2 IS
120: BEGIN
121:
122: RETURN ' size=' || to_char(ak_query_pkg.g_items_table(l_index).display_value_length);
123:
124: END item_size;
125:
126: FUNCTION item_lov(l_index in number) RETURN VARCHAR2 IS
125:
126: FUNCTION item_lov(l_index in number) RETURN VARCHAR2 IS
127: BEGIN
128:
129: IF (ak_query_pkg.g_items_table(l_index).lov_region_code IS NOT NULL AND
130: ak_query_pkg.g_items_table(l_index).lov_attribute_code IS NOT NULL)
131: THEN
132: return '
126: FUNCTION item_lov(l_index in number) RETURN VARCHAR2 IS
127: BEGIN
128:
129: IF (ak_query_pkg.g_items_table(l_index).lov_region_code IS NOT NULL AND
130: ak_query_pkg.g_items_table(l_index).lov_attribute_code IS NOT NULL)
131: THEN
132: return '
134: '>
141:
142: FUNCTION item_lov_multi(l_index in number, l_row in number) RETURN VARCHAR2 IS
143: BEGIN
144:
145: IF (ak_query_pkg.g_items_table(l_index).lov_region_code IS NOT NULL AND
146: ak_query_pkg.g_items_table(l_index).lov_attribute_code IS NOT NULL)
147: THEN
148: return '
149: item_code(l_index) || '''' || ',' || '''' || to_char(l_row-1) ||
150: '''' || ',' || '''' || l_script_name ||
189: l_execute INTEGER;
190: l_result VARCHAR2(2000);
191: BEGIN
192:
193: IF ak_query_pkg.g_results_table.count > 0 THEN
194:
195: sql_statement := 'begin ' ||
196: ':l_result := ak_query_pkg.g_results_table(:p_index).value' ||
197: to_char(p_col) || '; ' ||
192:
193: IF ak_query_pkg.g_results_table.count > 0 THEN
194:
195: sql_statement := 'begin ' ||
196: ':l_result := ak_query_pkg.g_results_table(:p_index).value' ||
197: to_char(p_col) || '; ' ||
198: ' end;';
199:
200: l_cursor := dbms_sql.open_cursor;
279: if p_where_clause is not null then
280: l_where_clause := p_where_clause;
281: end if;
282:
283: ak_query_pkg.exec_query(p_parent_region_appl_id => 178,
284: p_parent_region_code => 'POS_SUPPLIER_ITEM_CAPACITY_R',
285: p_where_clause => l_where_clause,
286: p_responsibility_id => l_responsibility_id,
287: p_user_id => l_user_id,
287: p_user_id => l_user_id,
288: p_return_parents => 'T',
289: p_return_children => 'F');
290:
291: l_attribute_index := ak_query_pkg.g_items_table.FIRST;
292:
293: htp.p('
'); 295: Line 328: l_attribute_index := ak_query_pkg.g_items_table.NEXT(l_attribute_index); | ');