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_DATE_CELL built-in<br />

Description<br />

Sets the value for the record group cell identified by the given row and column.<br />

Syntax<br />

SET_GROUP_DATE_CELL<br />

(groupcolumn_id GroupColumn,<br />

row_number NUMBER,<br />

cell_value DATE);<br />

SET_GROUP_DATE_CELL<br />

(groupcolumn_name VARCHAR2,<br />

row_number NUMBER,<br />

cell_value DATE);<br />

Built-in Type unrestricted procedure<br />

Enter Query Mode yes<br />

Parameters<br />

groupcolumn_id The unique ID that <strong>Form</strong> <strong>Builder</strong> assigns when it creates the column for the<br />

record group. 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 The name you gave to the column when you created it, preceded by the<br />

record group name and a dot, as in recordgroup_name.groupcolumn_name.<br />

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

row_number Specifies the row number that contains the cell whose value you intend to<br />

set. Specify as a whole NUMBER.<br />

cell_value Specifies the DATE value you intend to enter into a cell.<br />

SET_GROUP_DATE_CELL restrictions<br />

• You must create the specified row before setting the value of a cell in that row. <strong>Form</strong> <strong>Builder</strong> does<br />

not automatically create a new row when you indicate one in this built-in. Explicitly add the row<br />

with the ADD_GROUP_ROW built-in or populate the group with either POPULATE_GROUP or<br />

POPULATE_GROUP_WITH_QUERY.<br />

• Not valid for a static record group. A static record group is a record group that was created at<br />

design time and that has the Record Group Type property set to Static.<br />

SET_GROUP_DATE_CELL examples<br />

/*<br />

** Built-in: SET_GROUP_DATE_CELL<br />

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

** minimum order date associated with that row in<br />

** the record group. Uses the ’is_value_in_list’<br />

** function from the GET_GROUP_CHAR_CELL example.<br />

*/<br />

PROCEDURE Set_Max_Order_Date_Of( part_no VARCHAR2,<br />

377

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

Saved successfully!

Ooh no, something went wrong!