record grouping populating problem [message #256087] |
Fri, 03 August 2007 00:20  |
sispk6
Messages: 164 Registered: November 2006 Location: pakistan
|
Senior Member |
|
|
=====
i get the error cannot add rows to group
========please some one help
declare
G_ID RECORDGROUP := FIND_GROUP('RG');
TOT_ROWS NUMBER;
NEW_ROW NUMBER;
begin
TOT_ROWS := GET_GROUP_ROW_COUNT(G_ID);
message(' total rows '|| tot_rows);
add_group_row(G_ID , 1);
-- message ( ' rec group ---'||G_ID);
NEW_ROW := TOT_ROWS + 1;
message(' new row=='||new_row);
SET_GROUP_NUMBER_CELL('RG.EMPNO',NEW_ROW , 1);
SET_GROUP_CHAR_CELL('RG.EMPNO',NEW_ROW , 'IMTIAZ');
MESSAGE('RECORD SAVE');
end;
==================
|
|
|
Re: record grouping populating problem [message #256581 is a reply to message #256087] |
Mon, 06 August 2007 01:24  |
 |
djmartin
Messages: 10181 Registered: March 2005 Location: Surges Bay TAS Australia
|
Senior Member Account Moderator |
|
|
Please use 'code' tags to make your post readable.
Don't you need to have a 'create' in there somewhere?
Please search this forum for 'add_group_row' to see what other people have done.
David
|
|
|