71: begin
72: if p_date is not NULL then
73: if serverInitDate > p_date then
74: -- dbms_output.put_line('in validation server');
75: FND_MESSAGE.SET_NAME('JTF', 'JTF_GRID_SERVER_VALIDATION');
76: FND_MESSAGE.SET_TOKEN('GRID', gridName, FALSE);
77: -- FND_MSG_PUB.ADD;
78: raise_error;
79: end if;
72: if p_date is not NULL then
73: if serverInitDate > p_date then
74: -- dbms_output.put_line('in validation server');
75: FND_MESSAGE.SET_NAME('JTF', 'JTF_GRID_SERVER_VALIDATION');
76: FND_MESSAGE.SET_TOKEN('GRID', gridName, FALSE);
77: -- FND_MSG_PUB.ADD;
78: raise_error;
79: end if;
80: end if;
120: begin
121: if errorType = INVALID_GRID_ERROR
122: or tableIndex is null
123: or tableIndex = 0 then
124: fnd_message.set_name('JTF','JTF_GRID_DB_ERRORS');
125: fnd_message.set_token('SOURCE','JTF_GRIDDB');
126: fnd_message.set_token('MSG','Internal Error: jtf_grid.handleErrors() was called from jtf_griddb.'||method||' with the following information:'
127: ||lineFeed||lineFeed||nvl(message,'<'||nullValue||'>')
128: ||lineFeed||lineFeed||'The error is in the form or the JTF_GRID package.');
121: if errorType = INVALID_GRID_ERROR
122: or tableIndex is null
123: or tableIndex = 0 then
124: fnd_message.set_name('JTF','JTF_GRID_DB_ERRORS');
125: fnd_message.set_token('SOURCE','JTF_GRIDDB');
126: fnd_message.set_token('MSG','Internal Error: jtf_grid.handleErrors() was called from jtf_griddb.'||method||' with the following information:'
127: ||lineFeed||lineFeed||nvl(message,'<'||nullValue||'>')
128: ||lineFeed||lineFeed||'The error is in the form or the JTF_GRID package.');
129: fnd_message.set_token('SQLERROR',nvl(SQLError,'<'||nullValue||'>'));
122: or tableIndex is null
123: or tableIndex = 0 then
124: fnd_message.set_name('JTF','JTF_GRID_DB_ERRORS');
125: fnd_message.set_token('SOURCE','JTF_GRIDDB');
126: fnd_message.set_token('MSG','Internal Error: jtf_grid.handleErrors() was called from jtf_griddb.'||method||' with the following information:'
127: ||lineFeed||lineFeed||nvl(message,'<'||nullValue||'>')
128: ||lineFeed||lineFeed||'The error is in the form or the JTF_GRID package.');
129: fnd_message.set_token('SQLERROR',nvl(SQLError,'<'||nullValue||'>'));
130: elsif errorType = INTERNAL_ERROR then
125: fnd_message.set_token('SOURCE','JTF_GRIDDB');
126: fnd_message.set_token('MSG','Internal Error: jtf_grid.handleErrors() was called from jtf_griddb.'||method||' with the following information:'
127: ||lineFeed||lineFeed||nvl(message,'<'||nullValue||'>')
128: ||lineFeed||lineFeed||'The error is in the form or the JTF_GRID package.');
129: fnd_message.set_token('SQLERROR',nvl(SQLError,'<'||nullValue||'>'));
130: elsif errorType = INTERNAL_ERROR then
131: fnd_message.set_name('JTF','JTF_GRID_DB_ERRORS');
132: fnd_message.set_token('SOURCE','JTF_GRIDDB');
133: fnd_message.set_token('MSG','An unexpected error occurred in jtf_griddb.'||method
127: ||lineFeed||lineFeed||nvl(message,'<'||nullValue||'>')
128: ||lineFeed||lineFeed||'The error is in the form or the JTF_GRID package.');
129: fnd_message.set_token('SQLERROR',nvl(SQLError,'<'||nullValue||'>'));
130: elsif errorType = INTERNAL_ERROR then
131: fnd_message.set_name('JTF','JTF_GRID_DB_ERRORS');
132: fnd_message.set_token('SOURCE','JTF_GRIDDB');
133: fnd_message.set_token('MSG','An unexpected error occurred in jtf_griddb.'||method
134: ||lineFeed||lineFeed||'grid: <'||tableDefs(tableIndex).gridName|| '>'
135: ||lineFeed||'datasource: <'||tableDefs(tableIndex).grid_datasource_name||'>'
128: ||lineFeed||lineFeed||'The error is in the form or the JTF_GRID package.');
129: fnd_message.set_token('SQLERROR',nvl(SQLError,'<'||nullValue||'>'));
130: elsif errorType = INTERNAL_ERROR then
131: fnd_message.set_name('JTF','JTF_GRID_DB_ERRORS');
132: fnd_message.set_token('SOURCE','JTF_GRIDDB');
133: fnd_message.set_token('MSG','An unexpected error occurred in jtf_griddb.'||method
134: ||lineFeed||lineFeed||'grid: <'||tableDefs(tableIndex).gridName|| '>'
135: ||lineFeed||'datasource: <'||tableDefs(tableIndex).grid_datasource_name||'>'
136: ||lineFeed||lineFeed||'The following information is available:'
129: fnd_message.set_token('SQLERROR',nvl(SQLError,'<'||nullValue||'>'));
130: elsif errorType = INTERNAL_ERROR then
131: fnd_message.set_name('JTF','JTF_GRID_DB_ERRORS');
132: fnd_message.set_token('SOURCE','JTF_GRIDDB');
133: fnd_message.set_token('MSG','An unexpected error occurred in jtf_griddb.'||method
134: ||lineFeed||lineFeed||'grid: <'||tableDefs(tableIndex).gridName|| '>'
135: ||lineFeed||'datasource: <'||tableDefs(tableIndex).grid_datasource_name||'>'
136: ||lineFeed||lineFeed||'The following information is available:'
137: ||lineFeed||lineFeed||nvl(message,'<'||nullValue||'>')
135: ||lineFeed||'datasource: <'||tableDefs(tableIndex).grid_datasource_name||'>'
136: ||lineFeed||lineFeed||'The following information is available:'
137: ||lineFeed||lineFeed||nvl(message,'<'||nullValue||'>')
138: ||lineFeed||lineFeed||'The error is in the form or the JTF_GRID package.');
139: fnd_message.set_token('SQLERROR',nvl(SQLError,'<'||nullValue||'>'));
140: elsif errorType = INVALID_PROPERTY_ERROR then
141: fnd_message.set_name('JTF','JTF_GRID_DB_ERRORS');
142: fnd_message.set_token('SOURCE','JTF_GRIDDB');
143: fnd_message.set_token('MSG','Application Error: An invalid propertyType was passed to jtf_griddb.'||method
137: ||lineFeed||lineFeed||nvl(message,'<'||nullValue||'>')
138: ||lineFeed||lineFeed||'The error is in the form or the JTF_GRID package.');
139: fnd_message.set_token('SQLERROR',nvl(SQLError,'<'||nullValue||'>'));
140: elsif errorType = INVALID_PROPERTY_ERROR then
141: fnd_message.set_name('JTF','JTF_GRID_DB_ERRORS');
142: fnd_message.set_token('SOURCE','JTF_GRIDDB');
143: fnd_message.set_token('MSG','Application Error: An invalid propertyType was passed to jtf_griddb.'||method
144: ||lineFeed||lineFeed||'grid: <'||tableDefs(tableIndex).gridName|| '>'
145: ||lineFeed||'datasource: <'||tableDefs(tableIndex).grid_datasource_name||'>'
138: ||lineFeed||lineFeed||'The error is in the form or the JTF_GRID package.');
139: fnd_message.set_token('SQLERROR',nvl(SQLError,'<'||nullValue||'>'));
140: elsif errorType = INVALID_PROPERTY_ERROR then
141: fnd_message.set_name('JTF','JTF_GRID_DB_ERRORS');
142: fnd_message.set_token('SOURCE','JTF_GRIDDB');
143: fnd_message.set_token('MSG','Application Error: An invalid propertyType was passed to jtf_griddb.'||method
144: ||lineFeed||lineFeed||'grid: <'||tableDefs(tableIndex).gridName|| '>'
145: ||lineFeed||'datasource: <'||tableDefs(tableIndex).grid_datasource_name||'>'
146: ||lineFeed||lineFeed||'The following information is available:'
139: fnd_message.set_token('SQLERROR',nvl(SQLError,'<'||nullValue||'>'));
140: elsif errorType = INVALID_PROPERTY_ERROR then
141: fnd_message.set_name('JTF','JTF_GRID_DB_ERRORS');
142: fnd_message.set_token('SOURCE','JTF_GRIDDB');
143: fnd_message.set_token('MSG','Application Error: An invalid propertyType was passed to jtf_griddb.'||method
144: ||lineFeed||lineFeed||'grid: <'||tableDefs(tableIndex).gridName|| '>'
145: ||lineFeed||'datasource: <'||tableDefs(tableIndex).grid_datasource_name||'>'
146: ||lineFeed||lineFeed||'The following information is available:'
147: ||lineFeed||lineFeed||nvl(message,'<'||nullValue||'>')
145: ||lineFeed||'datasource: <'||tableDefs(tableIndex).grid_datasource_name||'>'
146: ||lineFeed||lineFeed||'The following information is available:'
147: ||lineFeed||lineFeed||nvl(message,'<'||nullValue||'>')
148: ||lineFeed||lineFeed||' The error is in the form.');
149: fnd_message.set_token('SQLERROR',nvl(SQLError,'<'||nullValue||'>'));
150: elsif errorType = APPLICATION_ERROR then
151: fnd_message.set_name('JTF','JTF_GRID_DB_ERRORS');
152: fnd_message.set_token('SOURCE','JTF_GRIDDB');
153: fnd_message.set_token('MSG','Application Error: jtf_griddb.'||method||' reports that an Application Error has occurred for:'
147: ||lineFeed||lineFeed||nvl(message,'<'||nullValue||'>')
148: ||lineFeed||lineFeed||' The error is in the form.');
149: fnd_message.set_token('SQLERROR',nvl(SQLError,'<'||nullValue||'>'));
150: elsif errorType = APPLICATION_ERROR then
151: fnd_message.set_name('JTF','JTF_GRID_DB_ERRORS');
152: fnd_message.set_token('SOURCE','JTF_GRIDDB');
153: fnd_message.set_token('MSG','Application Error: jtf_griddb.'||method||' reports that an Application Error has occurred for:'
154: ||lineFeed||lineFeed||'grid: <'||tableDefs(tableIndex).gridName|| '>'
155: ||lineFeed||'datasource: <'||tableDefs(tableIndex).grid_datasource_name||'>'
148: ||lineFeed||lineFeed||' The error is in the form.');
149: fnd_message.set_token('SQLERROR',nvl(SQLError,'<'||nullValue||'>'));
150: elsif errorType = APPLICATION_ERROR then
151: fnd_message.set_name('JTF','JTF_GRID_DB_ERRORS');
152: fnd_message.set_token('SOURCE','JTF_GRIDDB');
153: fnd_message.set_token('MSG','Application Error: jtf_griddb.'||method||' reports that an Application Error has occurred for:'
154: ||lineFeed||lineFeed||'grid: <'||tableDefs(tableIndex).gridName|| '>'
155: ||lineFeed||'datasource: <'||tableDefs(tableIndex).grid_datasource_name||'>'
156: ||lineFeed||lineFeed||'The following information is available:'
149: fnd_message.set_token('SQLERROR',nvl(SQLError,'<'||nullValue||'>'));
150: elsif errorType = APPLICATION_ERROR then
151: fnd_message.set_name('JTF','JTF_GRID_DB_ERRORS');
152: fnd_message.set_token('SOURCE','JTF_GRIDDB');
153: fnd_message.set_token('MSG','Application Error: jtf_griddb.'||method||' reports that an Application Error has occurred for:'
154: ||lineFeed||lineFeed||'grid: <'||tableDefs(tableIndex).gridName|| '>'
155: ||lineFeed||'datasource: <'||tableDefs(tableIndex).grid_datasource_name||'>'
156: ||lineFeed||lineFeed||'The following information is available:'
157: ||lineFeed||lineFeed||nvl(message,'<'||nullValue||'>')
155: ||lineFeed||'datasource: <'||tableDefs(tableIndex).grid_datasource_name||'>'
156: ||lineFeed||lineFeed||'The following information is available:'
157: ||lineFeed||lineFeed||nvl(message,'<'||nullValue||'>')
158: ||lineFeed||lineFeed||'The error is either in the form or the metadata definition.');
159: fnd_message.set_token('SQLERROR',nvl(SQLError,'<'||nullValue||'>'));
160: elsif errorType = MAXLENGTH_EXCEEDED_ERROR then
161: fnd_message.set_name('JTF','JTF_GRID_EXCEED_MAXLENGTH');
162: fnd_message.set_token('MSG','Application Error: jtf_griddb.'||method||' reports: A record of data for:'
163: ||lineFeed||lineFeed||'grid: <'||tableDefs(tableIndex).gridName|| '>'
157: ||lineFeed||lineFeed||nvl(message,'<'||nullValue||'>')
158: ||lineFeed||lineFeed||'The error is either in the form or the metadata definition.');
159: fnd_message.set_token('SQLERROR',nvl(SQLError,'<'||nullValue||'>'));
160: elsif errorType = MAXLENGTH_EXCEEDED_ERROR then
161: fnd_message.set_name('JTF','JTF_GRID_EXCEED_MAXLENGTH');
162: fnd_message.set_token('MSG','Application Error: jtf_griddb.'||method||' reports: A record of data for:'
163: ||lineFeed||lineFeed||'grid: <'||tableDefs(tableIndex).gridName|| '>'
164: ||lineFeed||'datasource: <'||tableDefs(tableIndex).grid_dataSource_name||'>'
165: ||lineFeed||lineFeed||'exceeds the current maxlength ('||to_char(jtf_dbstring_utils.getMaxStringLength)||' bytes / record). Reduce the number of columns defined in the datasource (metadata definition) or display partial column values.');
158: ||lineFeed||lineFeed||'The error is either in the form or the metadata definition.');
159: fnd_message.set_token('SQLERROR',nvl(SQLError,'<'||nullValue||'>'));
160: elsif errorType = MAXLENGTH_EXCEEDED_ERROR then
161: fnd_message.set_name('JTF','JTF_GRID_EXCEED_MAXLENGTH');
162: fnd_message.set_token('MSG','Application Error: jtf_griddb.'||method||' reports: A record of data for:'
163: ||lineFeed||lineFeed||'grid: <'||tableDefs(tableIndex).gridName|| '>'
164: ||lineFeed||'datasource: <'||tableDefs(tableIndex).grid_dataSource_name||'>'
165: ||lineFeed||lineFeed||'exceeds the current maxlength ('||to_char(jtf_dbstring_utils.getMaxStringLength)||' bytes / record). Reduce the number of columns defined in the datasource (metadata definition) or display partial column values.');
166: elsif errorType = MISSING_SORT_COL_ERROR then
163: ||lineFeed||lineFeed||'grid: <'||tableDefs(tableIndex).gridName|| '>'
164: ||lineFeed||'datasource: <'||tableDefs(tableIndex).grid_dataSource_name||'>'
165: ||lineFeed||lineFeed||'exceeds the current maxlength ('||to_char(jtf_dbstring_utils.getMaxStringLength)||' bytes / record). Reduce the number of columns defined in the datasource (metadata definition) or display partial column values.');
166: elsif errorType = MISSING_SORT_COL_ERROR then
167: fnd_message.set_name('JTF','JTF_GRID_MISSING_SORT_COLUMN');
168: fnd_message.set_token('SOURCE','jtf_griddb.'||method);
169: fnd_message.set_token('DATASOURCE',tableDefs(tableIndex).grid_dataSource_name);
170: fnd_message.set_token('GRIDNAME',tableDefs(tableIndex).gridName);
171: elsif errorType = INVALID_COLUMNALIAS_ERROR then
164: ||lineFeed||'datasource: <'||tableDefs(tableIndex).grid_dataSource_name||'>'
165: ||lineFeed||lineFeed||'exceeds the current maxlength ('||to_char(jtf_dbstring_utils.getMaxStringLength)||' bytes / record). Reduce the number of columns defined in the datasource (metadata definition) or display partial column values.');
166: elsif errorType = MISSING_SORT_COL_ERROR then
167: fnd_message.set_name('JTF','JTF_GRID_MISSING_SORT_COLUMN');
168: fnd_message.set_token('SOURCE','jtf_griddb.'||method);
169: fnd_message.set_token('DATASOURCE',tableDefs(tableIndex).grid_dataSource_name);
170: fnd_message.set_token('GRIDNAME',tableDefs(tableIndex).gridName);
171: elsif errorType = INVALID_COLUMNALIAS_ERROR then
172: fnd_message.set_name('JTF','JTF_GRID_INVALID_COLUMNALIAS');
165: ||lineFeed||lineFeed||'exceeds the current maxlength ('||to_char(jtf_dbstring_utils.getMaxStringLength)||' bytes / record). Reduce the number of columns defined in the datasource (metadata definition) or display partial column values.');
166: elsif errorType = MISSING_SORT_COL_ERROR then
167: fnd_message.set_name('JTF','JTF_GRID_MISSING_SORT_COLUMN');
168: fnd_message.set_token('SOURCE','jtf_griddb.'||method);
169: fnd_message.set_token('DATASOURCE',tableDefs(tableIndex).grid_dataSource_name);
170: fnd_message.set_token('GRIDNAME',tableDefs(tableIndex).gridName);
171: elsif errorType = INVALID_COLUMNALIAS_ERROR then
172: fnd_message.set_name('JTF','JTF_GRID_INVALID_COLUMNALIAS');
173: fnd_message.set_token('SOURCE','jtf_griddb.'||method);
166: elsif errorType = MISSING_SORT_COL_ERROR then
167: fnd_message.set_name('JTF','JTF_GRID_MISSING_SORT_COLUMN');
168: fnd_message.set_token('SOURCE','jtf_griddb.'||method);
169: fnd_message.set_token('DATASOURCE',tableDefs(tableIndex).grid_dataSource_name);
170: fnd_message.set_token('GRIDNAME',tableDefs(tableIndex).gridName);
171: elsif errorType = INVALID_COLUMNALIAS_ERROR then
172: fnd_message.set_name('JTF','JTF_GRID_INVALID_COLUMNALIAS');
173: fnd_message.set_token('SOURCE','jtf_griddb.'||method);
174: fnd_message.set_token('DATASOURCE',tableDefs(tableIndex).grid_dataSource_name);
168: fnd_message.set_token('SOURCE','jtf_griddb.'||method);
169: fnd_message.set_token('DATASOURCE',tableDefs(tableIndex).grid_dataSource_name);
170: fnd_message.set_token('GRIDNAME',tableDefs(tableIndex).gridName);
171: elsif errorType = INVALID_COLUMNALIAS_ERROR then
172: fnd_message.set_name('JTF','JTF_GRID_INVALID_COLUMNALIAS');
173: fnd_message.set_token('SOURCE','jtf_griddb.'||method);
174: fnd_message.set_token('DATASOURCE',tableDefs(tableIndex).grid_dataSource_name);
175: fnd_message.set_token('COLUMN_ALIAS',nvl(message,'<'||nullValue||'>'));
176: fnd_message.set_token('GRIDNAME',tableDefs(tableIndex).gridName);
169: fnd_message.set_token('DATASOURCE',tableDefs(tableIndex).grid_dataSource_name);
170: fnd_message.set_token('GRIDNAME',tableDefs(tableIndex).gridName);
171: elsif errorType = INVALID_COLUMNALIAS_ERROR then
172: fnd_message.set_name('JTF','JTF_GRID_INVALID_COLUMNALIAS');
173: fnd_message.set_token('SOURCE','jtf_griddb.'||method);
174: fnd_message.set_token('DATASOURCE',tableDefs(tableIndex).grid_dataSource_name);
175: fnd_message.set_token('COLUMN_ALIAS',nvl(message,'<'||nullValue||'>'));
176: fnd_message.set_token('GRIDNAME',tableDefs(tableIndex).gridName);
177: elsif errorType = ILLEGAL_SORT_COLUMN_ERROR then
170: fnd_message.set_token('GRIDNAME',tableDefs(tableIndex).gridName);
171: elsif errorType = INVALID_COLUMNALIAS_ERROR then
172: fnd_message.set_name('JTF','JTF_GRID_INVALID_COLUMNALIAS');
173: fnd_message.set_token('SOURCE','jtf_griddb.'||method);
174: fnd_message.set_token('DATASOURCE',tableDefs(tableIndex).grid_dataSource_name);
175: fnd_message.set_token('COLUMN_ALIAS',nvl(message,'<'||nullValue||'>'));
176: fnd_message.set_token('GRIDNAME',tableDefs(tableIndex).gridName);
177: elsif errorType = ILLEGAL_SORT_COLUMN_ERROR then
178: fnd_message.set_name('JTF','JTF_GRID_ILLEGAL_SORT_COLUMN');
171: elsif errorType = INVALID_COLUMNALIAS_ERROR then
172: fnd_message.set_name('JTF','JTF_GRID_INVALID_COLUMNALIAS');
173: fnd_message.set_token('SOURCE','jtf_griddb.'||method);
174: fnd_message.set_token('DATASOURCE',tableDefs(tableIndex).grid_dataSource_name);
175: fnd_message.set_token('COLUMN_ALIAS',nvl(message,'<'||nullValue||'>'));
176: fnd_message.set_token('GRIDNAME',tableDefs(tableIndex).gridName);
177: elsif errorType = ILLEGAL_SORT_COLUMN_ERROR then
178: fnd_message.set_name('JTF','JTF_GRID_ILLEGAL_SORT_COLUMN');
179: fnd_message.set_token('SOURCE','jtf_griddb.'||method);
172: fnd_message.set_name('JTF','JTF_GRID_INVALID_COLUMNALIAS');
173: fnd_message.set_token('SOURCE','jtf_griddb.'||method);
174: fnd_message.set_token('DATASOURCE',tableDefs(tableIndex).grid_dataSource_name);
175: fnd_message.set_token('COLUMN_ALIAS',nvl(message,'<'||nullValue||'>'));
176: fnd_message.set_token('GRIDNAME',tableDefs(tableIndex).gridName);
177: elsif errorType = ILLEGAL_SORT_COLUMN_ERROR then
178: fnd_message.set_name('JTF','JTF_GRID_ILLEGAL_SORT_COLUMN');
179: fnd_message.set_token('SOURCE','jtf_griddb.'||method);
180: fnd_message.set_token('DATASOURCE',tableDefs(tableIndex).grid_dataSource_name);
174: fnd_message.set_token('DATASOURCE',tableDefs(tableIndex).grid_dataSource_name);
175: fnd_message.set_token('COLUMN_ALIAS',nvl(message,'<'||nullValue||'>'));
176: fnd_message.set_token('GRIDNAME',tableDefs(tableIndex).gridName);
177: elsif errorType = ILLEGAL_SORT_COLUMN_ERROR then
178: fnd_message.set_name('JTF','JTF_GRID_ILLEGAL_SORT_COLUMN');
179: fnd_message.set_token('SOURCE','jtf_griddb.'||method);
180: fnd_message.set_token('DATASOURCE',tableDefs(tableIndex).grid_dataSource_name);
181: fnd_message.set_token('COLUMN_ALIAS',nvl(message,'<'||nullValue||'>'));
182: fnd_message.set_token('GRIDNAME',tableDefs(tableIndex).gridName);
175: fnd_message.set_token('COLUMN_ALIAS',nvl(message,'<'||nullValue||'>'));
176: fnd_message.set_token('GRIDNAME',tableDefs(tableIndex).gridName);
177: elsif errorType = ILLEGAL_SORT_COLUMN_ERROR then
178: fnd_message.set_name('JTF','JTF_GRID_ILLEGAL_SORT_COLUMN');
179: fnd_message.set_token('SOURCE','jtf_griddb.'||method);
180: fnd_message.set_token('DATASOURCE',tableDefs(tableIndex).grid_dataSource_name);
181: fnd_message.set_token('COLUMN_ALIAS',nvl(message,'<'||nullValue||'>'));
182: fnd_message.set_token('GRIDNAME',tableDefs(tableIndex).gridName);
183: else
176: fnd_message.set_token('GRIDNAME',tableDefs(tableIndex).gridName);
177: elsif errorType = ILLEGAL_SORT_COLUMN_ERROR then
178: fnd_message.set_name('JTF','JTF_GRID_ILLEGAL_SORT_COLUMN');
179: fnd_message.set_token('SOURCE','jtf_griddb.'||method);
180: fnd_message.set_token('DATASOURCE',tableDefs(tableIndex).grid_dataSource_name);
181: fnd_message.set_token('COLUMN_ALIAS',nvl(message,'<'||nullValue||'>'));
182: fnd_message.set_token('GRIDNAME',tableDefs(tableIndex).gridName);
183: else
184: -- We should never get this message
177: elsif errorType = ILLEGAL_SORT_COLUMN_ERROR then
178: fnd_message.set_name('JTF','JTF_GRID_ILLEGAL_SORT_COLUMN');
179: fnd_message.set_token('SOURCE','jtf_griddb.'||method);
180: fnd_message.set_token('DATASOURCE',tableDefs(tableIndex).grid_dataSource_name);
181: fnd_message.set_token('COLUMN_ALIAS',nvl(message,'<'||nullValue||'>'));
182: fnd_message.set_token('GRIDNAME',tableDefs(tableIndex).gridName);
183: else
184: -- We should never get this message
185: fnd_message.set_name('JTF','JTF_GRID_DB_ERRORS');
178: fnd_message.set_name('JTF','JTF_GRID_ILLEGAL_SORT_COLUMN');
179: fnd_message.set_token('SOURCE','jtf_griddb.'||method);
180: fnd_message.set_token('DATASOURCE',tableDefs(tableIndex).grid_dataSource_name);
181: fnd_message.set_token('COLUMN_ALIAS',nvl(message,'<'||nullValue||'>'));
182: fnd_message.set_token('GRIDNAME',tableDefs(tableIndex).gridName);
183: else
184: -- We should never get this message
185: fnd_message.set_name('JTF','JTF_GRID_DB_ERRORS');
186: fnd_message.set_token('SOURCE','JTF_GRIDDB');
181: fnd_message.set_token('COLUMN_ALIAS',nvl(message,'<'||nullValue||'>'));
182: fnd_message.set_token('GRIDNAME',tableDefs(tableIndex).gridName);
183: else
184: -- We should never get this message
185: fnd_message.set_name('JTF','JTF_GRID_DB_ERRORS');
186: fnd_message.set_token('SOURCE','JTF_GRIDDB');
187: fnd_message.set_token('MSG','Internal Error: jtf_gridd.handleErrors() was called from jtf_griddb.'||method||' with an invalid errorType for:'
188: ||lineFeed||lineFeed||'grid: <'||tableDefs(tableIndex).gridName|| '>'
189: ||lineFeed||'datasource: <'||tableDefs(tableIndex).grid_dataSource_name||'>'
182: fnd_message.set_token('GRIDNAME',tableDefs(tableIndex).gridName);
183: else
184: -- We should never get this message
185: fnd_message.set_name('JTF','JTF_GRID_DB_ERRORS');
186: fnd_message.set_token('SOURCE','JTF_GRIDDB');
187: fnd_message.set_token('MSG','Internal Error: jtf_gridd.handleErrors() was called from jtf_griddb.'||method||' with an invalid errorType for:'
188: ||lineFeed||lineFeed||'grid: <'||tableDefs(tableIndex).gridName|| '>'
189: ||lineFeed||'datasource: <'||tableDefs(tableIndex).grid_dataSource_name||'>'
190: ||lineFeed||lineFeed||'The following information is available:'
183: else
184: -- We should never get this message
185: fnd_message.set_name('JTF','JTF_GRID_DB_ERRORS');
186: fnd_message.set_token('SOURCE','JTF_GRIDDB');
187: fnd_message.set_token('MSG','Internal Error: jtf_gridd.handleErrors() was called from jtf_griddb.'||method||' with an invalid errorType for:'
188: ||lineFeed||lineFeed||'grid: <'||tableDefs(tableIndex).gridName|| '>'
189: ||lineFeed||'datasource: <'||tableDefs(tableIndex).grid_dataSource_name||'>'
190: ||lineFeed||lineFeed||'The following information is available:'
191: ||lineFeed||lineFeed||nvl(message,'<'||nullValue||'>')
189: ||lineFeed||'datasource: <'||tableDefs(tableIndex).grid_dataSource_name||'>'
190: ||lineFeed||lineFeed||'The following information is available:'
191: ||lineFeed||lineFeed||nvl(message,'<'||nullValue||'>')
192: ||lineFeed||lineFeed||'The error is in the form or the JTF_GRID package.');
193: fnd_message.set_token('SQLERROR',nvl(SQLError,'<'||nullValue||'>'));
194: end if;
195: raise_error;
196: end handleErrors;
197:
215: ,SQLError in varchar2) is
216: tableIndex pls_integer;
217: begin
218: if errorType = INVALID_GRID_ERROR then
219: fnd_message.set_name('JTF','JTF_GRID_DB_ERRORS');
220: fnd_message.set_token('SOURCE','JTF_GRIDDB');
221: fnd_message.set_token('MSG','Application Error: jtf_griddb.'||method||' reports that'
222: ||lineFeed||lineFeed||'grid: <'||nvl(rtrim(gridName),nullValue)||'>'
223: ||lineFeed||lineFeed||'has not been initialized. A grid must be specified using BLOCK.ITEM_NAME in UPPERCASE. The error is in the form.');
216: tableIndex pls_integer;
217: begin
218: if errorType = INVALID_GRID_ERROR then
219: fnd_message.set_name('JTF','JTF_GRID_DB_ERRORS');
220: fnd_message.set_token('SOURCE','JTF_GRIDDB');
221: fnd_message.set_token('MSG','Application Error: jtf_griddb.'||method||' reports that'
222: ||lineFeed||lineFeed||'grid: <'||nvl(rtrim(gridName),nullValue)||'>'
223: ||lineFeed||lineFeed||'has not been initialized. A grid must be specified using BLOCK.ITEM_NAME in UPPERCASE. The error is in the form.');
224: fnd_message.set_token('SQLERROR',nvl(SQLError,'<'||nullValue||'>'));
217: begin
218: if errorType = INVALID_GRID_ERROR then
219: fnd_message.set_name('JTF','JTF_GRID_DB_ERRORS');
220: fnd_message.set_token('SOURCE','JTF_GRIDDB');
221: fnd_message.set_token('MSG','Application Error: jtf_griddb.'||method||' reports that'
222: ||lineFeed||lineFeed||'grid: <'||nvl(rtrim(gridName),nullValue)||'>'
223: ||lineFeed||lineFeed||'has not been initialized. A grid must be specified using BLOCK.ITEM_NAME in UPPERCASE. The error is in the form.');
224: fnd_message.set_token('SQLERROR',nvl(SQLError,'<'||nullValue||'>'));
225: raise_error;
220: fnd_message.set_token('SOURCE','JTF_GRIDDB');
221: fnd_message.set_token('MSG','Application Error: jtf_griddb.'||method||' reports that'
222: ||lineFeed||lineFeed||'grid: <'||nvl(rtrim(gridName),nullValue)||'>'
223: ||lineFeed||lineFeed||'has not been initialized. A grid must be specified using BLOCK.ITEM_NAME in UPPERCASE. The error is in the form.');
224: fnd_message.set_token('SQLERROR',nvl(SQLError,'<'||nullValue||'>'));
225: raise_error;
226: elsif errorType = INIT_ERROR then
227: fnd_message.set_name('JTF','JTF_GRID_DB_ERRORS');
228: fnd_message.set_token('SOURCE','JTF_GRIDDB');
223: ||lineFeed||lineFeed||'has not been initialized. A grid must be specified using BLOCK.ITEM_NAME in UPPERCASE. The error is in the form.');
224: fnd_message.set_token('SQLERROR',nvl(SQLError,'<'||nullValue||'>'));
225: raise_error;
226: elsif errorType = INIT_ERROR then
227: fnd_message.set_name('JTF','JTF_GRID_DB_ERRORS');
228: fnd_message.set_token('SOURCE','JTF_GRIDDB');
229: fnd_message.set_token('MSG','An unexpected error occurred in jtf_griddb.'||method||' for:'
230: ||lineFeed||lineFeed||'grid: <'||nvl(rtrim(gridName),nullValue)|| '>'
231: ||lineFeed||lineFeed||'The following information is available:'
224: fnd_message.set_token('SQLERROR',nvl(SQLError,'<'||nullValue||'>'));
225: raise_error;
226: elsif errorType = INIT_ERROR then
227: fnd_message.set_name('JTF','JTF_GRID_DB_ERRORS');
228: fnd_message.set_token('SOURCE','JTF_GRIDDB');
229: fnd_message.set_token('MSG','An unexpected error occurred in jtf_griddb.'||method||' for:'
230: ||lineFeed||lineFeed||'grid: <'||nvl(rtrim(gridName),nullValue)|| '>'
231: ||lineFeed||lineFeed||'The following information is available:'
232: ||lineFeed||lineFeed||nvl(message,'<'||nullValue||'>')
225: raise_error;
226: elsif errorType = INIT_ERROR then
227: fnd_message.set_name('JTF','JTF_GRID_DB_ERRORS');
228: fnd_message.set_token('SOURCE','JTF_GRIDDB');
229: fnd_message.set_token('MSG','An unexpected error occurred in jtf_griddb.'||method||' for:'
230: ||lineFeed||lineFeed||'grid: <'||nvl(rtrim(gridName),nullValue)|| '>'
231: ||lineFeed||lineFeed||'The following information is available:'
232: ||lineFeed||lineFeed||nvl(message,'<'||nullValue||'>')
233: ||lineFeed||lineFeed||'The error is either in the form or the metadata definition.');
230: ||lineFeed||lineFeed||'grid: <'||nvl(rtrim(gridName),nullValue)|| '>'
231: ||lineFeed||lineFeed||'The following information is available:'
232: ||lineFeed||lineFeed||nvl(message,'<'||nullValue||'>')
233: ||lineFeed||lineFeed||'The error is either in the form or the metadata definition.');
234: fnd_message.set_token('SQLERROR',nvl(SQLError,'<'||nullValue||'>'));
235: raise_error;
236: elsif errorType = INVALID_DATASOURCE_ERROR then
237: fnd_message.set_name('JTF','JTF_GRID_INVALID_DATASOURCE');
238: fnd_message.set_token('SOURCE','jtf_griddb.'||method);
233: ||lineFeed||lineFeed||'The error is either in the form or the metadata definition.');
234: fnd_message.set_token('SQLERROR',nvl(SQLError,'<'||nullValue||'>'));
235: raise_error;
236: elsif errorType = INVALID_DATASOURCE_ERROR then
237: fnd_message.set_name('JTF','JTF_GRID_INVALID_DATASOURCE');
238: fnd_message.set_token('SOURCE','jtf_griddb.'||method);
239: fnd_message.set_token('DATASOURCE',nvl(message,'<'||nullValue||'>'));
240: fnd_message.set_token('GRIDNAME',nvl(rtrim(gridName),nullValue||'>'));
241: raise_error;
234: fnd_message.set_token('SQLERROR',nvl(SQLError,'<'||nullValue||'>'));
235: raise_error;
236: elsif errorType = INVALID_DATASOURCE_ERROR then
237: fnd_message.set_name('JTF','JTF_GRID_INVALID_DATASOURCE');
238: fnd_message.set_token('SOURCE','jtf_griddb.'||method);
239: fnd_message.set_token('DATASOURCE',nvl(message,'<'||nullValue||'>'));
240: fnd_message.set_token('GRIDNAME',nvl(rtrim(gridName),nullValue||'>'));
241: raise_error;
242: else
235: raise_error;
236: elsif errorType = INVALID_DATASOURCE_ERROR then
237: fnd_message.set_name('JTF','JTF_GRID_INVALID_DATASOURCE');
238: fnd_message.set_token('SOURCE','jtf_griddb.'||method);
239: fnd_message.set_token('DATASOURCE',nvl(message,'<'||nullValue||'>'));
240: fnd_message.set_token('GRIDNAME',nvl(rtrim(gridName),nullValue||'>'));
241: raise_error;
242: else
243: tableIndex := findTableDefIndex(gridName);
236: elsif errorType = INVALID_DATASOURCE_ERROR then
237: fnd_message.set_name('JTF','JTF_GRID_INVALID_DATASOURCE');
238: fnd_message.set_token('SOURCE','jtf_griddb.'||method);
239: fnd_message.set_token('DATASOURCE',nvl(message,'<'||nullValue||'>'));
240: fnd_message.set_token('GRIDNAME',nvl(rtrim(gridName),nullValue||'>'));
241: raise_error;
242: else
243: tableIndex := findTableDefIndex(gridName);
244: if tableIndex is null