Creating a Button
To create a button:
- In the Object Navigator, click the plus icon
beside the desired block node.
Oracle Forms expands the block node and displays its subnodes.
- Click the Items node.
- Click Create in the toolbar.
A new item with a default name is inserted under the Items
node.
- Double-click the object icon beside the new item to display the Property
Palette.
- Under the General node, set the Item Type property
to Push Button.
- Under the Database node, set the Database Item
property to No.
Note: When you create an item in a data block, Oracle Forms
assumes the item is a data item and sets its Database Item property to Yes.
Data Items are automatically included in an SELECT, UPDATE, and INSERT statements
issued to the database. If the item you are creating is an interface item
in a data block, you must explicitly set its Database Item property to No.
- Under the Physical node, set the Canvas property
to the name of the desired canvas
Note: To display an item at runtime, you must assign
it to a canvas.
Related topics
About buttons
Adding a button label
Defining an iconic button
Defining a default button
Manipulating buttons at runtime