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

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

SET_GROUP_SELECTION built-in<br />

Description<br />

Marks the specified row in the given record group for subsequent programmatic row operations. Rows<br />

are numbered sequentially starting at 1. If you select rows 3, 8, and 12, for example, those rows are<br />

considered by <strong>Form</strong> <strong>Builder</strong> to be selections 1, 2, and 3. You can undo any row selections for the entire<br />

group by calling the RESET_GROUP_SELECTION built-in.<br />

Syntax<br />

SET_GROUP_SELECTION<br />

(recordgroup_id RecordGroup,<br />

row_number NUMBER);<br />

SET_GROUP_SELECTION<br />

(recordgroup_name VARCHAR2,<br />

row_number NUMBER);<br />

Built-in Type unrestricted procedure<br />

Enter Query Mode yes<br />

Parameters<br />

recordgroup_id Specifies the unique ID that <strong>Form</strong> <strong>Builder</strong> assigns to the record group when<br />

created. Use the FIND_GROUP built-in to return the ID to a variable.<br />

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

recordgroup_name Specifies the name of the record group that you gave to the group when<br />

creating it. The data type of the name is VARCHAR2.<br />

row_number Specifies the number of the record group row that you want to select. The<br />

value you specify is a NUMBER.<br />

SET_GROUP_SELECTION examples<br />

380<br />

/*<br />

** Built-in: SET_GROUP_SELECTION<br />

** Example: Set all of the even rows as selected in the<br />

** record group whose id is passed-in as a<br />

** parameter.<br />

*/<br />

PROCEDURE Select_Even_Rows ( rg_id RecordGroup ) IS<br />

BEGIN<br />

FOR j IN 1..Get_Group_Row_Count(rg_id) LOOP<br />

IF MOD(j,2)=0 THEN<br />

Set_Group_Selection( rg_id, j );<br />

END IF;<br />

END LOOP;<br />

END;

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

Saved successfully!

Ooh no, something went wrong!