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.

ADD_GROUP_ROW built-in<br />

Description<br />

Adds a row to the given record group.<br />

Syntax<br />

PROCEDURE ADD_GROUP_ROW<br />

(recordgroup_id RecordGroup,<br />

row_number NUMBER);<br />

PROCEDURE ADD_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 when it creates the group. The<br />

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

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

the name is VARCHAR2.<br />

row_number A whole number that specifies a row in the group. If you add a row to any<br />

but the last position in a group, all rows below that are logically<br />

renumbered. To add a row to the end of a group, use the<br />

END_OF_GROUP constant.<br />

Error Conditions:<br />

<strong>Form</strong> <strong>Builder</strong> returns a runtime error given either of the following conditions:<br />

• If you enter the name of a non-existent record group.<br />

• If you supply a row number that is out of range or is invalid (for example, an alphabetic character).<br />

ADD_GROUP_ROW restrictions<br />

• A group can consist of 0 or more rows.<br />

• You can add rows to a group only after it has been created and columns have been added.<br />

• If you specify a row number greater than the number of rows already in the group (or a negative<br />

number), the row is inserted at the end of the group.<br />

• You cannot add rows to a static group without a query.<br />

ADD_GROUP_ROW examples<br />

/*<br />

** Built-in: ADD_GROUP_ROW<br />

** Example: Add ten rows to a new record group and populate.<br />

*/<br />

9

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

Saved successfully!

Ooh no, something went wrong!