Académique Documents
Professionnel Documents
Culture Documents
Q: How do you pass the parameters from one form to another form?
PROCEDURE
CALL_FORM(form_name,display,switch_menu,query_mode,data_mode,paramlist_name);
Text item.
Chart item.
Check box.
Display item.
Image item.
List item.
Radio Group.
User Area item.
Bean Area
Hirerical tree
Push button
Activex control
Ole container
Sound
Vbx control
What are the types of triggers and how the sequence of firing in text item
Key Triggers : Key Triggers are fired as a result of Key action.e.g : Key-next-field, Key-up,Key-
Down
Mouse Triggers : Mouse Triggers are fired as a result of the mouse navigation.e.g. When-mouse-
button-presed,when-mouse-doubleclicked,etc
Navigational Triggers : These Triggers are fired as a result of Navigation. E.g : Post-Text-
item,Pre-text-item. We also have event triggers like when -new-form-instance and when-new-
block-instance.
20. which are the triggers will fire in the following situation
2. Text-item2
1. Pre-text-item
2. When-validate-item
3. When-new-item-instance
4. Key-next-item
5. Post-text-item
6. Post-change
3. Text-item3
1. Pre-text-item
2. When-validate-item
3. When-new-item-instance
4. Key-next-item
5. Post-text-item
6. Post-change
If I press tab or enter key at text-item1 what are the triggers will fire and order of firing during the
entire navigation.
Go_item (text_item2);
: Text_item2: = Nagendra;
Go_item (text_item3);
Then what are the triggers will fire and order of firing
A . Any control on your form that allows the user to view and edit text, numbers, or dates
B . Any control on your form that allows the user to view and edit text
C . Any control on your form that allows the user to view and edit text or numbers
E*. Any control on your form that allows the user to view and edit text, numbers, dates, or long
data
Explanation: E
Any control on your form that allows the user to view and edit text, numbers, dates, or long data
Your Employee form includes a SALARY text item. You want to ensure that standard users
cannot input or change a salary value, but you want the value to look exactly like a regular
field. What is the best way to do this?
A . Set the item's Enabled property to No, and its Update Allowed property to No.
B*. Set the item's Insert Allowed property to No, and its Update Allowed property to No.
Changing an item's Enabled property to No causes its contents to display with light gray
characters instead of black. Therefore, this is the only valid choice.
Commit processing
The processing flow when a Commit occurs always seems to cause confusion. The basics of the
Commit processing are as follows.
Each item that has been changed is validated (When-Validate-Item).
Each record with a changed item is validated (When-Validate-Record).
Pre-Commit trigger occurs after validation and before any data is written to the
database.
Any records that are marked as INSERT are inserted onto the database (Pre-Insert /
Post Insert).
Any records that are marked as CHANGED are updated onto the database (Pre-Update /
Post-Update).
Any records that are marked as DELETED are deleted from the database (Pre-Delete /
Post-Delete).
Post-Forms-Commit trigger occurs after Forms has written the data to the database but
before the database Commit.
Post-Database-Commit trigger occurs after the database Commit.
Display items are similar to text items but store only fetched or assigned values. Operators
cannot navigate to a display item or edit the value it contains.
Display items are generally used as a boilerplate or as conditional text.
The DEPARTMENT table in your database has been augmented with a BUDGET column.
You want to add BUDGET as an item on your Department form, but the item should be a
read-only text box so users cannot change it. The best way to do this is:
A . In the Layout Editor, create a display item and set its Insert Allowed property to No, its
Update Allowed property to No, and its Database Item property to No.
B . In the Data Block Wizard, move the BUDGET column into the Available Items area. Change
the new data block item's Insert Allowed and Update Allowed properties to No. Proceed to the
Layout Editor and add BUDGET as a text item.
C . In the Data Block Wizard, move the BUDGET column into the Available Items are C:
Proceed to the Layout Editor and add BUDGET as a text item, and change the item's Insert
Allowed and Update Allowed properties to No.
D*. In the Layout Editor, create a display item and set its Column Name property to BUDGET.
Explanation:
In the Layout Editor, create a display item and set its Column Name property to BUDGET.
Setting an item's Database Item property to No keeps it from retrieving database data, eliminates
two answers, but it creates a normal-looking text box that actually allows the user to type in data;
it isn't until the user tries to save their work that the data block's Insert Allowed and Update
Allowed properties halt the action. This is not optimal design. The third incorrect answer creates
an application in which the field's data cannot be changed, but the user can still place focus on the
field, which is also not optimal.
You need to add a display item to a form. The item will display a calculated total
summarizing data from several different tables. You do not want to create any new objects
in the database. What is the best course of action to take?
A . Using the Data Block Wizard, create a block with a stored procedure as its data source type.
B . Using the Data Block Wizard, create a block with a view as its data source type.
C . After creating a data block manually, set its Query Data Source Columns property to the
desired columns and write the appropriate select command in its Query Data Source Arguments
property.
D*. After creating a data block manually, set its Query Data Source Type to FROM clause query,
and write the appropriate select command in its Query Data Source Name property.
Explanation:
After creating a data block manually, set its Query Data Source Type to FROM clause query and
write the appropriate select command in its Query Data Source Name property. You cannot use
a stored procedure or a view because both of these require adding a new item to the database. The
correct approach is using a FROM clause query.
Explanation:
View existing database values
A display item shows data but does not allow the user to change it. In essence, it is a read-only
field.
Check Box - A Check Box is a two state control that indicates whether a certain condition or
value is on or off, true or false. The display state of a check box is always either "checked" or
"unchecked".
A canvas-view is the background object on which you layout the interface items (text-items,
check boxes, radio groups, and so on.) and boilerplate objects that operators see and interact with
as they run your form. At run-time, operators can see only those items that have been assigned to
a specific canvas. Each canvas, in term, must be displayed in a specific window.
An alert is a modal window that displays a message notifies the operator of some application
condition. Three style Stop, Caution, note
QUESTIONS: What is the built-in function used for finding the alert?
ANSWER: Find_alert
Example
Set_Alert_Property(alert_id,ALERT_MESSAGE_TEXT, The product you selected is not in stock
);
What is a Poplist?
The poplist style list item appears initially as a single field(similar to a text item field. When The
operator selects the list icon, a list of available choices appears.
LOV- An LOV is a scrollable popup window that provides the operator with either a single or
multi-column selection list.
QUESTIONS: What is the built-in used to get and set lov properties during run-time?
ANSWER: Get_lov_property, Set_lov_property, Record Group
QUESTIONS: Can you attach an lov to a field at run-time? if yes, give the build-in name.?
ANSWER: yes, this is done using dynamic record group. the property name is
set_lov_property(lov_name,GROUP_NAME,recordgroup_name)
here GROUP_NAME is the property
What is the LOV for validation Property of an item? What is the use of it?
When LOV for validation is set to true, Oracle Forms compares the current value of the text item
to the values in the first column displayed in the LOV whenever the validation event occurs.
If the value in the text item matches one of the values in the first column of the LOV, Validation
succeeds ,The LOV is not displayed, the processing continues normally.
If the value in the text item doesnt match one of the values in the first column of the
LOV,Oracle Forms displays the LOV and uses the text item value as the search criteria to
automatically reduce the list.
What are the built-ins that are used to attach an LOV programatically to an item?
Set_item_property, Get_item_property, (by setting the LOV_NAMEproperty)
What are the built-ins that are used for setting the LOV properties at runtime?
get_lov_property, set_lov_property
You have added an LOV to a form and now want to add code to determine whether the user
has made a choice from the LOV or dismissed it. What built-in will help you?
A . WHEN-LIST-CHANGED
B . GET_LOV_PROPERTY
C . WHEN-LIST-ACTIVATED
D . POST-TEXT-ITEM
E*. SHOW_LOV
Explanation:
SHOW_LOV
The SHOW_LOV built-in has the ability to display an object (an LOV), and also return a
Boolean value to the calling program indicating whether or not the user selected a value from the
LOV. If you selected one of the WHEN- or POST- choices, be sure to reread the chapter before
the exam...those are triggers, not built-ins.
You created an LOV for stock items and included a Quantity Currently In Stock column in
the LOV. How can you ensure that the user sees accurate "in stock" numbers each time the
LOV is invoked?
B . Programmatically requery all tables in the application when the user opens that canvas.
Explanation:
Enable the LOV's Automatic Refresh property
The Automatic Refresh property determines whether the LOV's underlying query executes every
time the LOV is invoked, or only the first time it is invoked. Setting the property to Yes
configures it to requery every time.
How many characters would you need to type in an LOV to select the WHEN-KEY-UP item
from a list containing WHEN-BUTTON-PRESSED, WHEN-KEY-DOWN, and WHEN-
KEY-UP, assuming they are the only items in the list and the LOV's properties are set to
automatically display the LOV and automatically enter the value once a row is selected?
A . 3 characters
B . 1 character
C*. 2 characters
D . 10 characters
Explanation:
2 characters
Because all three choices begin with "WHEN-," the LOV only cares about the first differentiating
character, which is the "K" that identifies the KEY group. The next character needed is the "D" to
select DOWN, after which the row's key value will automatically be entered into the text item.
You have created an LOV for a text item on your canvas, and you would like the LOV to
appear automatically each time the user enters that text item. What is required to make that
happen?
A . Set the Automatic Select property in the LOV Property Palette to Yes.
B*. Set the Automatic Display property in the LOV Property Palette to Yes.
C . Set the Automatic Refresh property in the text item Property Palette to Yes.
D . Set the Automatic Refresh property in the LOV Property Palette to Yes.
E . Set the Automatic Display property in the text item Property Palette to Yes.
Explanation:
Set the Automatic Display property in the LOV Property Palette to Yes.
No text item property would effect this change. Of the LOV properties listed, Automatic Refresh
determines whether the LOV's contents are requeried each time it is opened, and Automatic
Select specifies whether the selected LOV row is placed into the specified text item without the
user having to double-click on the row or click the OK button.
Which built-in causes an LOV to display for a text item that has one defined?
A . WHEN-NEW-ITEM-INSTANCE
B . WHEN-NEW-LOV
C . GO_ITEM
D*. SHOW_LOV
Explanation:
SHOW_LOV
How does the Forms Runtime program respond when a user enters text into a text item that
has an LOV attached and the VALIDATE_FROM_LIST property set to Yes?
A . The Forms Runtime program ignores the LOV if the user types a value directly into the field.
B . The Forms Runtime program populates the item automatically with the first value in the LOV
that matches the user's entry.
C*. The Forms Runtime program opens the LOV and shows only items that match what the user
has typed so far.
Explanation:
The Forms Runtime program opens the LOV and shows only items that match what the user has
typed so far.
See the section "Introduction to Form Builder Validation Properties" for a refresher on this topic.
Explanation:
Returns a Boolean value
You are working with an existing radio group in the Layout Editor and try to add a radio button to
the group. The Layout Editor responds by:
A . Displaying a warning message, and then returning you to the Layout Editor
B . Offering to create a check box instead, since a radio button group already exists
C*. Presenting a dialog box giving you the chance to select a radio group for the new radio
button, or create a new radio group for it
Explanation:
Presenting a dialog box giving you the chance to select a radio group for the new radio button, or
create a new radio group for it
The Layout Editor is willing to add buttons to an existing radio group. It just needs to know
which group will get the new button, or if a completely new group is what you desire.
What are the different types of images?
BoilerPlate Images
Image Items
---------------------
A window, by itself , can be thought of as an empty frame. The frame provides a way to interact
with the window, including the ability to scroll, move, and resize the window. The content of the
window i.e. what is displayed inside the frame is determined by the canvas View or canvas-views
displayed in the window
at run-time.
QUESTIONS: What built-in is used for changing the properties of the window dynamically?
ANSWER: Set_window_property, Canvas-View
QUESTIONS: List the built-in routine for controlling window during run-time?
ANSWER: Find_window,
get_window_property,
hide_window,
move_window,
resize_window,
set_window_property,
show_View
What is FORMS_MDI_WINDOW?
Forms run inside the MDI application window. This property is useful for calling a form from
another one.
Can you have more than one content canvas view attached
with a window?
Yes. Each window you create must have at least one content canvas-view assigned to it. You can
also create a window that has multiple content canvas-views. At runtime, only one of the content
canvas-views assigned to a window is displayed at a time.
Visual Attributes are the font, color and pattern characteristics of objects that operators see and
intract with in our application.
Or
Visual attributes are the font, color, and pattern properties that you set for form and menu objects
that appear in your application's interface.
If you have property class attached to an item and you have same trigger written for the item .
Which will fire first?
Item level trigger fires , If item level trigger fires, property level trigger won't fire. Triggers at the
lowest level are always given the first preference. The item level trigger fires first and then the
block and then the Form level trigger.
Add_parameter
Create_Parameter_list
Delete_parameter
Destroy_parameter_list
Get_parameter_attr
Get_parameter_list
set_parameter_attr
A record group can have an unlimited number of columns of type CHAR, LONG, NUMBER, or
DATE provided that the total number of columns does not exceed 64K.Record group column
names cannot exceed 30 characters. Programmatically, record groups can be used whenever the
functionality offered by a two-dimensional array of multiple data types is desirable.
A record group is an oracle forms data structure that has a column/row framework similar to a
database table.
There are three types of record groups: query record groups, non-query record groups, and static
record groups.
What are the built-ins used for creating and deleting groups?
CREATE_GROUP(function)
CREATE_GROUP_FROM_QUERY(function)
DELETE_GROUP(Procedure)
Use the ADD_GROUP_COLUMN function to add a column to a record group that was created at
design time (1) True (2) False.
False
What built-in enables you to replace the query associated with a record group?
A*. POPULATE_GROUP_WITH_QUERY
B . CREATE_GROUP
C . ADD_GROUP_ROW
D . SET_GROUP_QUERY
Explanation:
POPULATE_GROUP_WITH_QUERY
What built-in enables you to change a nonquery record group into a query record group?
A . POPULATE_GROUP
B . CREATE_GROUP_FROM_QUERY
C*. POPULATE_GROUP_WITH_QUERY
D . POPULATE_LIST_WITH_QUERY
Explanation:
POPULATE_GROUP_WITH_QUERY
What built-in enables you to populate a record group with data that can be filtered dynamically at
runtime?
A . CREATE_GROUP_FROM_PARAMETER
B . POPULATE_LIST
C*. POPULATE_GROUP
D . SET_GROUP_FILTER
Explanation:
POPULATE_GROUP
What built-in enables you to change the contents of a static record group at runtime?
A . POPULATE_GROUP_FROM_QUERY
B . POPULATE_GROUP
C . ADD_GROUP_ROW
D*. You cannot change the contents of a static record group at runtime.
Explanation:
You cannot change the contents of a static record group at runtime.
The definition of a static group is one whose contents cannot be changed at runtime.
What built-in can populate a dynamic list item on a form with values from a record group?
A*. POPULATE_LIST
B . POPULATE_LIST_WITH_QUERY
C . SET_LIST_VALUES
D . RETRIEVE_LIST
Explanation:
POPULATE_LIST
QUESTIONS: List the built-in routines for the controlling canvas views during run-time?
ANSWER: Find_canvas
Get-Canvas_property
Get_view_property
Hide_View
Replace_content_view
Scroll_view
Set_canvas_property
Set_view_property
Show_view
Alert
When-New-Form-Instance runs later, after it has sucessfully navigated to the first navigable
block, and fired any triggers as a consequence of that.
Questions: Pre Query & Post Query
Questions: How many times pre query and post query fired when we fetch 10 record from a
table ?
Answer: Pre Query fires only one time before the execution of the query on the other hand Post
Query fires after execution of the query and one time for every rows returned. Thus if there are 5
returns rows in a query then Pre Query will fire for 1 time only but Post Query will fire for 5
times.
Answer: Pre Query 1 Time - Before Query Post Query n Time ( n Times for n number
of records fetch by this query)
What are the different default triggers created when Master Deletes Property is set to Non-
isolated?
Master Deletes Property Resulting Triggers
Non-Isolated (the default) On-Check-Delete-Master
On-Clear-Details
On-Populate-Details
What are the different default triggers created when Master Deletes Property is set to
Cascade?
Master Deletes Property Resulting Triggers
Cascading On-Clear-Details
On-Populate-Details
Pre-Delete
What are the different default triggers created when Master Deletes Property is set to
Isolated?
Master Deletes Property Resulting Triggers
Isolated On-Clear-Details
On-Populate-Details
What are the different types of coordinations of the Master with the Detail block?
Coordination of the detail block with its master can be
Immediate
Deferred with Auto-Query
Deferred with the no Auto-Query
what is the immediate coordination of the Master with the Detail block?
Immediate(Deferred False, Auto-Querry False) The default settings.
When a coordination-causing event occurs, the detail records are fetched immediately.
What is the deferred with Auto-Quey Coordination of the Master with the Detail block?
Deferred with Auto-Query(Deferred True,Auto-Query true) When a Coordination-causing events
occurs,Oracle Forms defers fetching the associated detail records until the operator navigates to
the detail block.
What is the Deferred with no Auto-Query Coordination of the Master with the Detail
block?
Deferred with Auto-Query(Deferred True,Auto-Query False) When a Coordination-causing
events occurs,Oracle Forms doesnt automatically fetch the detail records the operator must
navigate to the detail block and explicitly execute a query.
* ISOLATED
a) on clear details
b) on populate details
* CASCADE
a) per-delete
b) on clear details
c) on populate details
What are the different objects that you cannot copy or reference in object groups ?
Objects of different modules
Another Objects group
Individual block depndent objects
Program Units.
Usage Notes
When using SYSTEM.MODE to check whether the current block is in Enter Query mode, be
aware that if testing from a When-Button-Pressed trigger in a control block, Enter Query mode
will never be entered, because the control block is not the current block.
What are the default extensions of the files created by Forms Module ?
.FMB Form Module Binary
.FMX Form Module Executable
What are the default extensions of the files created by Menu Module ?
.MMB Menu Module Binary
.MMX Menu Module Executable
What are the default extensions of the files created by Library Module ?
.PLL PL/SQL Library Module Binary
Any attempt to navigate programatically to a disabled form in a call form stack is allowed
FALSE
An open form cannot execute the CALL_FORM procedure if a chain of called forms has
been initiated by another open form
TRUE
When a form is invoked with CALL_FORM, does Oracle Forms issues a savepoint?
TRUE/FALSE
TRUE
What are the various subevents a mouse double click event invokes?
Double_clicking the mouse consists of the mouse down,mouse up,mouse click,mouse down and
mouse up events.
What is an OLE?
Object Linking and Embedding (OLE) provides you with the capability to integrate objectrs from
many MS Windows applications into a single compound document. Creating integrated
applications enables you to use the features from several MS Windows application.
What is the difference between Object Embedding and Linking in Oracle Forms?
An Ole server applications creates OLE objects that are embedded or linked in OLE containers.
Examples of OLE servers are MS Word and MS Excel. OLE containers provide a place to
store,display and manipulate objects that are created by OLE server applications.
What is an USER_EXIT?
Calls the user exit named in the user_exit_string invokes a 3GL program by name which has been
properly linked into your current Oracle Forms executable.
What is SYNCHRONIZE?
Synchronizes the terminal screen with the internal state of the form. That is SYNCHRONIZE
updates the screen display to reflect the information that Oracle Forms has in its internal
representation of the screen.
What is SYSTEM.COORDINATION_OPERATION?
SYSTEM.COORDINATION_OPERATION represents the coordination causing event that
occureson the master block in master detail relationship.
Example: System.Cooordination_Operation=
what is a Library?
A library is a collection of subprograms, including user- named procedures,functions and
packages.
What is a Timer?
A timer is an internal time clock that you programatically create to perform an action each time
the timer expires.
http://www.careerride.com/Oracle-Form.aspx
ON-VALIDATE-FIELD trigger is fired when an existing value is attempted to override the fields
default behavior. For instance a user expects a city field to be mandatory and if on filling the form
it is left blank, a validation error occurs.
ON-VALIDATE-FIELD triggers are used for field validation. It fires when the field validation
status is New or changed. However, if the field status is already valid then any further change to
the value in the field will not fire this trigger.
system.current_field gives the name of the field while system.cursor_field gives the name of the
field where the cursor is lying along with the block name.
The following sequence should be used to fire triggers when a form opens:
1. Pre-Form
2. Pre-Block
3. Pre-Record
4. Pre-Text-Item
5. When-New-Form-Instance
6. When-New-Block-Instance
7. When-New-Record-Instance
8. When-New-Item-Instance
The folowing sequence should be followed when you exit from the form:
DDL (Data Definition Language) commands like CREATE, DROP and ALTER are not directly
supported from Forms because your Forms are not suppose to manipulate the database structure.
However, you can use the FORMS_DDL built-in to execute DDL statements. Eg:
FORMS_DDL('CREATE TABLE X (A DATE)');
FORMS_DDL can also be used to create dynamic SQL statements at runtime. The
FORMS_SUCCESS built-in can be used to determine if the last executed built-in was successful.
Can one execute dynamic SQL from Forms?
Yes, use the FORMS_DDL built-in or call the DBMS_SQL database package from Forms. Eg:
FORMS_DDL('INSERT INTO X VALUES (' || col_list || ')');
Just note that FORMS_DDL will force an implicit COMMIT and may de-synchronize the Oracle
Forms COMMIT mechanism.
[edit]
Forms won't allow me to use restricted built-in's. What should I do?
How to get around the "can't use a restricted built-in in built-in XXX" message:
1. Create a TIMER at the point where you want the navigation to occur. Eg.
create_timer('TIMER_X', 5, NO_REPEAT);
The SET_APPLICATION_PROPERTY build-in in Oracle Forms allows one to change the mouse
pointer. Example:
SET_APPLICATION_PROPERTY(CURSOR_STYLE, BUSY);
This can also be used to execute a query while the user is looking at the results of a previous
query.
[edit]
What happened to SQL*Menu?
From Forms V4.5, SQL*Menu is fully integrated into Oracle Forms. Application menus can be
added to your application by creating Menu Modules (*.MMB) and generate it to Menu Module
Executables (*.MMX).
[edit]
How does one create a custom toolbar?
Create a new block, let's name it "TOOLBAR" and a canvas named "C_TOOLBAR" (for
ilustration purposes). Put some iconic buttons on your canvas. Use the following properties for
these buttons:
Enabled: True
Navigable: False
Mouse Navigate: False
Now set the "Canvas Type" in the canvas property palette to "Horizontal Toolbar" and the "Form
Horizontal Toolbar Canvas" in the module property palette to your canvas name (C_TOOLBAR
in our case).
[edit]
How does one compile MS Help files?
The Microsoft Help Compiler does not ship with Designer/2000 or Developer/2000, but you can
download it from here:
Where to Get Compilers and Other Files?
Note: Designer/2000 includes a Help Generator that can generate source files for the Help
Compiler.
[edit]
How can I read/write OS Files from Forms?
OS files can be read/written from Forms using the TEXT_IO package in Forms. The TEXT_IO
package has a datatype FILE_HANDLE. It also has procedures FCLOSE, GET_LINE,
NEW_LINE, PUT, PUT_LINE & PUTF and a function FOPEN. Example:
DECLARE
file1 TEXT_IO.FILE_TYPE;
file2 TEXT_IO.FILE_TYPE;
str VARCHAR2(80);
BEGIN
file1 := TEXT_IO.FOPEN( 'input.txt','r' );
file2 := TEXT_IO.FOPEN( 'output.txt', 'w' );
TEXT_IO.GET_LINE( file1, str );
TEXT_IO.PUT_LINE( file2, str );
TEXT_IO.FCLOSE( file1 );
TEXT_IO.FCLOSE( file2 );
END;
[edit]
How can I generate all my forms in a batch?
@echo.
@echo Done!!! Remember to move the FMX files into your runtime directory.
@echo.
:END
[edit]
How does one get a form to run on Unix?
You need to design your form on your workstation. FTP or copy the Forms's FMB file to the Unix
box. If you generate for a terminal environment (character based), the syntax is:
f45gen USERID=userid/passwd@db_name MODULE_TYPE=FORM MODULE=module_name
If you want to generate a Library file, replace FORM with LIBRARY. Use f45genm to generate
your form in a Motif environment.
Use the "f45run" command to run your form. Forms 6i uses commands f60gen, f60run, etc.
1. What built-in can you use to open a second form but keep the first form in control?
A*. OPEN_FORM
B . SYSTEM.MOUSE_FORM
C . SYSTEM.CURRENT_FORM
D . CALL_FORM
E . FIND_FORM
Explanation:
OPEN_FORM
The OPEN_FORM built-in includes a NO_ACTIVATE option stipulating that the form being
opened should not receive control.
2. Which system variable can tell you the record on which the user has placed focus?
A . CURSOR_ITEM
B . CURRENT_RECORD
C*. CURSOR_RECORD
D . CURRENT_ITEM
Explanation:
CURSOR_RECORD
This is a record-level requirement, so the ITEM variables will not help you. There is no
CURRENT_RECORD system variable.
3. You are modifying a Customer form so that it has the ability to place the contents of the
customer's ZIP code into a separate form named Dealer. What built-in will you use?
A . ADD_PARAMETER
B . SET_APPLICATION_PROPERTY
C . WRITE_VALUE
D*. COPY
E . NAME_IN
Explanation:
COPY
This question requires the use of form bind variables, which cannot be referenced directly across
modules. The built-ins NAME_IN and COPY are used to read and write values across modules
with form bind variables. In this case, COPY is the right choice, because you wish to place values
in another field, rather than read them from the field.
5. Which of the following allows you to collect objects and easily reuse them in other forms?
B . Trigger library
C . PL/SQL Library
D . Object package
E . Property class
Explanation:
Object group
Review the section "Grouping Related Items for Reuse" if you need a refresher on this topic.
6. You have created a client-lookup canvas, complete with code and all the necessary
objects, that has proven popular enough that others want to use it in their applications. How
can you make it available to the other applications from one central source point?
C*. Copy the canvas, code, and objects into an object library.
D . Copy the form module into an object library.
E . Place the canvas, code, and objects into an object group that the other developers will
reference.
Explanation:
Copy the canvas, code, and objects into an object library.
Review the section "Reusing Objects from an Object Library" if you need a refresher on this
topic.
7. You have inherited an application from a developer who left to pursue a career in music.
While looking through the SALARY item's Property Palette, you notice that to the left of its
Data Type property is an arrow with an "X" at its point. What does this symbol indicate?
A . The setting has been derived from a Visual Attributes group, but has been overridden.
E*. The setting has been derived from a property class, but has been overridden.
Explanation:
The setting has been derived from a property class, but has
been overridden.
A Data Type property can only be derived from a property class. The arrow indicates that this has
been done. The "X" at its point indicates that the setting inherited from the property class has
been manually overridden for this item.
8. You want to read the value in an item on another form and use it in your current form.
What built-in will you use?
A . FIND_ITEM
B . NAME_IN
C . SET_ITEM_PROPERTY
D . GET_ITEM_VALUE
E*. COPY
Explanation:
NAME_IN
Some of the built-in names offered as choices don't exist. Of the ones that do, NAME_IN and
COPY are used to read and write values from/to items in other form modules. In this case,
NAME_IN is the right choice, because you wish to read a value in another field.
9. You create a module with two forms: Employee and Product. The application allows users
to have the forms open simultaneously. The users notice that when they save an Employee
record, any unsaved Product records are also committed; the reverse is also true. This is not
the behavior they want. What can you do to change it?
A . Open the first form using the OPEN_FORM built-in with the ACTIVATE option.
B . Open the first form using the OPEN_FORM built-in with the SESSION option.
C*. Open the second form using the OPEN_FORM built-in with the SESSION option.
D . Open the second form using the GO_FORM built-in with the ACTIVATE option.
E . Open the second form using the GO_FORM built-in with the NO_ACTIVATE option.
Explanation:
Open the second form using the OPEN_FORM built-in with the SESSION option.
Review the section "Calling One Form from Another" if you need a refresher on this topic.
10. You need a built-in that will copy a value into a global variable and create the variable if
it is undefined. What built-in has this ability?
A*. DEFAULT_VALUE
B . SET_VAR
C . COPY
D . CREATE_VAR
Explanation:
DEFAULT_VALUE
Review the section "Built-In Subprograms that Assist Flexible Coding" if you need a refresher on
this topic.
11. You are writing versatile code that checks whether your Employee form's Salary field is
visible; if it is, the code hides it; if it isn't, the code shows it. What built-in can you use to
determine which route the code will take?
A*. GET_ITEM_PROPERTY
B . GET_BLOCK_PROPERTY
C . GET_FORM_PROPERTY
D . GET_WINDOW_PROPERTY
E . GET_RECORD_PROPERTY
Explanation:
GET_ITEM_PROPERTY
12. You want to use a single multipage tab canvas for different purposes. Which built-in lets
you set the labels for the pages dynamically when the application is running?
A . SET_PAGE_PROPERTY
B . SET_CANVAS_PROPERTY
C . SET_TAB_PROPERTY
D*. SET_TAB_PAGE_PROPERTY
Explanation:
SET_TAB_PAGE_PROPERTY
Review the section titled "Built-In Subprograms that Assist Flexible Coding" if you need a
refresher on this topic.
13. Which built-in enables you to change window properties dynamically while the
application is running?
A*. SET_WINDOW_PROPERTY
B . SET_VIEW_PROPERTY
C . GET_CANVAS_PROPERTY
D . GET_WINDOW_PROPERTY
E . SET_CANVAS_PROPERTY
Explanation:
SET_WINDOW_PROPERTY
A*. Form
B . Canvas
C . Block
D . Window
Explanation:
Form
Windows do not have the capability to hold triggers, so you need to define a WHEN-
WINDOWS- trigger one level higher in the object hierarchy: the form level.
15. What happens to a function key's default functionality when you define a key trigger for
the function key?
A . The default functionality overrides whatever code is contained in the key trigger.
B . The default functionality is augmented by whatever code is contained in the key trigger.
C*. The default functionality is replaced by whatever code is contained in the key trigger.
D . Forms determines each time the function key is pressed whether it should execute the default
functionality or the key trigger.
Explanation:
The default functionality is replaced by whatever code is contained in the key trigger.
16. Which property and setting will prohibit the user from deleting a master record if
related detail records exist?
Explanation:
Relation property Delete Record Behavior set to Non Isolated
17. What trigger can institute a default functionality, or no functionality, for every function
key that does not have an explicit trigger?
A . KEY-ELSE
B . KEY-FUNCTION
C . KEY-Fn
D*. KEY-OTHERS
E . KEY-NONE
Explanation:
KEY-OTHERS
The purpose of the KEY-OTHERS command is to replace the functionality of any key that can
have a trigger assigned to it but does not.
18. What built-in gives you the ability to change the cursor's appearance dynamically?
A*. SET_APPLICATION_PROPERTY
B . SET_CANVAS_PROPERTY
C . SET_CONTEXT
D . SET_ITEM_PROPERTY
E . SET_FORM_PROPERTY
Explanation:
SET_APPLICATION_PROPERTY
19. What built-in enables you to dynamically control when a detail block is populated?
A . SET_BLOCK_PROPERTY
B*. SET_RELATION_PROPERTY
C . SET_ITEM_PROPERTY
D . SET_WINDOW_PROPERTY
Explanation:
SET_RELATION_PROPERTY
A . PRE-CASCADE
B . PRE-POST
C*. PRE-DELETE
D . PRE-UPDATE
E . POST-CASCADE
Explanation:
PRE-DELETE
The PRE-DELETE trigger is the only one that has the capability to intercept a master-record
deletion, check to determine if related detail records exist, and delete those detail records before
proceeding to delete the master record. A PRE-CASCADE, POST-CASCADE, or PRE-POST
trigger do not exist.
23. What built-in can you use to open a second form modally?
A . OPEN_FORM
B*. CALL_FORM
C . NEW_FORM
D . RUN_PRODUCT
Explanation:
CALL_FORM
24. What built-in can provide the name of the current form?
A*. GET_APPLICATION_PROPERTY
B . GET_BLOCK_PROPERTY
C . GET_WINDOW_PROPERTY
D . GET_FORM_PROPERTY
Explanation:
GET_APPLICATION_PROPERTY
27. How can you base a data block on a stored procedure that uses a ref cursor?
A . Using the Data Block Wizard, specify a data source type of table.
B*. Using the Data Block Wizard, specify a data source type of stored procedure.
C . After creating a data block manually, set the Query Data Source Name property to the
appropriate stored procedure.
D . After creating a data block manually, set the Query Data Source Columns property to the
appropriate stored procedure.
Explanation:
Using the Data Block Wizard, specify a data source type of stored procedure.
The options detailing the creation of a data block manually specify using the name of the stored
procedure in properties not designed to hold a procedure name. Using the Data Block Wizard,
you do not have to specify a data source type of table when you also have the option for stored
procedure.
28. Name a benefit of using a FROM clause query as the basis for a data block.
A . Can perform server joins, calculations, and lookups without needing specific access rights to
tables
C*. Can perform server joins, calculations, and lookups without needing to create a view
Explanation:
Can perform server joins, calculations, and lookups without needing to create a view
The essence of the FROM clause query is its capability to nest SQL select statements in
subqueries that perform lookups, table joins, and calculations without relying on a database view.
30. You have created a sales application that uses one form for the sales ticket and a second
form to list the items being purchased. When the second form is called, the sales ticket is
still open and has pending changes. What mode will the second form be opened in?
B . Commit mode
C . Enter-query mode
D . Open-transaction mode
Explanation:
Post-only mode
32. What built-in enables you to pass data from a record group to a separate Oracle graph?
A . PASS_GROUP_DATA
B*. RUN_PRODUCT
C . OPEN_REPORT_WITH_GROUP
D . PASS_GROUP
Explanation:
RUN_PRODUCT
The RUN_PRODUCT built-in is designed to open other forms of graphics in their respective
runtime programs.
33. When you need to design a pair of forms in which one passes values to the other, when
and where should you define the parameters that will accept the values?
Explanation:
In the called form, at design time
A parameter that is to be received must be defined at design time, and of course, it must be
defined in the called form. See the section titled "Passing Data Between Forms Using Parameter
Lists" for a refresher on this topic.
34. What reusable component enables you to lead your users through complicated
processes?
A . Navigator class
B . ActiveX controls
D . Picklist class
Explanation:
Wizard class
The Wizard class enables you to create your own custom wizards, which can lead users through
complicated processes.
35. What reusable component enables you to create an Object Navigator-like interface for
your own applications?
A . Picklist class
B . ActiveX controls
C . Calendar class
Explanation:
Navigator class
The Navigator class contains objects that make it easy to implement a Navigator interface in your
own applications.
A*. FIND_TIMER
B . WHEN-TIMER-EXPIRED
C . SET_TIMER
D . CREATE_TIMER
E . SET_TIMER_PROPERTY
Explanation:
FIND_TIMER
The FIND_TIMER built-in returns the internal ID of whatever timer's name is provided as an
argument.
A . Picklist class
B . ActiveX controls
C . Calendar class
D . Navigator class
Explanation:
Standard Object library
A*. DELETE_TIMER
B . REMOVE_TIMER
C . FIND_TIMER
D . SET_TIMER
E . SET_TIMER_PROPERTY
Explanation:
DELETE_TIMER
39. You moved a number of your application's program units over to the server and started
experiencing DBMS errors. What built-in can you use to capture these errors and the
information they return?
A . DBMS_ERROR
B . DBMS_ERROR_NUM
C . DBMS_ERROR_STRING
D*. DBMS_ERROR_TEXT
Explanation:
DBMS_ERROR_TEXT
The DBMS_ERROR_TEXT built-in is designed specifically to return the text of error messages
sent back by the database server.
40. What trigger is used to respond to timers, and at what level is it most commonly
defined?
Explanation:
WHEN-TIMER-EXPIRED at the form level
41. What trigger should you use to activate a calendar when the user presses the List of
Values function key while in a date field?
A . WHEN-LOV-OPEN
B . ON-LIST-OPEN
C . KEY-LIST-OPEN
D . ON-LISTVAL
E*. KEY-LISTVAL
Explanation:
KEY-LISTVAL
The KEY-LISTVAL trigger fires whenever the user presses the LOV function key.
42. What are the steps for embedding an existing chart on a form that is open in the Layout
Editor?
A . Execute the File | Import menu command, identify the chart file, and move the resulting chart
to the correct position on the canvas.
B . Invoke the Chart Wizard, identify the chart file, and move the resulting chart to the correct
position on the canvas.
C*. Create a chart item manually using the Chart Item button, identify the chart file in the item's
Property Palette, and move the resulting chart to the correct position on the canvas.
Explanation:
Create a chart item manually using the Chart Item button, identify the chart file in the item's
Property Palette, and move the resulting chart to the correct position on the canvas.
The Chart Wizard is only useful for creating new charts, so it is not a correct answer because the
question specifies that you are dealing with an existing chart. The command File | Import does not
exist in Form Builder. When dealing with an existing chart file, you bypass the Chart Wizard,
create a new chart item manually, and alter the new item's properties to use the existing chart file.
A . DDL_RUNTIME
B*. FORMS_DDL
C . RUNTIME_DDL
D . DDL_FORMS
E . FORMS_RUNTIME
Explanation:
FORMS_DDL
The FORMS_DDL built-in gives you the ability to execute SQL commands during runtime. All
other potential answers to this question were made up (FORMS_RUNTIME is a program, not a
built-in).
44. What built-in enables you to determine which timer fired a WHEN-TIMER-EXPIRED
trigger?
A*. GET_APPLICATION_PROPERTY
B . GET_TIMER_PROPERTY
C . SYSTEM.TIMER
D . FIND_TIMER
Explanation:
GET_APPLICATION_PROPERTY
45. What file format must a third-party external procedure be in for Forms 6i to use it?
A . PL/SQL8
B*. DLL
C . C++
Explanation:
DLL
An external procedure can be written in a variety of third-party languages, but it must be stored in
the .dll format in order for Forms 6i to use it.
47. What is the order of firing the following triggers((Both are in form-level))
1. when-new-form-instance
2. pre-text-item
A. *Pre-Text , when-new-form-instance
B. When-new-form-instance, pre-text-item
Explanation:
Pre-Text , when-new-form-instance
B. When Post Query fires, Pre Query returns more than one row.
C. *Post Query fires once for each record fetched from the query Pre Query fires only once.
Explanation:
Pre-form, pre-block, pre-record , pre-text-item, When-new-form-instance, post-form.
B. Data_Scope, Trigger_Scope
C. Static_Scope, Dynamic_Scope
1. You open a single property sheet to display properties for your DEPARTMENT data
block and DEPARTMENT canvas simultaneously. Which Property Palette display mode is
likely to show more properties?
A . Intersection
B*. Union
Explanation:
Union
The Intersection display mode shows only the properties that multiple selected objects have in
common, while the Union display mode shows all properties for all selected objects, whether the
objects share the properties in common or not.
2. What does it mean when the Property Palette displays ***** as a property's value?
A*. Two or more objects are selected, and their values for that property are not the same.
C . You cannot update that property for the object you have selected.
D . The property is not applicable for the object you have selected.
Explanation:
Two or more objects are selected, and their values for that property are not the same
Because the Property Palette cannot display more than one value per property, the only way it can
deal with multiple objects is to display something special when those objects' values are different.
The special display is *****.
3. What happens if you select multiple objects, open the Property Palette, and change a
property's value?
B . The Property Palette shows each object's old and new values for that property.
Explanation:
The change is applied to all selected objects
4. Which data block property would you consider changing if your records include LONG
items that are not likely to be edited?
B . Update Allowed
C . Query Allowed
Explanation:
Update Changed Columns Only
If your records include LONG items that are not likely to be edited, this data block property can
improve application performance by keeping the application from sending the voluminous LONG
data back to the server during an update command.
5. What does the Property Palette toolbar field labeled Find do?
A . Locates other objects containing the same property as the one you currently have selected
B . Allows you to search-and-replace a given property value with a different value
D*. Forces the Palette to place its focus on the first property matching the characters you type
Explanation:
Forces the Palette to place its focus on the first property matching the characters you type
The Property Palette toolbar field labeled Find makes the Property Palette quickly jump to
specific properties. If the group containing the matching property is closed, the Find field will
even open it up for you.
6. What would be the result of completely deleting a data block from the Object Navigator?
A . The data blocks and components are deleted but can be retrieved using the Edit | Undo
command.
B . The data blocks and components are irreversibly deleted, and all components from the data
block are removed from any canvas that contained them, including the data block's frame and
boilerplate title text.
C*. The data blocks and components are irreversibly deleted, and all components from the data
block are removed from any canvas that contained them, but the data block's frame and
boilerplate title text will stay on the canvas.
D . The data blocks and components are irreversibly deleted, and all components from the data
block stay on the canvas and must be deleted manually.
Explanation:
The data blocks and components are irreversibly deleted, all components from the data block are
removed from any canvas that contained them, but the data block's frame and boilerplate title text
will stay on the canvas.
A . Nothing
B*. Identifies which object's properties are currently being displayed by the Property Palette
C . Identifies which program you are in when you open the Property Palette
Explanation:
Identifies which object's properties are currently being displayed by the Property Palette.
8. Which of the following occur if you copy multiple properties from one object and paste
them into another?
A*. No Answer is Correct
B . Properties not relevant to the destination object will be added to that object.
E . If the destination is a different type of object than the source, the destination object will be
changed to the same type of object as the source.
Explanation:
No Answer is Correct
The Property Palette can copy and paste individual or multiple properties. When copying multiple
properties, the Palette pastes only the properties for which an actual value is shown, and only the
properties that are relevant to the object receiving the pasted properties.
10. You have created a SALES_TICKET form for a point-of-sale application. You now want
to modify the Transaction_Date_Time item in the form so it is automatically populated with
the current date and time each time a new record is created. How can you accomplish this?
Explanation:
Set the Initial Value property to $$DATETIME$$.
The is no Item property called Default Value, and while SYSDATE is a valid parameter in a SQL
query, it will not work in the Initial Value property; you must use $$DATETIME$$.
B . When multiple objects are selected, shows only those properties that all selected objects share
in common
C*. Forces the Palette to continue displaying properties for the currently selected object(s),
regardless of what object(s) you select from that point on
Explanation:
Forces the Palette to continue displaying properties for the currently selected object(s), regardless
of what object(s) you select from that point on
12. What is the best way to ensure that an item cannot accept query criteria?
Explanation:
Set the item's Query Allowed property to No
There are no properties named Disable Query or Queryable. Setting the Query Length property to
0 simply tells Oracle Forms 6i to use the item's length as the maximum query length.
17. To which of the following items does a control block directly correspond?
B . Database
D . Table
E . Column
Explanation:
No answer is correct
A control block is not associated with a database object. Instead, it contains either controls (such
as buttons), or a group of items with single values (such as calculated subtotals).
C*. None. You must manually create any items that will go into a control block.
Explanation:
None. You must manually create any items that will go into a control block.
By definition, a control block is not related to a database table. And you can put items into a
control block-that is what it's for. But you must do it manually after the block is created.
19. What is the definition of an input item?
B . A dialog box
D*. A form object through which the user can enter and change data
E . A form object through which the program can enter and change data
Explanation:
A form object through which the user can enter and change data
Input items are the basis of forms-they enable a user to add or edit data. A dialog box may contain
input items, but the dialog itself is a window, not an input item.
20. Users of your application have requested that they be able to see STOCK and
CUSTOMER canvases on the screen simultaneously. You add a second window to the
application. How can you make the CUSTOMER canvas use the second window?
Explanation:
Change the canvas's Window property
A canvas's Window property determines which window the canvas is visible in. The Visual
Attributes Group has no window selection properties, and a window's Primary Canvas property
specifies the primary canvas for a window that displays multiple canvases.
21. Which check box property controls the text that displays next to the check box?
A*. Label
B . Text
C . Name
Explanation:
Label
Remember that both Prompt and Label can place text next to a radio button.
22. Which type of canvas is best suited for displaying tutorial text on the same canvas as the
form about which the user is being taught?
A . Tab
B . Viewport
C*. Stacked
D . Toolbar
E . Content
Explanation:
Stacked
The requirement that the tutorial text be visible on the same form limits the choices to either
stacked or tab. A tab canvas might be useful for a multipage tutorial, but the requirements did not
state the need for multiple pages, so a simple stacked canvas will fulfill the requirement.
25. What type of canvas can easily eliminate the need for a menu in your application?
A*. Toolbar
B . Content
C . Tab
D . Stacked
Explanation:
Toolbar
A toolbar canvas's sole purpose is holding buttons that initiate actions. The buttons can replace
every menu action your users would need to take.
27. You have created a form that contains two canvases, ten database items, and four
buttons. The items have all been placed into a group, and the buttons have been placed into
a separate group. What happens when you click one of the buttons in the Layout Editor?
B . Nothing is selected.
Explanation:
The group of buttons is selected.
The primary reason for groups is to ensure that when any item in the group is selected, all items
are selected with it.
A . Content
B . Stacked
C . Tab
D*. Toolbar
Explanation:
Toolbar
Content, stacked, and tab canvases are all intended to display database data. The toolbar canvas
type is not; it is intended to display buttons that work in concert with the items on the other three
canvas types.
29. What is the primary difference between tab and stacked canvases?
Explanation:
A tab canvas can contain multiple pages.
The essence of a tab canvas is the fact that it consists of multiple pages of data, each page
overlaying the others when it is selected by the user or developer. It is not possible to get this
functionality from a single stacked canvas.
30. What trigger would you use to execute code each time a user modifies the value of a
check box?
A . ON-NEW-CHECKBOX-INSTANCE
B . WHEN-CHECKBOX-UNCHECKED
C . WHEN-CHECKBOX-CLICKED
D . WHEN-CHECKBOX-CHECKED
E*. WHEN-CHECKBOX-CHANGED
Explanation:
WHEN-CHECKBOX-CHANGED
31. You would like to create a trigger that fires each time a window is closed by the user. You
will most likely place the trigger at which of the following levels:
A . Canvas level
B . Window level
D . Item level
Explanation:
Form level
Windows do not have triggers. Placing the WHEN-WINDOW-CLOSED trigger at the Form level
allows it to fire when any window in the module is closed.
32. What trigger would fire each time a new record is created?
A . ON-NEW-RECORD
B*. WHEN-NEW-RECORD-INSTANCE
C . WHEN-VALIDATE-RECORD
D . WHEN-DATABASE-RECORD
Explanation:
WHEN-NEW-RECORD-INSTANCE
33. What do you need to do to within Form Builder to run a form module in debug mode?
A . Enable Debug Messages and then run your form. The Debugger will appear automatically.
B*. Enable the Debug Mode button, run the form, and the Debugger displays automatically.
C . Run the form, and in the Forms Runtime program execute the Help | Debug menu command.
D . Enable the Debug Mode button, run your form, and in the Forms Runtime program execute
the Help | Debug menu command.
Explanation:
Enable the Debug Mode button, run the form, and the Debugger displays automatically.
See the section "Running a Form Module in Debug Mode" for a refresher on this topic.
A*. After the user enters query criteria, but before the query executes
C . After the form enters Enter-Query mode, but before the user enters query criteria
D . After the query executes, but before records are shown to the user
Explanation:
After the user enters query criteria, but before the query executes
The PRE-QUERY trigger fires after Enter-Query mode but before a query's select statement has
been finalized, and therefore before the query is executed.
A . WHEN-NEW-ITEM-INSTANCE
B . SHOW-EDITOR
C*. SHOW_EDITOR
Explanation:
SHOW_EDITOR
36. You want to write a trigger that screens a query condition. At what level will you place
the trigger?
A . Block
B*. Form
C . Item
D . Record
Explanation:
Form
37. You wish to have certain values in a form initialized when the form is first opened. What
trigger will you use?
A . WHEN-NEW-CANVAS-INSTANCE
B*. WHEN-NEW-FORM-INSTANCE
C . WHEN-NEW-FORM
D . WHEN-FORM-OPENED
E . WHEN-NEW-CANVAS
Explanation:
WHEN-NEW-FORM-INSTANCE
A . Type
B . Name
C*. Code
D . Scope
Explanation:
Code
40. What trigger can you use to ensure that a query entered by the user includes at least one
item that is indexed, and keep the query from occurring if not?
A*. PRE-QUERY
B . WHEN-CLEAR-BLOCK
C . ON-SELECT
D . POST-SELECT
E . ON-FETCH
Explanation:
PRE-QUERY
While the other triggers listed are query triggers, only the PRE-QUERY trigger fires before the
select statement is executed.
B*. Provides code to execute if user presses a key that has no trigger attached
D . Provides code that accesses another key's trigger and executes the code it contains
Explanation:
Provides code to execute if user presses a key that has no trigger attached.
See the section "Form Trigger Categories" for a refresher on this topic.
42. Your data analysis application is slowing the network to a crawl. You analyze the queries
users are performing and discover that the majority of their queries are too broad,
returning many more records than necessary. You decide to require that any query have at
least three fields containing criteria. What type of trigger can you use to enforce that
requirement?
A . POST-QUERY
B . ON-NEW-QUERY-INSTANCE
C . PRE-UPDATE
D*. PRE-QUERY
E . POST-UPDATE
Explanation:
PRE-QUERY
The PRE-QUERY trigger fires before a query's select statement has been finalized, and is
therefore ideal for screening query criteria before the query is executed.
44. What is the default level at which validation occurs in the Forms Runtime program?
A*. Item
B . Form
C . Block
D . Record
Explanation:
Item
By default, the Forms Runtime program validates an item immediately when the user tries to
leave the item.
46. How can you cause a block to use a database sequence to get unique IDs?
Explanation:
This action is not possible.
Data blocks cannot read sequences, and in fact cannot store values at all. Items, on the other hand,
can.
Give yourself half a point if you answered:
Set the Initial Value property to
:sequence.sequence-name.nextval.
which would have been the right answer if the question had referred to an item instead of a block,
and remember to pay closer attention to the wording of questions. In some Oracle exam
questions, a single word defines why one choice is right and another choice wrong.
47. You have written a contact-tracking application that includes a field for the last date a
client was contacted. You want to use a trigger to guarantee that whenever the date in that
field is changed, the date entered is later than the date that was there before. What is the
best trigger to use?
A . PRE-UPDATE
B . ON-COMMIT
C . ON-UPDATE
D*. PRE-COMMIT
E . POST-UPDATE
Explanation:
PRE-COMMIT
PRE-COMMIT is a form-level trigger that fires only once at the beginning of a transaction, so it
cannot perform validation on a row-by-row basis. ON-UPDATE and ON-COMMIT only occur if
you have replaced the default Forms Runtime transaction processing. POST-UPDATE occurs
after the update has occurred, so it is too late for a validity check. The remaining trigger, PRE-
COMMIT, is perfect.
48. Your form module's Validation Unit property is set to Form. The module includes a data
block that has a PRE-TEXT-ITEM trigger. At what point will the trigger fire?
A*. Never
Explanation:
Never
The trigger will not fire because the object level defined in the trigger name item is smaller than
the module's validation unit.
50. You would like to keep the user from seeing the Forms Runtime program's "nn records
applied and saved" messages. What would you put in the form's WHEN-NEW-FORM-
INSTANCE trigger?
A . :system.message_level := 0;
B . :system.suppress_working := 'TRUE';
C . :system.suppress_working := 'FALSE';
D*. :system.message_level := 5;
Explanation:
:system.message_level := 5;
See the section "Controlling System Messages" for a refresher on this topic.
51. What is the last DML statement processed during a commit transaction?
A*. INSERT
B . UPDATE
C . DELETE
D . POST
Explanation:
The post command does not perform a commit. Of the three remaining choices, their processing
order is delete, update, and then insert.
A . DOWN
B . COMMIT_FORM
E . GO_ITEM
Explanation:
No Answer is Correct.
Each built-in listed is a navigational built-in, which cannot be used within the navigational trigger
PRE-UPDATE.
53. Which navigational built-in will move the focus to a subsequent record and place it on
the same item it was on in the original record?
A . NEXT_BLOCK
B . NEXT_ITEM
C*. DOWN
Explanation:
DOWN
54. You would like to modify your form so it uses array processing to send DML statements
to the server in batches of 50. How would you do this?
B*. Set the data block's DML Array Size property to 50.
Explanation:
Set the data block's DML Array Size property to 50.
Oracle Forms:
1. How to use single data block to query multiple tables
2. How to see the select statement when we issue execute_query
3. What are the system variables can be changed
4. How do you trap default forms processing ( DML)
5. What is the difference between post-query and post-select
6. What is purpose and order of firing the following triggers
1. on fetch
2. on select
7. What is the number of records buffered and Query array size properties of data block
8. What is the difference between object libraries and object groups
9. What is the difference between pre-query and pre-select triggers
10. What is the difference between pre-text-item and when-new-item-instance triggers
11. What is the order of firing the following triggers
1. when-new-form-instance
2. pre-text-item
(Both are in form-level)
12. What is the validation unit property of form module
13. What is the order of checking for a program unit from form module(local program
unit, library, stored procedure)
14. What is the difference between PL/SQL library and object library
15. what is the use of pre text/pre record/pre form
16. types of record groups and usage
17. what is id_null function
18. what is the return data types of id_null, show_alert, show_lov
19. what is the difference between call_form , open_form, new_form
Which is restricted built-in and why?
Which cant issue savepoint
What is session parameter of open_form?
Oracle Reports
Return (TRUE);
End;
How many types of columns are there and what are they?
Formula columns : For doing mathematical calculations and returning one value
Summary Columns : For doing summary calculations such as summations etc.
Place holder Columns : These columns are useful for storing the value in a variable
Confine Mode
- Work with Confine Mode enabled (closed padlock) to avoid accidently
moving one object outside or below its correct enclosing object.
- Work with Confine Mode disabled (open padlock) when you want to move
one object outside its enclosing object.
Flex Mode
- Work with Flex Mode enabled to adjust all affected objects when you move
or resize one object; the whole layout flexes to accommodate your changes.
- Work with Flex Mode disabled when you want to move an individual object
without moving other objects.
Repeating frame- Contains other objects and prints once for each record of the
associated group
Frame- Contains other objects and prints only once
Field- Contains data and other variable values and their formats
Boilerplate -Contains text or graphics that may appear anywhere in the
report
What are the minimum number of groups required for a matrix report
The minimum of groups required for a matrix report are 4
============================================================
Oracle reports: