Codessentials

  • Increase font size
  • Default font size
  • Decrease font size
Home Coding tips Oracle Forms: loop trough all records of a block

Forms: loop trough all records of a block

Here is how you can loop through all records of a forms block:

declare
   currRec integer;
begin
   -- go to the desired block
navigate_to_block('BLOCK_NAME');
   -- save the current record position
currRec := :system.cursor_record;
   first_record();
   loop
      IF :SYSTEM.LAST_RECORD = 'TRUE' THEN
        exit;
      ELSE
        next_record;
      END IF;
   end loop;
   -- go back to the original record position
go_record (currRec);
end;

 

Bookmark

AddThis Social Bookmark Button

Related Articles


Newsflash

Jack Wallen is the host of the TechRepublic open source blog as well as a regular writer in the "10 Things..." and the "How Do I..." blogs.

In this article Jack Wallen reviews Yadis! Backup.

Some highlights:

There are tons of backup solutions available, ranging from simple, single-user applications to much larger, complex solutions. Most all of these solutions will do what the creators claim — back up your data. You always hope that data is backed up safely and that it will be there in that unforeseen moment when you need it. There is one backup solution amid the myriad of others that offers a unique little twist on the old tried-and-true process. Yadis! Backup.
...

Yadis! Backup is one of the more foolproof backup solutions I’ve come across. If you are looking for a simple backup solution that does not require any scheduling, this might be what you are seeking. It’s not exactly Enterprise-ready, but for smaller backups it’s a pretty sweet solution.

Read the full article here.