Professional Documents
Culture Documents
Download Guide to Oracle 10g 5th Edition Morrison Test Bank all chapters
Download Guide to Oracle 10g 5th Edition Morrison Test Bank all chapters
https://testbankfan.com/product/oracle-10g-database-
administrator-implementation-and-administration-2nd-edition-
powell-test-bank/
https://testbankfan.com/product/foundations-of-mental-health-
care-5th-edition-morrison-valfre-test-bank/
https://testbankfan.com/product/guide-to-crisis-intervention-5th-
edition-kanel-test-bank/
https://testbankfan.com/product/network-guide-to-networks-5th-
edition-dean-test-bank/
Pocket Guide to Public Speaking 5th Edition OHair Test
Bank
https://testbankfan.com/product/pocket-guide-to-public-
speaking-5th-edition-ohair-test-bank/
https://testbankfan.com/product/dental-hygienists-guide-to-
nutritional-care-5th-edition-stegeman-test-bank/
https://testbankfan.com/product/guide-to-computer-forensics-and-
investigations-5th-edition-bill-test-bank/
https://testbankfan.com/product/biology-a-guide-to-the-natural-
world-5th-edition-krogh-test-bank/
https://testbankfan.com/product/guide-to-computer-forensics-and-
investigations-5th-edition-nelson-solutions-manual/
Chapter 6: Creating Custom Forms
TRUE/FALSE
1. When you create a custom form, you manually create the form canvas in the Object Navigator.
2. To configure a form button item, you modify the ID property, which is the name that Forms
Builder uses to reference the button.
4. If the triggering event occurs within any block item, the block trigger fires.
5. To display a value in a text item automatically when a form first opens, you set the text item’s
Initial Value property to the desired value.
7. One way to help users avoid errors is to programmatically disable command buttons.
8. Use the Not NULL property to indicate that a field value is required.
9. To specify the European date format for the Data Type text item property, use EDate.
10. By default, the validation unit for a data form is at the item level.
11. To ensure that a user enters only digits in a postal code field with a character data type, use a Data
Type validator.
14. The property values used in the SET_ITEM_PROPERTY function are the same as those used in
the Property Palette.
15. To disable a text field so the user cannot modify it, use the SET_ITEM_PROPERTY function to
disable it.
16. It is good practice to intercept the default system error message and replace it with a custom error
message.
17. Whenever an ORA- or FRM- error occurs while a form is running, the WHEN-ERROR event
occurs.
18. The DBMS_ERROR_CODE procedure contains the error code for the most recent FRM- error that
occurred.
19. The error code FRM-40735 indicates that a DBMS error occurred.
20. When a form contains an ON-ERROR trigger and a runtime error occurs, form execution
immediately transfers to the ON-ERROR trigger.
21. If the error does not have an associated error handler in the ON-ERROR trigger, then the standard
error message is displayed rather than a custom message.
24. A form may contain either data blocks or control blocks, but not both.
25. When you link a control block to a data block, use the Data Block Wizard to create a master-detail
relationship between the data block and the control block.
26. When you create a form with a master-detail relationship between a control block and a data block,
you must manually specify the link between the blocks.
27. When creating multiple canvases in the same form, multiple developers can each work with one of
the canvases.
28. All data is shared between two canvases stored in separate form files.
29. If working with multiple canvases in the same form, when you create a new data block, you can
select the canvas name on which the block items are to appear on the Layout Wizard Canvas page.
30. When a form contains multiple data blocks and multiple canvases, you must specify which canvas
initially appears when the user runs the form.
MULTIPLE CHOICE
1. What view of Object Navigator should be used when creating a custom form?
a. Ownership View c. Forms View
b. Visual View d. Canvas View
ANS: B PTS: 1 REF: 404
2. A ____ is a data block that you do not associate with a particular database table.
a. data form block c. custom form block
b. control data block d. free form block
ANS: B PTS: 1 REF: 405
10. Error messages that are generated by the DBMS begin with the prefix ____.
a. FRM c. DBMS
b. ORA d. DB
ANS: B PTS: 1 REF: 428
11. When using the Forms Debugger, to pause program execution on a certain command, set a ____.
a. stop c. breakpoint
b. break d. pausepoint
ANS: C PTS: 1 REF: 429
14. When a trigger is attached to a block, the trigger’s ____ extends to all items within the block.
a. scope c. timing
b. range d. execution hierarchy
ANS: A PTS: 1 REF: 440
16. Using the GO_ITEM built-in to move the form focus is an example of ____.
a. external navigation c. program navigation
b. internal navigation d. trigger navigation
ANS: B PTS: 1 REF: 440
18. When in a multiple form application, the form focus is moved to another form with the ____
command.
a. GO_ITEM c. TO_FORM
b. GO_BLOCK d. GO_FORM
ANS: D PTS: 1 REF: 442
19. What command moves the form focus to the item name s_id in the shipment block?
a. GO_ITEM(:s_id); c. GO_ITEM(shipment:s_id)
b. GO_ITEM(:shipment.s_id) d. GO_ITEM(shipment.s_id)
ANS: D PTS: 1 REF: 442
20. What error level indicates an informative message that identifies a data entry error, such as
entering an incorrect data value in a text item?
a. 0 c. 10
b. 5 d. 15
ANS: D PTS: 1 REF: 450
21. Which error severity indicates an error message that identifies a condition that causes the form to
operate incorrectly?
a. 10 c. 20
b. 15 d. 25
ANS: D PTS: 1 REF: 450
22. To suppress all error messages with severity below 10, use the code: ____.
a. :SYSTEM.MESSAGE_LEVEL = 10 c. :SYSTEM.MESSAGE_LEVEL = 9
b. :SYSTEM.MESSAGE_LEVEL <= 10 d. :SYSTEM_MESSAGE_LEVEL = 11
ANS: A PTS: 1 REF: 451
24. What is the maximum number of characters that can be displayed in the message line?
a. 50 c. 200
b. 100 d. 400
ANS: C PTS: 1 REF: 454
25. What message would be best to display in an alert rather than on the message line?
a. Record Saved c. Order processed
b. New Customer Inserted d. Are you sure you want to exit?
ANS: D PTS: 1 REF: 456
29. What property is used to limit the length of an entry in a text item?
a. Max Length c. Length
b. Maximum Length d. Length Limit
ANS: B PTS: 1 REF: 461
30. How do you specify that a text field should contain a right-justified number?
a. Rnumber c. Right Justify Number
b. Right Number d. Rt Justify Number
ANS: A PTS: 1 REF: 462
34. Which of the following contains the error message for a FRM error?
a. DBMS_ERROR_CODE c. ERROR_CODE
b. DBMS_ERROR_TEXT d. ERROR_TEXT
ANS: D PTS: 1 REF: 469
36. What determines the first canvas to be displayed in a form with multiple canvases?
a. the first created
b. the first alphabetically
c. the first canvas listed in Object Navigator
d. the canvas with the first data block listed in Object Navigator
ANS: D PTS: 1 REF: 497
38. Use a ____ canvas to direct a user through a sequence of steps for performing a task.
a. content c. tab
b. stacked d. modular
ANS: C PTS: 1 REF: 500
39. How do you create a tab canvas?
a. create a content canvas then a tab canvas on it
b. create a tab canvas only
c. create a stacked canvas then a tab canvas on it
d. create a base canvas then a tab canvas on it
ANS: A PTS: 1 REF: 501
COMPLETION
1. A(n) ____________________ form displays the data fields from a variety of database tables, and
contains programs that support organizational processes.
ANS: custom
2. A (n) ____________________ block is a data block that you do not associate with a particular
database table.
ANS: system
4. The system variable ____________________ represents the current database server date.
ANS: $$DBDATE$$
5. You create a command button by drawing the button on the canvas using the
____________________ tool on the tool palette.
ANS: Button
6. A(n) ____________________ is an error that does not keep a program from compiling, but that
generates an error while the program is running.
ANS: runtime error
ANS: breakpoint
8. When using Forms Debugger, a(n) ____________________ is used to monitor the value of a
specific variable or form item value during program execution
ANS: watch
ANS: interface
10. Trigger events that start with ____________________ will fire their associated triggers before the
action.
ANS:
PRE-
PRE
11. Trigger ____________________ defines which trigger fires when an object within a form object
contains the same trigger that the form object contains.
12. ____________________ navigation occurs when the user causes the form focus, which specifies
the location of the insertion point, to change by making a different form item active.
ANS: External
13. To set the ____________________ order of items in a custom form, you place the items in the
correct order under the Items node in the Object Navigator window.
ANS: tab
ANS: GO_ITEM
15. A message severity level of ____________________ means a condition that keeps a form trigger
from working correctly.
ANS:
20
twenty
16. Level ____________________ error messages provide information about what is happening and
usually do not require user action.
ANS:
5
five
17. Forms Builder determines which messages to display on the message line using the
____________________ variable.
ANS: :SYSTEM.MESSAGE_LEVEL
18. A(n) ____________________ is a short text string that the form developer displays on the form
message line.
19. A(n) ____________________ is a dialog box that can display a longer text message, and displays
one or more buttons that allow the user to select between alternatives that execute associated
program statements.
ANS: alert
20. The text item validation property ____________________ specifies that the value entered by the
user should be validated against the items LOV.
ANS: Tab
22. A(n) ____________________ is an object representing a surface that displays form items, and has
a tab label identifier at the top.
23. To create a control block, you create a new data block in the ____________________, and specify
that the data block is to be created manually, rather than by using the Data Block Wizard.
24. The ____________________ console allows you to control form execution and examine form
values.
25. To execute alternate program commands depending on the alert button that the user clicks, you
create a(n) ____________________ decision control structure.
ANS: IF/ELSIF
ESSAY
1. List and describe the properties that can be used to configure a text field.
ANS:
Name—Represents how Forms Builder internally references the item. For items that represent
database fields, this is usually the same name as the database field.
Data Type—Represents the type of data the text item displays.When you create a text item to
represent a database field, the text item must have the same data type as the database field.
Maximum Length—Represents the maximum width of the data that the text item can
display.When you create a text item to represent a database field, the text item should have the
same maximum width as the associated database field, plus any formatting characters that you
include in the text item’s Format Mask property.
Prompt—Represents the label that appears beside the text item.
2. How can you clear all form values using a form trigger?
ANS:
There are two ways to clear the form text items in a form trigger: use the CLEAR_FORM built-in
procedure, which clears all of the form text items; or you can create a program unit to set the value
of the text items to a blank text string.You use the CLEAR_FORM procedure when you want to
clear all form text items, and you create a program unit when you want to clear selected text items
and retain the current values in other items.
ANS:
Trigger timing specifies when a trigger fires—just before, during, or after its triggering event.
PRE- triggers, which are triggers with PRE as the first three characters of their name, fire just
before an event successfully completes. For example, a PRE-FORM trigger fires just before a form
appears in the Forms Services window, and a PRE-BLOCK trigger fires just before the user
successfully navigates to a new form block. POST- triggers fire just after an event successfully
completes. For example, a POST-QUERY trigger fires just after a query in a data block form
retrieves records. In contrast, the ON-,WHEN-, and KEY- triggers fire in response to actions. For
example, the ON-DELETE trigger fires in response to deleting a record in a data block form, and
the WHEN-BUTTON-PRESSED trigger fires in response to a user clicking a button.
4. What is error severity? What levels are assigned to error severity? How does a developer
suppress messages with certain severity? What is the default suppressed severity?
ANS:
Oracle Corporation assigns the error severity levels, and the scale simply compares relative
severity, with 5 being low severity, 15 somewhat higher, 20 somewhat higher still, and >25 the
highest severity. Message severity levels do not correspond to error code numbers— Oracle
Corporation assigns the error code numbers sequentially as it documents new errors. Sometimes
form developers suppress the default system messages and replace them with custom messages.
Forms Builder determines which messages to display on the message line using the
:SYSTEM.MESSAGE_LEVEL variable. This is a system variable that stores a value
corresponding to one of the message severity levels (0, 5, 10, 15, 20, or 25).While a form is
running, Forms Services suppresses all messages with a severity level that is lower (less severe)
than the current :SYSTEM.MESSAGE_LEVEL value. The default
:SYSTEM.MESSAGE_LEVEL value is 0, so by default, all system messages appear. If you assign
the value 20 to :SYSTEM.MESSAGE_LEVEL, only messages with severity level 20 or higher
appear on the message line.
ANS:
All form items have a Canvas property that specifies the name of the canvas on which the item
appears. When an item has the form focus, the form always displays the canvas on which that item
appears.To display a different canvas within a form that has multiple canvases, you execute the
GO_ITEM built-in, and move the form focus to an item on the target canvas. In the GO_ITEM
command, you do not expressly need to preface the item name with the block name, so you could
use the following command to move the form focus to the VIEW_UPDATE_BUTTON:
GO_ITEM('VIEW_UPDATE_BUTTON');. However, forms that contain multiple blocks often
contain text items in different blocks that have the same name. All block item values are visible to
all other blocks, including text items, command buttons, and so on. If you execute the GO_ITEM
command using only the item name, without the block name preface, and multiple items with that
name exist in the form, a runtime error occurs.Therefore, it is good practice to include the block
name when identifying a particular item.