FORMS 3.0 BASIC
1.What is an SQL *FORMS ?
SQL *forms is 4GL tool for developing and executing; Oracle based interactive application.
2. What is the maximum size of a form?
255 character width and 255 characters Length.
3. Name the two files that are created when you generate the form give the file extension?
INP (Source File)
FRM (Executable File)
4. How do you control the constraints in forms?
Select the use constraint property is ON Block definition screen.
BLOCK
5. Commited block sometimes refer to a BASE TABLE ? True or False.
False.
6. Can we create two blocks with the same name in form 3.0 ?
No.
7. While specifying master/detail relationship between two blocks specifying the join condition is a must ? True or False.
True.
8. What is a Trigger ?
A piece of logic that is executed at or triggered by a SQL *forms event.
9. What are the types of TRIGGERS ?
1. Navigational Triggers.
2. Transaction Triggers.
10. What are the different types of key triggers ?
Function Key
Key-function
Key-others
Key-startup
11. What is the difference between a Function Key Trigger and Key Function Trigger ?
Function key triggers are associated with individual SQL*FORMS function keys
You can attach Key function triggers to 10 keys or key sequences that normally do not perform any SQL * FORMS operations. These keys refered as key F0 through key F9.
12. What does an on-clear-block Trigger fire?
It fires just before SQL * forms the current block.
13. How do you trap the error in forms 3.0 ?
using On-Message or On-Error triggers.
14. State the order in which these triggers are executed ?
POST-FIELD,ON-VALIDATE-FIELD,POST-CHANGE and KEY-NEXTFLD.
KEY-NEXTFLD,POST-CHANGE, ON-VALIDATE-FIELD, POST-FIELD.
15. What is the usuage of an ON-INSERT,ON-DELETE and ON-UPDATE TRIGGERS ?
These triggers are executes when inserting,deleting and updating operations are performed and can be used to change the default function of insert,delete or update respectively.
For Eg, instead of inserting a row in a table an existing row can be updated in the same table.
16. When will ON-VALIDATE-FIELD trigger executed ?
It fires when a value in a field has been changed and the field status is changed or new and the key has been pressed. If the field status is valid then any further change to the value in the field will not fire the on-validate-field trigger.
17. A query fetched 10 records How many times does a PRE-QUERY Trigger and POST-QUERY Trigger will get executed ?
PRE-QUERY fires once.
POST-QUERY fires 10 times.
18. What is the difference between ON-VALIDATE-FIELD trigger and a POST-CHANGE trigger ?
When you changes the Existing value to null, the On-validate field trigger will fire post change trigger will not fire. At the time of execute-query post-chage trigger will fire, on-validate field trigger will not fire.
19. What is the difference between an ON-VALIDATE-FIELD trigger and a trigger ?
On-validate-field trigger fires, when the field Validation status New or changed.
Post-field-trigger whenever the control leaving form the field, it will fire.
20. What is the difference between a POST-FIELD trigger and a POST-CHANGE trigger ?
Post-field trigger fires whenever the control leaving from the filed.
Post-change trigger fires at the time of execute-query procedure invoked or filed validation status changed.
21. When is PRE-QUERY trigger executed ?
When Execute-query or count-query Package procedures are invoked.
22. Give the sequence in which triggers fired during insert operations, when the following 3 triggers are defined at the smae block level ?
a. ON-INSERT b. POST-INSERT c. PRE-INSERT
PRE-INSERT,ON-INSERT & POST-INSERT.
23. Can we use GO-BLOCK package in a pre-field trigger ?
No.
24. Is a Keystartup trigger fires as result of a operator pressing a key explicitly ?
No.
25. How can you execute the user defined triggers in forms 3.0 ?
Execute_Trigger (trigger-name)
26. When does an on-lock trigger fire ?
It will fires whenever SQL * Forms would normally attempt to lock a row.
26. What is Post-Block is a
. a. Navigational Trigger.
b. Key trigger
c. Transaction Trigger.
Navigational Trigger.
27. What is the difference between keystartup and pre-form ?
Key-startup trigger fires after successful navigation into a form.
Pre-form trigger fires before enter into the form.
28. What is the difference between keystartup and pre-form ?
Key-startup triigger fires after successful navigation into a form.
Pre-form trigger fires before enter into the form.
PACKAGE PROCEDURE & FUNCTION
29. What is a Package Procedure ?
A Package proecdure is built in PL/SQL procedure.
30. What are the different types of Package Procedure ?
1. Restricted package procedure.
2. Unrestricted package proecdure.
31. What is the difference between restricted and unrestricted package procedure ?
Restricted package procedure that affects the basic basic functions of SQL * Forms. It cannot used in all triggers execpt key triggers.
Unrestricted package procedure that does not interfere with the basic functions of SQL * Forms it can be used in any triggers.
32. Classify the restricted and unrestricted procedure from the following.
a. Call
b. User-Exit
c. Call-Query
d. Up
e. Execute-Query
f. Message
g. Exit-From
h. Post
i. Break
a. Call - unrestricted
b. User Exit - Unrestricted
c. Call_query - Unrestricted
d. Up - Restricted
e. Execute Query - Restricted
f. Message - Restricted
g. Exit_form - Restricted
h. Post - Restricted
i. Break - Unrestricted.
33. Can we use a restricted package procedure in ON-VALIDATE-FIELD Trigger ?
No.
34. What SYNCHRONIZE procedure does ?
It synchoronizes the terminal screen with the internal state of the form.
35. What are the unrestricted procedures used to change the popup screen position during run time ?
Anchor-view
Resize -View
Move-View.
36. What Enter package procedure does ?
Enter Validate-data in the current validation unit.
37. What ERASE package procedure does ?
Erase removes an indicated global variable.
38. What is the difference between NAME_IN and COPY ?
Copy is package procedure and writes values into a field.
Name in is a package function and returns the contents of the variable to which you apply.
38. Identify package function from the following ?
1. Error-Code
2. Break
3. Call
4. Error-text
5. Form-failure
6. Form-fatal
7. Execute-query
8. Anchor_View
9. Message_code
1. Error_Code
2. Error_Text
3. Form_Failure
4. Form_Fatal
5. Message_Code
40. How does the command POST differs from COMMIT ?
Post writes data in the form to the database but does not perform database commit
Commit permenently writes data in the form to the database.
41. What the PAUSE package procedure does ?
Pause suspends processing until the operator presses a function key
42. What package procedure is used for calling another form ?
Call (E.g. Call(formname)
43. What package procedure used for invoke sql *plus from sql *forms ?
Host (E.g. Host (sqlplus))
44. Error_Code is a package proecdure ?
a. True b. false
False.
45. EXIT_FORM is a restricted package procedure ?
a. True b. False
True.
46. When the form is running in DEBUG mode, If you want to examine the values of global variables and other form variables, What package procedure command you would use in your trigger text ?
Break.
SYSTEM VARIABLES
47. List the system variables related in Block and Field?
1. System.block_status
2. System.current_block
3. System.current_field
4. System.current_value
5. System.cursor_block
6. System.cursor_field
7. System.field_status.
48. What is the difference between system.current_field and system.cursor_field ?
1. System.current_field gives name of the field.
2. System.cursor_field gives name of the field with block name.
49. The value recorded in system.last_record variable is of type
a. Number
b. Boolean
c. Character.
b. Boolean.
User Exits :
50. What is an User Exits ?
A user exit is a subroutine which are written in programming languages using pro*C pro *Cobol , etc., that link into the SQL * forms executable.
51. What are the type of User Exits ?
ORACLE Precompliers user exits
OCI (ORACLE Call Interface)
Non-ORACEL user exits.
Page :
52. What do you mean by a page ?
Pages are collection of display information, such as constant text and graphics.
53. How many pages you can in a single form ?
Unlimited.
54. Two popup pages can appear on the screen at a time ?
a. True b. False
a. True.
55.What is the significance of PAGE 0 in forms 3.0 ?
Hide the fields for internal calculation.
56. Deleting a page removes information about all the fields in that page ?
a. True. b. False
a. True.
Popup Window :
57. What do you mean by a pop-up window ?
Pop-up windows are screen areas that overlay all or a portion of the
display screen when a form is running.
58. What are the types of Pop-up window ?
the pop-up field editor
pop-up list of values
pop-up pages.
Alert :
59. What is an Alert ?
An alert is window that appears in the middle of the screen overlaying a portion of the current display.
FORMS 4.0
01. Give the Types of modules in a form?
Form
Menu
Library
02. Write the Abbreviation for the following File Extension
1. FMB 2. MMB 3. PLL
FMB ----- Form Module Binary.
MMB ----- Menu Module Binary.
PLL ------ PL/SQL Library Module Binary.
03. What are the design facilities available in forms 4.0?
Default Block facility.
Layout Editor.
Menu Editor.
Object Lists.
Property Sheets.
PL/SQL Editor.
Tables Columns Browser.
Built-ins Browser.
04. What is a Layout Editor?
The Layout Editor is a graphical design facility for creating and arranging items and boilerplate text and graphics objects in your application's interface.
05. BLOCK
05. What do you mean by a block in forms4.0?
Block is a single mechanism for grouping related items into a functional unit for storing,displaying and manipulating records.
06. Explain types of Block in forms4.0?
Base table Blocks.
Control Blocks.
1. A base table block is one that is associated with a specific database table or view.
2. A control block is a block that is not associated with a database table.
ITEMS
07. List the Types of Items?
Text item.
Chart item.
Check box.
Display item.
Image item.
List item.
Radio Group.
User Area item.
08. What is a Navigable item?
A navigable item is one that operators can navigate to with the keyboard during default navigation, or that Oracle forms can navigate to by executing a navigational
built-in procedure.
09. Can you change the color of the push button in design time?
No.
10. What is a 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".
11. What are the triggers associated with a check box?
Only When-checkbox-activated Trigger associated with a Check box.
FORMS 4.0
01. Give the Types of modules in a form?
Form
Menu
Library
02. Write the Abbreviation for the following File Extension
1. FMB 2. MMB 3. PLL
FMB ----- Form Module Binary.
MMB ----- Menu Module Binary.
PLL ------ PL/SQL Library Module Binary.
03. What are the design facilities available in forms 4.0?
Default Block facility.
Layout Editor.
Menu Editor.
Object Lists.
Property Sheets.
PL/SQL Editor.
Tables Columns Browser.
Built-ins Browser.
04. What is a Layout Editor?
The Layout Editor is a graphical design facility for creating and arranging items and boilerplate text and graphics objects in your application's interface.
05. BLOCK
05. What do you mean by a block in forms4.0?
Block is a single mechanism for grouping related items into a functional unit for storing,displaying and manipulating records.
06. Explain types of Block in forms4.0?
Base table Blocks.
Control Blocks.
1. A base table block is one that is associated with a specific database table or view.
2. A control block is a block that is not associated with a database table.
ITEMS
07. List the Types of Items?
Text item.
Chart item.
Check box.
Display item.
Image item.
List item.
Radio Group.
User Area item.
08. What is a Navigable item?
A navigable item is one that operators can navigate to with the keyboard during default navigation, or that Oracle forms can navigate to by executing a navigational
built-in procedure.
09. Can you change the color of the push button in design time?
No.
10. What is a 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".
11. What are the triggers associated with a check box?
Only When-checkbox-activated Trigger associated with a Check box.
FORMS4.0
12. what is a display item?
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.
13. What is a list item?
It is a list of text elements.
14. What are the display styles of list items?
Poplist, No text Item displayed in the list item.
Tlist, No element in the list is highlighted.
15. What is a radio Group?
Radio groups display a fixed no of options that are mutually Exclusive .
User can select one out of n number of options.
16. How many maximum number of radio buttons can you assign to a radio group?
Unlimited no of radio buttons can be assigned to a radio group
17. can you change the default value of the radio button group at run time?
No.
18.What triggers are associated with the radio group?
Only when-radio-changed trigger associated with radio group
Visual Attributes.
19. What is a visual attribute?
Visual Attributes are the font, color and pattern characteristics of objects that operators see and intract with in our application.
20. What are the types of visual attribute settings?
Custom Visual attributes
Default visual attributes
Named Visual attributes.
Window
21. What is a window?
A window, byitself , can be thought of as an empty frame. The frame provides a way to intract with the window, including the ability to scroll, move, and resize the window. The content of the window ie. what is displayed inside the frame is determined by the canvas View or canvas-views displayed in the window at run-time.
22. What are the differrent types of windows?
Root window, secondary window.
23. Can a root window be made modal?
No.
24. List the buil-in routine for controlling window during run-time?
Find_window,
get_window_property,
hide_window,
move_window,
resize_window,
set_window_property,
show_View
25. List the windows event triggers available in Forms 4.0?
When-window-activated, when-window-closed, when-window-deactivated,
when-window-resized
26. What built-in is used for changing the properties of the window dynamically?
Set_window_property
Canvas-View
27. What is a canvas-view?
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 assiged to a specific canvas. Each canvas, in term, must be displayed in a specfic window.
28. Give the equivalent term in forms 4.0 for the following.
Page, Page 0?
Page - Canvas-View
Page 0 - Canvas-view null.
29. What are the types of canvas-views?
Content View, Stacked View.
30. What is the content view and stacked view?
A content view is the "Base" view that occupies the entire content pane of the window in which it is displayed.
A stacked view differs from a content canvas view in that it is not the base view for the window to which it is assigned
31. List the built-in routines for the controlling canvas views during run-time?
Find_canvas
Get-Canvas_property
Get_view_property
Hide_View
Replace_content_view
Scroll_view
Set_canvas_property
Set_view_property
Show_view
Alert
32. What is an Alert?
An alert is a modal window that displays a message notifies the operator of some application condition
33. What are the display styles of an alert?
Stop, Caution, note
34. Can you attach an alert to a field?
No
35. What built-in is used for showing the alert during run-time?
Show_alert.
36. Can you change the alert messages at run-time?
If yes, give the name of th built-in to chage the alert messages at run-time.
Yes. Set_alert_property.
37. What is the built-in function used for finding the alert?
Find_alert
Editors
38. List the editors availables in forms 4.0?
Default editor
User_defined editors
system editors.
39. What buil-in routines are used to display editor dynamicaly?
Edit_text item
show_editor
LOV
40. What is an Lov?
A list of values is a single or multi column selection list displayed in
a pop-up window
41. Can you attach an lov to a field at design time?
Yes.
42. Can you attach an lov to a field at run-time? if yes, give the build-in name.
Yes. Set_item_proprety
43. What is the built-in used for showing lov at runtime?
Show_lov
44. What is the built-in used to get and set lov properties during run-time?
Get_lov_property
Set_lov_property
Record Group
45. What is a record Group?
A record group is an internal oracle forms data structure that has a simillar column/row frame work to a database table
46. What are the different type of a record group?
Query record group
Static record group
Non query record group
47. Give built-in routine related to a record groups?
Create_group (Function)
Create_group_from_query(Function)
Delete_group(Procedure)
Add_group_column(Function)
Add_group_row(Procedure)
Delete_group_row(Procedure)
Populate_group(Function)
Populate_group_with_query(Function)
Set_group_Char_cell(procedure)
48. What is the built_in routine used to count the no of rows in a group?
Get_group _row_count
System Variables
49. List system variables available in forms 4.0, and not available in forms 3.0?
System.cordination_operation
System Date_threshold
System.effective_Date
System.event_window
System.suppress_working
50. System.effective_date system variable is read only True/False
False
51. What is a library in Forms 4.0?
A library is a collection of Pl/SQL program units, including user named procedures, functions & packages
52. Is it possible to attach same library to more than one form?
Yes
53. Explain the following file extention related to library?
.pll,.lib,.pld
The library pll files is a portable design file comparable to an fmb form file
The library lib file is a plat form specific, generated library file comparable to a fmx form file
The pld file is Txt format file and can be used for source controlling your library files
Parameter
54. How do you pass the parameters from one form to another form?
To pass one or more parameters to a called form, the calling form must perform the following steps in a trigger or user named routine excute the create_parameter_list built_in function to programatically.
Create a parameter list to execute the add parameter built_in procedure to add one or more parameters list.
Execute the call_form, New_form or run_product built_in procedure and include the name or id of the parameter list to be passed to the called form.
54. What are the built-in routines is available in forms 4.0 to create and manipulate a parameter list?
Add_parameter
Create_Parameter_list
Delete_parameter
Destroy_parameter_list
Get_parameter_attr
Get_parameter_list
set_parameter_attr
55. What are the two ways to incorporate images into a oracle forms application?
Boilerplate Images
Image_items
56. How image_items can be populate to field in forms 4.0?
A fetch from a long raw database column PL/Sql assignment to executing the read_image_file built_in procedure to get an image from the file system.
57. What are the triggers associated with the image item?
When-Image-activated(Fires when the operator double clicks on an image Items)
When-image-pressed(fires when the operator selects or deselects the image item)
58. List some built-in routines used to manipulate images in image_item?
Image_add
Image_and
Image_subtract
Image_xor
Image_zoom
59. What are the built_in used to trapping errors in forms 4?
Error_type return character
Error_code return number
Error_text return char
Dbms_error_code return no.
Dbms_error_text return char
60. What is a predefined exception available in forms 4.0?
Raise form_trigger_failure
61. What are the menu items that oracle forms 4.0 supports?
Plain, Check,Radio, Separator, Magic
FORMS4.5
object groups
01. what ia an object groups?
An object group is a container for a group of objects, you define an object group when you want to package related objects. so that you copy or reference them in another modules.
02. what are the different objects that you cannot copy or reference in object groups?
objects of differnt modules
another object groups
individual block dependent items
program units.
canvas views
03. what are different types of canvas views?
content canvas views
stacked canvas views
horizontal toolbar
vertical toolbar.
04. explain about content canvas views?
Most Canvas views are content canvas views a content canvas view is the "base" view that occupies the entire content pane of the window in which it is displayed.
05. Explain about stacked canvas views?
Stacked canvas view is displayed in a window on top of, or "stacked" on the content canvas view assigned to that same window. Stacked canvas views obscure some part of the underlying content canvas view, and or often shown and hidden programmatically.
06. Explain about horizontal, Vertical tool bar canvas views?
Tool bar canvas views are used to create tool bars for individual windows Horizontal tool bars are display at the top of a window, just under its menu bar.
Vertical Tool bars are displayed along the left side of a window
07. Name of the functions used to get/set canvas properties?
Get_view_property, Set_view_property
Windows
07. What is relation between the window and canvas views?
Canvas views are the back ground objects on which you place the interface items (Text items), check boxes, radio groups etc.,) and boilerplate
objects (boxes, lines, images etc.,) that operators interact with us they run your form . Each canvas views displayed in a window.
08. What are the different modals of windows?
Modalless windows
Modal windows
09. What are modalless windows?
More than one modelless window can be displayed at the same time, and operators can navigate among them if your application allows them to do so . On most GUI platforms, modelless windows can also be layered to appear either in front of or behind other windows.
10. What are modal windows?
Modal windows are usually used as dialogs, and have restricted functionality compared to modelless windows. On some platforms for example operators cannot resize, scroll or iconify a modal window.
11. How do you display console on a window ?
The console includes the status line and message line, and is displayed at the bottom of the window to which it is assigned.
To specify that the console should be displayed, set the console window form property to the name of any window in the form. To include the console, set console window to Null.
12. What is the remove on exit property?
For a modelless window, it determines whether oracle forms hides the window automatically when the operators navigates to an item in the another window.
13. How many windows in a form can have console?
Only one window in a form can display the console, and you cannot chage the console assignment at runtime.
14. Can you have more than one content canvas view attached with a window?
Yes.
Each window you create must have atleast one content canvas view assigned to it. You can also create a window that has manipulate contant canvas view. At run time only one of the content canvas views assign to a window is displayed at a time.
15. What are the different window events activated at runtimes?
When_window_activated
When_window_closed
When_window_deactivated
When_window_resized
Within this triggers, you can examine the built in system variable system.event_window to determine the name of the window for which the trigger fired.
Modules
27. What are different types of modules available in oracle form?
Form module - a collection of objects and code routines
Menu modules - a collection of menus and menu item commands that together make up an application menu
library module - a collectio of user named procedures, functions and packages that can be called from other modules in the application
18. What are the default extensions of the files careated by forms modules?
.fmb - form module binary
.fmx - form module executable
19. What are the default extentions of the files created by menu module?
.mmb, .mmx
20 What are the default extension of the files created by library module?
The default file extensions indicate the library module type and storage format
.pll - pl/sql library module binary
Master Detail
21. What is a master detail relationship?
A master detail relationship is an association between two base table blocks- a master block and a detail block. The relationship between the blocks reflects a primary key to foreign key relationship between the tables on which the blocks are based.
22. What is coordination Event?
Any event that makes a different record in the master block the current record is a coordination causing event.
23. What are the two phases of block coordination?
There are two phases of block coordination: the clear phase and the population phase. During, the clear phase, Oracle Forms navigates internally to the detail block and flushes the obsolete detail records. During the population phase, Oracle Forms issues a SELECT statement to repopulate the detail block with detail records associated witjh the new master record. These operations are accomplished through the execution of triggers.
24. What are Most Common types of Complex master-detail relationships?
There are three most common types of complex master-detail relationships:
master with dependent details
master with independent details
detail with two masters
25. What are the different types of Delete details we can establish in Master-Details?
Cascade
Isolate
Non-isolote
26. What are the different defaust triggers created when Master Deletes Property is set to Non-isolated?
Master Delets Property Resulting Triggers
----------------------------------------------------
Non-Isolated(the default) On-Check-Delete-Master
On-Clear-Details
On-Populate-Details
26. Whar are the different default triggers created when Master Deletes Property is set to Cascade?
Ans: Master Deletes Property Resulting Triggers
---------------------------------------------------
Cascading On-Clear-Details
On-Populate-Details
Pre-delete
28. 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
29. What are the Coordination Properties in a Master-Detail relationship?
The coordination properties are
Deferred
Auto-Query
These Properties determine when the population phase of block
coordination should occur.
30. What are the different types of Coordinations of the Master with the Detail block?
42. What is the User-Named Editor?
A user named editor has the same text editing functionality as the default editor, but, becaue it is a named object, you can specify editor attributes such as windows display size, position, and title.
43. What are the Built-ins to display the user-named editor?
A user named editor can be displayed programmatically with the built in procedure SHOW-EDITOR, EDIT_TETITEM independent of any particular text item.
44. What is the difference between SHOW_EDITOR and EDIT_TEXTITEM?
Show editor is the generic built_in which accepts any editor name and takes some input string and returns modified output string. Whereas the edit_textitem built_in needs the input focus to be in the text item before the built_in is excuted.
45. What is an LOV?
An LOV is a scrollable popup window that provides the operator with either a single or multi column selection list.
46. What is the basic data structure that is required for creating an LOV?
Record Group.
47. What is the "LOV of 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, and processing continues normally.
If the value in the text item does not 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.
48. What are the built_ins used the display the LOV?
Show_lov
List_values
49. What are the built-ins that are used to Attach an LOV programmatically to an item?
set_item_property
get_item_property
(by setting the LOV_NAME property)
50. What are the built-ins that are used for setting the LOV properties at runtime?
get_lov_property
set_lov_property
51. What is a record group?
A record group is an internal Oracle Forms that structure that hs a column/row framework similar to a database table. However, unlike database tables, record groups are separate objects that belong to the form module which they are defined.
52. How many number of columns a record group can have?
A record group can have an unlimited number of columns of type CHAR, LONG, NUMBER, or DATE provided that the total number of column does not exceed 64K.
53. What is the Maximum allowed length of Record group Column?
Record group column names cannot exceed 30 characters.
54. What are the different types of Record Groups?
Query Record Groups
NonQuery Record Groups
State Record Groups
55. What is a Query Record Group?
A query record group is a record group that has an associated SELECT statement. The columns in a query record group derive their default names, data types, had lengths from the database columns referenced in the SELECT statement. The records in query record group are the rows retrieved by the query associated with that record group.
56. What is a Non Query Record Group?
A non-query record group is a group that does not have an associated query, but whose structure and values can be modified programmatically at runtime.
57. What is a Static Record Group?
A static record group is not associated with a query, rather, you define its structure and row values at design time, and they remain fixed at runtime.
58. What are the built-ins used for Creating and deleting groups?
CREATE-GROUP (function)
CREATE_GROUP_FROM_QUERY(function)
DELETE_GROUP(procedure)
59.What are the built -ins used for Modifying a group's structure?
ADD-GROUP_COLUMN (function)
ADD_GROUP_ROW (procedure)
DELETE_GROUP_ROW(procedure)
60. POPULATE_GROUP(function)
POPULATE_GROUP_WITH_QUERY(function)
SET_GROUP_CHAR_CELL(procedure)
SET_GROUP_DATE_CELL(procedure)
SET_GROUP_NUMBER_CELL(procedure)
61. What are the built-ins used for Getting cell values?
GET_GROUP_CHAR_CELL (function)
GET_GROUP_DATE_CELL(function)
GET_GROUP_NUMBET_CELL(function)
62. What are built-ins used for Processing rows?
GET_GROUP_ROW_COUNT(function)
GET_GROUP_SELECTION_COUNT(function)
GET_GROUP_SELECTION(function)
RESET_GROUP_SELECTION(procedure)
SET_GROUP_SELECTION(procedure)
UNSET_GROUP_SELECTION(procedure)
63. What are the built-ins used for finding Object ID function?
FIND_GROUP(function)
FIND_COLUMN(function)
64. Use the ADD_GROUP_COLUMN function to add a column to a record group that was created at design time.
I) TRUE II)FALSE
II) FALSE
65. Use the ADD_GROUP_ROW procedure to add a row to a static record group
I) TRUE II)FALSE
I) FALSE
61. What are the built-in used for getting cell values?
Get_group_char_cell(function)
Get_group_date_cell(function)
Get_group_number_cell(function)
62. What are the built-ins used for processing rows?
Get_group_row_count(function)
Get_group_selection_count(function)
Get_group_selection(function)
Reset_group_selection(procedure)
Set_group_selection(procedure)
Unset_group_selection(procedure)
63. What are the built-ins used for finding object ID functions?
Find_group(function)
Find_column(function)
64. Use the add_group_column function to add a column to record group that was created at a design time?
False.
65. Use the Add_group_row procedure to add a row to a static record group 1. true or false?
False.
parameters
66. What are parameters?
Parameters provide a simple mechanism for defining and setting the values
of inputs that are required by a form at startup. Form parameters are variables of type char,number,date that you define at design time.
67. What are the Built-ins used for sending Parameters to forms?
You can pass parameter values to a form when an application executes the call_form, New_form, Open_form or Run_product.
68. What is the maximum no of chars the parameter can store?
The maximum no of chars the parameter can store is only valid for char parameters, which can be upto 64K. No parameters default to 23Bytes and Date parameter default to 7Bytes.
69. How do you call other Oracle Products from Oracle Forms?
Run_product is a built-in, Used to invoke one of the supported oracle tools products and specifies the name of the document or module to be run. If the called product is unavailable at the time of the call, Oracle Forms returns a message to the opertor.
70. How do you reference a Parameter?
In Pl/Sql, You can reference and set the values of form parameters using bind variables syntax. Ex. PARAMETER name = '' or :block.item = PARAMETER
Parameter name
71. How do you reference a parameter indirectly?
To indirectly reference a parameter use the NAME IN, COPY 'built-ins to indirectly set and reference the parameters value' Example name_in ('capital parameter my param'), Copy ('SURESH','Parameter my_param')
72. What are the different Parameter types?
Text Parameters
Data Parameters
73. When do you use data parameter type?
When the value of a data parameter being passed to a called product is always the name of the record group defined in the current form. Data parameters are used to pass data to produts invoked with the run_product built-in subprogram.
74. Can you pass data parametrs to forms?
No.
IMAGES
75. What are different types of images?
Boiler plate images
Image Items
76. What is the difference between boiler plat images and image items?
Boiler plate Images are static images (Either vector or bit map) that you import from the file system or database to use a grapical elements in your form, such as company logos and maps Image items are special types of interface controls that store and display either vector or bitmap images. Llike other items that store values, image items can be either base table items(items that relate directly to database columns) or control items. The definition of an image item is stored as part of the form module FMB and FMX files, but no image file is actualy associated with an image item until the item is populate at run time.
77. What are the trigger associated with image items?
When-image-activated fires when the operators double clicks on an image item when-image-pressed fires when an operator clicks or double clicks on an image item
78. What is the use of image_zoom built-in?
To manipulate images in image items.
WORKING WITH MULTIPLE FORMS
79. How do you create a new session while open a new form?
Using open_form built-in setting the session option Ex. Open_form('Stocks ',active,session). when invoke the mulitiple forms with open form and call_form in the same application, state whether the following are true/False
80. Any attempt to navigate programatically to disabled form in a call_form stack is allowed?
False
81. An open form can not be execute the call_form procedure if you chain of called forms has been initiated by another open form?
True
82. When a form is invoked with call_form, Does oracle forms issues a save point?
True
Mouse Operations
83. What are the various sub events a mouse double click event involves?
Double clicking the mouse consists of the mouse down, mouse up, mouse click, mouse down & mouse up events.
84, State any three mouse events system variables?
System.mouse_button_pressed
System.mouse_button_shift_state
system.mouse_item
system.mouse_canvas
system.mouse_record
OLE
85. What is an OLE?
Object Linking & Embadding provides you with the capability to integrate objects from many Ms-Windows applications into a single compound document creating integrated applications enables you to use the features form .
86. What is the difference between object embedding & linking in Oracle forms?
In Oracle forms, Embedded objects become part of the form module, and linked objects are references from a form module to a linked source file.
87. What is the difference between OLE Server & Ole Container?
An Ole server application creates ole Objects that are embedded or linked in ole Containers ex. Ole servers are ms_word & ms_excell. OLE containers provide a place to store, display and manipulate objects that are created by ole server applications. Ex. oracle forms is an example of an ole Container.
88. What are the different styles of actvation of ole Objects?
In place activation
External activation
ViSUAL Attributes & property clauses
89. What are visual attributes?
Visual attributes are the font, color, pattern proprities that you set for form and menu objects that appear in your application interface.
90. What is a property clause?
A property clause is a named object that contains a list of properties and thier settings. Once you create a property clause you can base other object on it. An object based on a property can inherit the setting of any property in the clause that makes sense for that object.
91. Can a property clause itself be based on a property clause?
Yes
92. What are the important difference between property clause and visual attributes?
Named visual attributes differed only font, color & pattern attributes, property clauses can contain this and any other properties. You can change the appearance of objects at run time by changing the named visual attributes programatically , property clause assignments cannot be changed programatically. When an object is inheriting from both a property clause and named visual attribute, the named visual attribute settings take precedence, and any visual attribute properties in the class are ignored.
Form Build-ins
93. What is a Text_io Package?
It allows you to read and write information to a file in the file system.
94. What is an User_exit?
Calls the user exit named in the user_exit_string. Invokes a 3Gl programe by name which has been properly linked into your current oracle forms executable.
95. What is synchronize?
It is a terminal screen with the internal state of the form. It updates the screen display to reflect the information that oracle forms has in its internal representation of the screen.
96. What is forms_DDL?
Issues dynamic Sql statements at run time, including server side pl/SQl and DDL
Triggers
97. What is WHEN-Database-record trigger?
Fires when oracle forms first marks a record as an insert or an update. The trigger fires as soon as oracle forms determines through validation that the record should be processed by the next post or commit as an insert or update. c generally occurs only when the operators modifies the first item in the record, and after the operator attempts to navigate out of the item.
98. What are the master-detail triggers?
On-Check_delete_master
On_clear_details
On_populate_details
99. What is the difference between $$DATE$$ & $$DBDATE$$
$$DBDATE$$ retrieves the current database date
$$date$$ retrieves the current operating system date.
100. What is system.coordination_operation?
It represents the coordination causing event that occur on the master block in master-detail relation.
101. What are the difference between lov & list item?
Lov is a property where as list item ias an item. A list item can have only one column, lov can have one or more columns.
102. What are the different display styles of list items?
Pop_list
Text_list
Combo box
103. What is pop list?
The pop list 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.
104. What is a text list?
The text list style list item appears as a rectangular box which displays the fixed number of values. When the text list contains values that can not be displayed, a vertical scroll bar appears, allowing the operator to view and select undisplayed values.
105. What is a combo box?
A combo box style list item combines the features found in list and text item. Unlike the pop list or the text list style list items, the combo box style list item will both display fixed values and accept one operator entered value.
106. What are display items?
Display items are similar to text items with the exception that display items only store and display fetched or assigned values.Display items are generaly used as boilerplate or conditional text.
107. What is difference between open_form and call_form?
when one form invokes another form by executing open_form the first form remains displayed,and operators can navigate between the forms as desired. when one form invokes another form by executing call_form,the called form is modal with respect to the calling form.That is, any windows that belong to the calling form are disabled, and operators cannot navigate to them until they first exit the called form.
108. What is new_form built-in?
When one form invokes another form by executing new_form oracle form exits the first form and releases its memory before loading the new form calling new form completely replace the first with the second. If there are changes pending in the first form,the operator will be prompted to save them before the new form is loaded.
109. What is a library?
A library is a collection of subprograms including user named procedures, functions and packages.
110. What is the advantage of the library?
Library's provide a convenient means of storing client-side program units and sharing them among multipule applications. Once you create a library, you can attach it to any other form,menu,or library modules. When you can call library program units from triggers menu items commands and user named routine, you write in the modules to which you have attach the library.
when a library attaches another library ,program units in the first library can reference program units in the attached library. Library support dynamic loading-that is library program units are loaded into an application only when needed. This can significantly reduce the run-time memory requirements of an applications.
111. What is strip sources generate options?
Removes the source code from the library file and generates a library files that contains only pcode.The resulting file can be used for final deployment, but can not be subsequently edited in the designer.
ex. f45gen module=old_lib.pll userid=scott/tiger
strip_source YES output_file
112.What are the vbx controls?
Vbx control provide a simple mehtod of buildig and enhancing user interfaces.The controls can use to obtain user inputs and display program outputs.vbx control where originally develop as extensions for the ms visual basic environments and include such items as sliders,grides and knobs.
113. What is a timer?
Timer is a "internal time clock" that you can programmatically create to perform an action each time the timer expires.
114. What are built-ins associated with timers?
find_timer
create_timer
delete_timer
115. what are difference between post database commit and post-form commit?
Post-form commit fires once during the post and commit transactions process, after the database commit occures. The post-form-commit trigger fires after inserts,updates and deletes have been posted to the database but before the transactions have been finalished in the issuing the command.The post-database-commit trigger fires after oracle forms issues the commit to finalished transactions.
116. What is a difference between pre-select and pre-query?
Fires during the execute query and count query processing after oracle forms constructs the select statement to be issued, but before the statement is actually issued.
The pre-query trigger fires just before oracle forms issues the select statement to the database after the operator as define the example records by entering the query criteria in enter query mode.
Pre-query trigger fires before pre-select trigger.
117. What is trigger associated with the timer?
When-timer-expired.
118 What is the use of transactional triggers?
Using transactional triggers we can control or modify the default functionality of the oracle forms.
1. Types of Triggers in Forms
- Block-processing triggers: - Block processing triggers fire in response to events related to record management in a block. E.g. When-Create-Record, When-Clear-Block, When-Database-Record, When-Remove-Record
- Interface event triggers: - Interface event triggers fire in response to events that occur in the form interface. Some of these triggers, such as When-Button-Pressed, fire only in response to operator input or manipulation. Others, like When-Window-Activated, can fire in response to both operator input and programmatic control. E.g. When-Button-Pressed, When-Checkbox-Changed, Key- [all], When-Radio-Changed, When-Timer-Expired, When-Window-Activated, When-Window-Resized
- Master-detail triggers: - Form Builder generates master-detail triggers automatically when you define a master-detail relation between blocks. The default master-detail triggers enforce coordination between records in a detail block and the master record in a master block. Unless you are developing your own custom block-coordination scheme, you do not need to define these triggers yourself. Instead, simply create a relation object, and let Form Builder generate the triggers required to manage coordination between the master and detail blocks in the relation. E.g. On-Check-Delete-Master, On-Clear-Details, On-Populate-Details
- Message-handling triggers: - Form Builder automatically issues appropriate error and informational messages in response to runtime events. Message handling triggers fire in response to these default messaging events. E.g. On-Error, On-Message
- Navigational triggers: - Navigational triggers fire in response to navigational events. For instance, when the operator clicks on a text item in another block, navigational events occur as Form Builder moves the input focus from the current item to the target item. Navigational events occur at different levels of the Form Builder object hierarchy (Form, Block, Record, and Item). Navigational triggers can be further sub-divided into two categories: Pre- and Post- triggers, and When-New-Instance triggers. Pre- and Post- triggers fire as Form Builder navigates internally through different levels of the object hierarchy. As you might expect, these triggers fire in response to navigation initiated by an operator, such as pressing the [Next Item] key. However, be aware that these triggers also fire in response to internal navigation that Form Builder performs during default processing. To avoid unexpected results, you must consider such internal navigation when you use these triggers. E.g. Pre-Form, Pre-Block, Pre-Text-Item, Post-Text-Item, Post-Record, Post-Block, Post-Form
When-New-Instance triggers fire at the end of a navigational sequence that places the input focus in a different item. Specifically, these triggers fire just after Form Builder moves the input focus to a different item, when the form returns to a quiet state to wait for operator input. Unlike the Pre- and Post- navigational triggers, the When-New-Instance triggers do not fire in response to internal navigational events that occur during default form processing. E.g. When-New-Form-Instance, When-New-Block-Instance, When-New-Record-Instance, When-New-Item-Instance
- Query-time triggers: - Query-time triggers fire just before and just after the operator or the application executes a query in a block. E.g. Pre-Query, Post-Query
- Transactional triggers: - Transactional triggers fire in response to a wide variety of events that occur as a form interacts with the data source. E.g. On-Delete, On-Insert, On-Lock, On-Logon, On-Update, Post-Database-Commit, Post-Delete, Post-Forms-Commit, Post-Insert, Post-Update, Pre-Commit, Pre-Delete, Pre-Insert, Pre-Update
- Validation triggers: - Validation triggers fire when Form Builder validates data in an item or record. Form Builder performs validation checks during navigation that occurs in response to operator input, programmatic control, or default processing, such as a Commit operation. E.g. When-Validate-Item, When-Validate-Record
2. Sequence of Trigger Fire while Committing
Ø KEY Commit
Ø Pre Commit
Ø Pre/On/Post Delete
Ø Pre/On/Post Update
Ø Pre/On/Post Insert
Ø On commit
Ø Post Database Commit
3. Master-Detail Relation (Triggers/Procedures/Properties)
On-Check-Delete-Master: - Fires when Form Builder attempts to delete a record in a block that is a master block in a master-detail relation.
On-Clear-Details: - Fires when Form Builder needs to clear records in a block that is a detail block in a master-detail relation because those records no longer correspond to the current record in the master block.
On-Populate-Details: - Fires when Form Builder needs to fetch records into a block that is the detail block in a master-detail relation so that detail records are synchronized with the current record in the master block.
(i) Isolated: - Masters Can be deleted when Child is existing
Triggers: - On Populate details Block
On Clear Details Form
Procedure Check Package Failure
Clear all master Detail
Query Master Detail
(ii) Non- Isolated: - Masters Cannot be deleted when Child is existing.
Triggers: - On Populate details Block
On Check Delete master Block
On Clear Details Form
Procedure Check Package Failure
Clear all master Detail
Query Master Detail
(iii) Cascading: - Child Record Automatically Deleted when Masters is deleted.
Triggers: - On Populate details Block
Pre Delete Block
On Clear Details Form
Procedure
Check Package Failure
Clear all master Detail
Query Master Detail
4. Dynamically create LOV/List Item
You can also add list elements individually at runtime by using the ADD_LIST_ELEMENT built-in subprogram, or you can populate the list from a record group at runtime using the POPULATE_LIST built-in. If you populate the list from a record group, be sure that the record group you are using to populate the list contains the relevant values before you call POPULATE_LIST. If the record group is a static record group, it will already contain the appropriate values. Otherwise, you should populate the group at runtime using one of the record group subprograms.
5. Object Libraries (Use/Benefits)
The Object Library provides an easy method of reusing objects and enforcing standards across the entire development organization.
Object Library can be used to:
1. Create, store, maintain, and distribute standard and reusable objects.
2. Rapidly create applications by dragging and dropping predefined objects to your form.
There are several advantages to using object libraries to develop applications:
1. Object libraries are automatically re-opened when you startup Form Builder, making your reusable objects immediately accessible.
2. You can associate multiple object libraries with an application. For example, you can create an object library specifically for corporate standards, and you can create an object library to satisfy project-specific requirements.
3. Object libraries feature Smart Classes-- objects that you define as being the standard. You use Smart Classes to convert objects to standard objects.
6. Key-next/Post-Text (Difference)
Post-Text–Item: Fires during the Leave the Item process for a text item. Specifically, this trigger fires when the input focus moves from a text item to any other item.
Key-Next-Item: The key-next is fired as a result of the key action. Key next will not fire unless there is a key event.
7. Call Form/New Form/Open Form (Difference)
Call Form: Runs an indicated form while keeping the parent form active. Form Builder runs the called form with the same Runform preferences as the parent form. When the called form is exited Form Builder processing resumes in the calling form at the point from which you initiated the call to CALL_FORM.
PROCEDURE CALL_FORM (formmodule_name VARCHAR2, display NUMBER, switch_menu NUMBER, query_mode NUMBER, data_mode NUMBER, paramlist_name/id VARCHAR2);
New Form: Exits the current form and enters the indicated form. The calling form is terminated as the parent form. If the calling form had been called by a higher form, Form Builder keeps the higher call active and treats it as a call to the new form. Form Builder releases memory (such as database cursors) that the terminated form was using.
Form Builder runs the new form with the same Runform options as the parent form. If the parent form was a called form, Form Builder runs the new form with the same options as the parent form.
PROCEDURE NEW_FORM (formmodule_name VARCHAR2, rollback_mode NUMBER, query_mode NUMBER, data_mode NUMBER, paramlist_name/id VARCHAR2);
Open Form: Opens the indicated form. Use OPEN_FORM to create multiple-form applications, that is, applications that open more than one form at the same time.
PROCEDURE OPEN_FORM (form_name VARCHAR2, activate_mode NUMBER, session_mode NUMBER, data_mode NUMBER, paramlist_id/name PARAMLIST);
8. Types of Canvases (Stacked/Content Difference)
(i) Content Canvas (Default Canvas) [A content canvas is the required on each window you create]
(ii) Stack Canvas [you can display more then one stack canvas in a window at the same time]
(iii) Tab Type Window [In Tab canvas that have tab pages and have one or more then tab page]
(iv) Toolbar Canvas [A toolbar canvas often is used to create Toolbar Windows. There are two type of Toolbar window.
a. Horizontal Toolbar Canvas: - Horizontal Toolbar canvases are displayed at the top of the window, Just Under the Main Menu Bar.
b. Vertical Toolbar Canvas: - While vertical Toolbar are displayed along the Left Edge of the window.
9. Object Groups (Use)
An object group is a container for a group of objects. You define an object group when you want to package related objects so you can copy or subclass them in another module.
Object groups provide a way to bundle objects into higher-level building blocks that can be used in other parts of an application and in subsequent development projects. For example, you might build an appointment scheduler in a form and then decide to make it available from other forms in your applications. The scheduler would probably be built from several types of objects, including a window and canvas, blocks, and items that display dates and appointments, and triggers that contain the logic for scheduling and other functionality. If you packaged these objects into an object group, you could then copy them to any number of other forms in one simple operation.
You can create object groups in form and menu modules. Once you create an object group, you can add and remove objects to it as desired.
10. Various Block Co-ordination Properties
The various Block Coordination Properties are
a) Immediate
Default Setting. The Detail records are shown when the Master Record are shown.
b) Deffered with Auto Query
Oracle Forms defer fetching the detail records until the operator navigates to the detail block.
c) Deferred with No Auto Query
The operator must navigate to the detail block and explicitly execute a query
11. How to attach same LOV to multiple items
We can use the same LOV for 2 columns by passing the return values in global
values and using the global values in the code.
12. Static & Dynamic LOV
The static LOV contains the predetermined values while the dynamic LOV contains values that come at run time
13. Property Class & Visual Attributes (Difference)
A property class is a named object that contains a list of properties and their settings. Once you create a property class you can base other objects on it. An object based on a property class can inherit the setting of any property in the class that makes sense for that object. Property class inheritance is an instance of subclassing. Conceptually, you can consider a property class as a universal subclassing parent. Property classes are separate objects, and, as such, can be copied between modules as needed. Perhaps more importantly, property classes can be subclassed in any number of modules. Property class inheritance is a powerful feature that allows you to quickly define objects that conform to your own interface and functionality standards. Property classes also allow you to make global changes to applications quickly. By simply changing the definition of a property class, you can change the definition of all objects that inherit properties from that class.
Visual attributes are the font, color, and pattern properties that you set for form and menu objects that appear in your application's interface. Visual attributes can include the following properties: Font properties, Color and pattern properties. Every interface object has a Visual Attribute Group property that determines how the object's individual visual attribute settings (Font Size, Foreground Color, etc.) are derived
Named visual attributes define only font, color, and pattern attributes; property classes can contain these and any other properties.
You can change the appearance of objects at runtime by changing the named visual attribute programmatically; property class assignment cannot be changed programmatically.
When an object is inheriting from both a property class and a named visual attribute, the named visual attribute settings take precedence, and any visual attribute properties in the class are ignored.
Property Class has triggers and Visual Attributes don’t have same.
14. Model/Modeless Windows (Difference)
A window can be either modeless or modal. A modal window (often a dialog) requires the end user to respond before continuing to work in the current application. A modeless window requires no such response.
You can display multiple modeless windows at the same time, and end users can navigate freely among them. Modeless windows remain displayed until they are dismissed by the end user or hidden programmatically. You can set the Hide on Exit property for a modeless window to specify whether it should remain displayed when the end user navigates to another window. Modal windows are usually used as dialogs, and have restricted functionality compared to modeless windows. On some platforms, modal windows are "always-on-top" windows that cannot be layered behind modeless windows. The Hide on Exit property does not apply to modal windows. Modal dialog windows cannot have scroll bars
15. Alerts Styles
An alert is a modal window that displays a message notifying the operator of some application condition. There are three styles of alerts: Stop, Caution, and Note. Each style denotes a different level of message severity. Message severity is represented visually by a unique icon that displays in the alert window.
0 comments:
Post a Comment