I’m working with Oracle Forms Builder, and I’ve a block with several records. The code looks somewhat like this
first_record;
IF NAME_IN('SYSTEM.LAST_RECORD') != 'TRUE' THEN
LOOP
IF name_in('QOTLNDET_LINES.SERIAL_NUMBER') IS NOT NULL THEN
QOTLNDET_LINES_REMOVE.Delete_Row;
clear_record;
ELSE
next_record;
END IF;
EXIT WHEN NAME_IN('SYSTEM.LAST_RECORD') = 'TRUE';
END LOOP;
execute_query;
COMMIT;
go_block('QOTHDDET_MAIN');
END IF;
Right before the next_record, inside the ELSE segment, I need to remove the current record and re-insert it. The problem isn’t removing the record, it’s re-inserting it. Any ideas? Thanks in advance.
I agree with APC, instead of re-inserting the record which means deleting and then inserting it again, a simpler approach would be to just update the fields in the DB (or non-DB) Block. Something like-