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.

GET_GROUP_NUMBER_CELL built-in<br />

Description<br />

Returns the NUMBER value for a record group cell identified by the given row and column. A cell is an<br />

intersection of a row and column.<br />

Syntax<br />

FUNCTION GET_GROUP_NUMBER_CELL<br />

(groupcolumn_id GroupColumn,<br />

row_number NUMBER);<br />

FUNCTION GET_GROUP_NUMBER_CELL<br />

(groupcolumn_name VARCHAR2,<br />

row_number NUMBER);<br />

Built-in Type unrestricted function<br />

Returns NUMBER<br />

Enter Query Mode yes<br />

Parameters<br />

groupcolumn_id Specifies the unique ID that <strong>Form</strong> <strong>Builder</strong> assigns when it creates the record<br />

group column. Use the FIND_COLUMN built-in to return the ID to an<br />

appropriately typed variable. The data type of the ID is GroupColumn.<br />

groupcolumn_name Specifies the fully qualified VARCHAR2 record group column name you<br />

gave the column when you defined it, preceded by the record group name<br />

and a dot, as in recordgroup_name.groupcolumn_name. If the column was<br />

defined as a result of a query, its name is the same as its corresponding<br />

database column.<br />

row_number Specifies the row from which to retrieve the value of the cell.<br />

GET_GROUP_NUMBER_CELL restrictions<br />

The row_number specified must be within the bounds implied by the number of rows in the record<br />

group. A non-existent row_number results in an index out of bounds error.<br />

GET_GROUP_NUMBER_CELL examples<br />

/*<br />

** Built-in: GET_GROUP_NUMBER_CELL<br />

** Example: Lookup a row in a record group, and return the<br />

** minimum order quantity associated with that row<br />

** in the record group. Uses the<br />

** ’is_value_in_list’ function from the<br />

** GET_GROUP_CHAR_CELL example.<br />

*/<br />

FUNCTION Min_Order_Qty_Of( part_no VARCHAR2 )<br />

RETURN NUMBER IS<br />

fnd_row NUMBER;<br />

177

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

Saved successfully!

Ooh no, something went wrong!