11.01.2013 Views

Oracle Forms Developer – Form Builder Reference, Volume 1

Oracle Forms Developer – Form Builder Reference, Volume 1

Oracle Forms Developer – Form Builder Reference, Volume 1

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

DELETE_GROUP_ROW built-in<br />

Description<br />

Deletes the indicated row or all rows of the given record group. <strong>Form</strong> <strong>Builder</strong> automatically decrements<br />

the row numbers of all rows that follow a deleted row. When rows are deleted, the appropriate memory<br />

is freed and available to <strong>Form</strong> <strong>Builder</strong>.<br />

If you choose to delete all rows of the group by supplying the ALL_ROWS constant, <strong>Form</strong> <strong>Builder</strong><br />

deletes the rows, but the group still exists until you perform the DELETE_GROUP subprogram.<br />

When a single row is deleted, subsequent rows are renumbered so that row numbers remain contiguous.<br />

Syntax<br />

PROCEDURE DELETE_GROUP_ROW<br />

(recordgroup_id RecordGroup,<br />

row_number NUMBER);<br />

PROCEDURE DELETE_GROUP_ROW<br />

(recordgroup_name VARCHAR2,<br />

row_number NUMBER);<br />

Built-in Type unrestricted procedure<br />

Enter Query Mode yes<br />

Parameters<br />

recordgroup_id The unique ID that <strong>Form</strong> <strong>Builder</strong> assigns the group when it creates it. The<br />

data type of the ID is RecordGroup.<br />

recordgroup_name The name you gave to the record group when you created it. The data type<br />

of the name is VARCHAR2.<br />

row_number Specifies the row to be deleted from the record group. Rows are<br />

automatically numbered from 1 to n. Row number parameter data type is<br />

NUMBER.<br />

DELETE_GROUP_ROW restrictions<br />

ALL_ROWS Specifies that <strong>Form</strong> <strong>Builder</strong> is to delete all rows without<br />

deleting the record group. ALL_ROWS is a constant.<br />

This built-in cannot be used to delete rows from a static record group.<br />

DELETE_GROUP_ROW examples<br />

/*<br />

** Built-in: DELETE_GROUP_ROW<br />

** Example: Delete certain number of records from the tail<br />

** of the specified record group.<br />

*/<br />

PROCEDURE Delete_Tail_Records( recs_to_del NUMBER,<br />

rg_name VARCHAR2 ) IS<br />

rg_id RecordGroup;<br />

77

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!