Form Customization:: AOL User References
Form Customization:: AOL User References
Page No: 1
AOL User References
15. Later in AOL u create a form for that form.
Navigation -> Application -> Form.
16. And create a form function to that form.
Navigation -> Application -> Function.
17. Finally attach that form function to the menu
which was already assigned to the
responsibity(Specific Application).
Navigation -> Application -> Menu.
Page No: 2
AOL User References
11 For the blocks which don’t have who columns
disable the about menu using the following when-
new-block-instance block level trigger with style
property of the trigger override
app_standard.event(’WHEN–NEW–BLOCK–INSTANCE’);
app_special.enable(’ABOUT’, PROPERTY_OFF);
12 set the who columns class properties of date
columns to CREATION_OR_LAST_UPDATE_DATE and rest of
the columns to TEXT_ITEM class property.
Form properties
Page No: 3
AOL User References
use the ROOT_WINDOW, because it interferes with the
proper functioning of the Toolbar and other
standard Oracle Applications objects.
Blocks
Most standard Oracle Forms functions, such as
Save, Next Block, and
Clear All, do not apply in a dialog block.
Although the Oracle
Applications menu and toolbar may not be
accessible, Oracle Forms
functions can still be invoked from the
keyboard unless you disable
them. You should disable all KEY– triggers for
the block by coding a
KEY–OTHERS trigger that calls
APP_EXCEPTION.DISABLED, which
will cause a beep when the user attempts a
disabled function. You then
specifically enable some functions for the
block by coding the following
additional KEY– triggers:
Page No: 4
AOL User References
If the multi–record block supports drilldown to
one or more detail
blocks, create a drilldown indicator as
follows: Create a text item in the
multi–record block. Name it
’DRILLDOWN_RECORD_INDICATOR’,
and apply the property class
’DRILLDOWN_RECORD_INDICATOR.’
Add an item–level WHEN–NEW–ITEM–INSTANCE
trigger (Execution
Style: Override) to the drilldown indicator
item. Call the same logic as
the button that corresponds to the drilldown
block. For Combination
blocks, this should move to the Detail window.
In other blocks, if there
are one or more child blocks, drilldown moves
you to one of them.
Master–Detail
Page No: 5
AOL User References
master record. Always set this property to
True.
Prevent Deletion of Detail Records
Because your form should be built using
underlying views instead of
actual tables, you should not allow the normal
Oracle Forms deletion of
detail records. Instead, set the Master Deletes
property of the relation
to Isolated. Then, delete your detail records
as part of your
Delete_Row procedure in the table handler for
the master table.
Other Behaviors
When a detail block is in a different window
than its master, but
the detail window is modal, the detail block
should only query
Page No: 6
AOL User References
Do not code anything specific to windows
being iconified, even
though iconifying a window that contains a
master block may
make it difficult to operate with a detail
block.
Do not use Master–Detail cascade delete
because it is an
inefficient operation on the client side. It
also generates triggers
with hardcoded messages.
Data Type
For date fields, use the DATE data type unless the
user needs to enter
time. Use the DATETIME data type to require the
user to enter time.
To default a form field to the current date without
the time, use
$$DBDATE$$. To default a form field to the current
date and time, use
$$DBDATETIME$$.
Date Field Maximum Length
Create date fields as 11 characters without time,
or 20 characters with
Page No: 7
AOL User References
time. You do not need to specify a format mask in
the item. Oracle Forms
defaults the format correctly for each language
from the environment
variable NLS_DATE_FORMAT.
Oracle Applications currently requires an
NLS_DATE_FORMAT
setting of DD–MON–RR. Forms date fields that are 11
or 20 characters
long will display a four–character year (DD–MON–
RRRR)
automatically.
Poplists
Limits
The maximum width of a list element is 30
characters. Your longest
Page No: 8
AOL User References
value in English for a 30–character–wide poplist
should be no longer
than 23 characters to account for expansion of
values for some
languages.
Dynamic List Elements
You may need to populate a list at runtime. If so,
be aware of the
following issues:
Never use a list item if you expect more than
fifteen elements
Do not change a list on a per–record basis
Make sure each populated list has a value that
matches the
default value. You can dynamically change the
default by
specifying it as a reference to another field, as
opposed to a
hardcoded value.
Check Box
Property Class
Apply the CHECKBOX property class to each normal
check box (used
for data entry). Apply the CHECKBOX_COORDINATION
property
class to each coordination check box.
Buttons
Property Class
Textual buttons use the BUTTON property class.
Iconic buttons use the
Page No: 9
AOL User References
BUTTON_ICONIC property class and typically appear
only in the
toolbar or in folder forms.
Warning: Never override the height specified by the
BUTTON
property class.
Enter–Query Mode
Most buttons do not apply in Enter–Query mode.
Users cannot leave
the current record while in this mode. You do not
need to explicitly
disable a button while in Enter–Query mode; instead
set the trigger
property ”Fire in Enter–Query mode” for the WHEN–
BUTTON–
PRESSED trigger to FALSE.
Call APP_STANDARD.APP_VALIDATE
Buttons should call APP_STANDARD.APP_VALIDATE and
pass a
scope before performing their action. This ensures
that your records
are valid before performing an action, and that the
button acts on the
expected block.
Page No: 10
AOL User References
Lists of Values (LOVs)
Use Lists of Values to provide validation on a text
item when you
expect to have more than fifteen values.
Auto Refresh
If the values displayed by the LOV are static
during a session and the number of rows is not
excessive, turn Auto Refresh off (False) to cache
the LOV values for the session. Caching the values
avoids database
hits and network round trips for subsequent
invocations of the LOV, and eliminating unnecessary
round trips is a key factor in producing a product
that can run on a wide area network. However, the
caching
consumes memory that is not recovered until the
form is closed.
Long List
If an LOV may show more than one hundred rows, then
the user must be prompted to reduce the list of
valid values first (Long List: True).Never have
Long List set to True, and Auto Refresh set to
False, on an
LOV. This combination would cause only the reduced
set of rows to be cached if the user enters
something in the reduction criteria window.With
Auto Refresh off, there is no way of returning to
the full set of
rows. Typically it is not wise to cache an LOV that
returns more than 100 rows.
Dependent Fields
An LOV on a dependent field should use the value in
the master field to reduce the list.
For example, if NAME is dependent on TYPE, the
entry LOV for NAME’s WHERE clause would include the
condition:
WHERE TYPE = :MY_BLOCK.TYPE
Page No: 11
AOL User References
LOVs in ENTER–QUERY Mode
LOVs in ENTER–QUERY mode should be used sparingly,
as Query
Find is the preferred method for a user to locate
records.
You should only code them where they dramatically
improve the
usability of ENTER–QUERY mode, and you expect this
mode to be
used regularly despite Query Find.
Implementation
To enable LOVs in ENTER–QUERY mode on an item,
create an
item–level KEY–LISTVAL trigger as follows:
Trigger: KEY–LISTVAL
IF (:SYSTEM.MODE != ’ENTER–QUERY’) THEN
LIST_VALUES;
ELSE SHOW_LOV(’query lov’);
END IF;
Alerts
Oracle Applications does not use the native Oracle
Forms alert object.
The Oracle Application Object Library Message
Dictionary feature is
used instead, as it provides full translation
capabilities and handles text
larger than 80 characters.
Page No: 12
AOL User References
Editors
Do not write special code for the editor. Rely on
native Oracle Forms
behavior.
Step 1
Create a button to navigate to the detail block.
Step 2
Create a coordination check box in a control block
in the detail window
to specify the user’s preference of immediate or
deferred coordination
Page No: 13
AOL User References
when the window is open. The check box should have
the
CHECKBOX_COORDINATION property class, which
provides a value
of ”IMMEDIATE” when checked and ”DEFERRED” when
unchecked.
Step 3
Create your item handler procedures as follows:
PACKAGE BODY CONTR IS
APP_WINDOW.SET_COORDINATION(EVENT,:control.CO_ORD,'
DEPT_EMP');
END IF;
END CO_ORD_PACK;
END;
Step 4
CLOSE WINDOW
if (wnd = 'DEPTWIN') then
app_window.close_first_window;
RETURN;
Page No: 14
AOL User References
elsif (wnd = 'EMPWIN') then
--defer relations
--close related windows
APP_WINDOW.SET_COORDINATION('WHEN-WINDOW-
CLOSED',:CONTROL.CO_ORD,'DEPT_EMP');
Step 5
Call your field and event handler procedures in:
Trigger: WHEN–BUTTON–PRESSED on control.EMPLOYEE
control.EMP_PACK(’WHEN–BUTTON–PRESSED’);
Trigger: KEY–NXTBLK on ORDER:
control.EMP_PACK(’WHEN–BUTTON–PRESSED’);
Trigger: WHEN–CHECKBOX–CHANGED on control.CO_ORD:
control.CO_ORD_PACK(’WHEN–CHECKBOX–CHANGED’);
Calendar: Properties
1 In order to show the calendar in the date field
Raise Item level key-listval Trigger and type
the code
Calendar.show;
2 in order to disable the date ranges then in the
item level key-listval trigger write the >>
Page No: 15
AOL User References
syntax >>calendar.setup(<30 char identifying
name>, <low_date>,
3 <high_date>); >>> following code>>
4 calendar.setup('kamalakar', '02-MAY-00','10-MAY-
00');
5 calendar.show;
Adding 30 Days
Enter a date in demand_date
Call this in the hiredate key-listval to add 30
days to demand and assign to hiredate field >>
calendar.show(:EMP.demand_date + 30);
Menus
If the menu item is not controlled by the default
menu control, use any
trigger (typically PRE–BLOCK or WHEN–NEW–BLOCK–
INSTANCE),
adding the code:
app_special.enable( ’ the menu item’,
PROPERTY_OFF);
Turn the menu item back on when you leave
(typically POST–BLOCK)
by calling:
app_special.enable(’ the menu item’, PROPERTY_ON);
Include the full name of the menu item in this
call, for example:
app_special.enable(’EDIT.CLEAR_FIELD’,
PROPERTY_OFF);
Page No: 16
AOL User References
If the menu item is controlled by the default menu
control, use the
trigger listed (either WHEN–NEW–BLOCK–INSTANCE,
WHEN–NEW–RECORD–INSTANCE, or WHEN-NEW-ITEM-
INSTANCE). Make the trigger style ”Override” and
add the following
code:
app_standard.event(’ TRIGGER_NAME’);
app_special.enable(’ Menu_item’, PROPERTY_OFF);
Page No: 17
AOL User References
to add to the menu and the Toolbar. To add ’Book
Order’ as the first
entry on the Special menu and as an icon on the
Toolbar, such that they
are only available in the ’Header’ block of a form,
do the following:
Modify the form level PRE-FORM trigger:
PRE-FORM
app_special.instantiate(’SPECIAL1’, ’&Book Order’,
’bkord’);
Step 2
Add a form–level PRE-BLOCK trigger:
PRE-BLOCK
app_special.enable(’SPECIAL1’,PROPERTY_OFF);
Step 3
Add a block level PRE-BLOCK trigger to the block in
which you want
to enable your special menu entries:
PRE-BLOCK in HEADER block
app_special.enable(’SPECIAL1’,PROPERTY_ON);
Step 4
Page No: 18
AOL User References
Add a block level SPECIAL1 user–named trigger that
contains code to
actually perform your ’Book Order’ function. It
executes when the
user chooses this menu entry.
Example 1
APP_SPECIAL.INSTANTIATE(’SPECIAL3’,’&Book Order’,
’POBKORD’,
TRUE);
query_find window
Page No: 19
AOL User References
3.Write the block level (pre-query)trigger
in master block not in the control block
IF :parameter.G_query_find='TRUE' THEN
/IF u want specific range of values to
query /
APP_FIND.QUERY_RANGE(:LOWDATE,:HIGHDATE,'EM
P.HIREDATE');
END IF;
/if u want specific values\
create parameter
if :parameter.g_query_find = 'TRUE' then
:emp.ename := :parameter.empname;
:p:parameter.g_query_find := 'FALSE';
end if;
Page No: 20
AOL User References
need to specify the following parameters in the
given order.
HEADER_ID This is the transaction_header_id that
you want the
worker to process. If no header id is passed the
worker will assign itself.
Page No: 21
AOL User References
10 g_canvas_name VARCHAR2(30) := null;
11PROCEDURE lines_regions(event varchar2) IS
12target_canvas_name VARCHAR2(30);
13curr_canvas_name VARCHAR2(30) :=
14get_item_property(:system.cursor_item,ITEM_CANVAS
);
15BEGIN
16IF (event = 'WHEN-NEW-ITEM-INSTANCE') THEN
17IF ((curr_canvas_name in ('DEPT', 'DETAIL')) AND
18(curr_canvas_name != :control.lines_regions))
THEN
19:control.lines_regions := curr_canvas_name;
20g_canvas_name := curr_canvas_name;
21END IF;
22ELSIF (event = 'WHEN-LIST-CHANGED') THEN
23target_canvas_name := :control.lines_regions;
24IF (:SYSTEM.MODE = 'ENTER-QUERY') THEN
25null;
26ELSE
27IF (:EMP.EMPNO is null) THEN
28FND_MESSAGE.SET_NAME('APP',
'EMPNO_ENTER_ITEM_FIRST');
29FND_MESSAGE.ERROR;
30:control.lines_regions := g_canvas_name;
31RAISE FORM_TRIGGER_FAILURE;
32END IF;
33END IF;
34IF curr_canvas_name in ('DEPT','DETAIL') THEN
35hide_view(curr_canvas_name);
36END IF;
37show_view(target_canvas_name);
IF (:system.cursor_block = 'EMP') THEN
iF (target_canvas_name = 'DEPT') THEN
38go_item('EMP.SAL');
ELSIF (target_canvas_name = 'DETAIL') THEN
39go_item('EMP.JOB');
40END IF;
41END IF;
42g_canvas_name := target_canvas_name;
Page No: 22
AOL User References
43ELSE
44fnd_message.debug('Invalid event passed to
control.lines_regions');
45END IF;
46END lines_regions;
47END control;
48
49Call this Procedure in the item handlers in the
list item trigger >when-list-changed
50CONTROL.LINES_REGIONS('WHEN-LIST-CHANGED');
51
52Write a block level trigger on EMP >when-new-
item-instance
53CONTROL.LINES_REGIONS('WHEN-NEW-ITEM-INSTANCE');
54
55Write a block level trigger on EMP >key-menu
56IF
APP_REGION.ALT_REGIONS('CONTROL.LINES_REGIONS')
THEN
57CONTROL.LINES_REGIONS('WHEN-LIST-CHANGED');
58END IF;
59
60In the form level write two triggers>when-new-
form-instance
61GO_BLOCK('EMP');
62GO_BLOCK('CONTROL');
63
64In the form level write two triggers>key-clrfrm
65GO_BLOCK('EMP');
66GO_BLOCK('CONTROL');
All the blocks and the canvas are dependent on the
same EMP Window
Page No: 23
AOL User References
CCID NOT
NULL NUMBER(38) PRIMARY KEY
SEGMENT1
VARCHAR2(40)
SEGMENT2
VARCHAR2(40)
SUMMARY_FLAG VARCHAR2(1)
default ‘Y’ not null
ENABLED_FLAG VARCHAR2(1)
default ‘N’ not null
START_DATE_ACTIVE DATE
END_DATE_ACTIVE DATE
STID NOT NULL
NUMBER(38)
CREATED_BY
NUMBER(15)
CREATION_DATE DATE
LAST_UPDATED_BY NOT NULL
NUMBER(15)
LAST_UPDATE_DATE NOT NULL DATE
LAST_UPDATE_LOGIN NUMBER(15)
Page No: 24
AOL User References
6 REGISTER YOUR TABLES IN AOL(APPLICATION OBJECT
LIBARY).
7 REGISTER YOUR KEY_FLEX TABLE TABLE_TYPE AS
SPECIAL KEYFLEX.
8 Give The Unique id column (CCID),STRUCTURE
COLUMN(STID).SAVE IT
9 U WILL GET ALL THE SEGMENTS1 TO SEGMENTn ENABLED.
10Give the code for flexfield KFX and Dynamic
Insert Feasible YES
11REGISTER ALL THE PRIMARY KEY KEY COLUMNS (CCID)
12CREATE A INDEX ON THE SAME COLUMN (CCID)
13REGISTER CUSTOM TABLE KFEMP AND THE SAME SEQUENCE
AND TABLE TYPE AS TRANSACTION TYPE
14REGISTER YOUR FOREIGN KEY FIELD (CCID)
15CREATE A FORM BASED ON THE CUSTOM TABLE (KFEMP)
16PUT ALL THE (CCID AND STID )COLUMNS IN THE NULL
CANVAS
17ADD TWO NON BASE TABLE COLUMNS AS (KFDESCRIPTION
>>TEXT_ITEM AND DESCRIPTION>DISPLAY ITEM)
18WRITE THE HANDLERS
19KFDESCRIPTION >>> WHEN-NEW-ITEM-INSTANCE
20FND_FLEX.EVENT('WHEN-NEW-ITEM-INSTANCE');
21FND_FLEX.EVENT('KEY-EDIT');
22FORM LEVEL
23>>PRE-QUERY
24FND_FLEX.EVENT('PRE-QUERY');
25>>POST-QUERY
26FND_FLEX.EVENT('POST-QUERY');
27WHEN -NEW-FORM-INSTANCE
28FND_KEY_FLEX.DEFINE(
29BLOCK=>'KFEMP',
30FIELD=>'KFDESCRIPTION', **** KFEMP code
combination will come
31DESCRIPTION=>'DESCRIPTION', *** KFEMP
description will automatically come
32ID=>'CCID',
33APPL_SHORT_NAME=>'INV',
34CODE=>'KFX', **** KEY_FLEX
Page No: 25
AOL User References
35NUM=>'101'); ****DEFAULT
36CALL THIS IN THE FORM LEVEL
PRE-QUERY>>FND_FLEX.EVENT(’PRE–QUERY’);
POST-QUERY>> FND_FLEX.EVENT(’POST–QUERY’);
PRE-INSERT>> FND_FLEX.EVENT(’PRE–INSERT’);
PRE-UPDATE >>FND_FLEX.EVENT(’PRE–UPDATE’);
WHEN-VALIDATE–RECORD>>FND_FLEX.EVENT(’WHEN–
VALIDATE–
RECORD’);
WHEN-NEW–ITEM–INSTANCE >>FND_FLEX.EVENT(’WHEN–
NEW–ITEM–INSTANCE’);
WHEN-VALIDATE–ITEM>>FND_FLEX.EVENT(’WHEN–
VALIDATE–ITEM’);
Page No: 26
AOL User References
ATTRIBUTE5
VARCHAR2(150)
MY_CONTEXT VARCHAR2(30)
CREATED_BY
NUMBER(15)
CREATION_DATE DATE
LAST_UPDATED_BY NOT NULL
NUMBER(15)
LAST_UPDATE_DATE NOT NULL DATE
LAST_UPDATE_LOGIN NUMBER(15)
Page No: 27
AOL User References
be disabled. Add one or more context field names
and enable them.
In the Segments window, attach the
attributes1 to 5(created in table) and the Value
Sets to the segments.
PACKAGE ORDER_DETAIL IS
PROCEDURE DESCFF (EVENT VARCHAR2);
END;
FND_DESCR_FLEX.DEFINE(BLOCK=>’ORDER_DETAIL’,
FIELD=>’DESCFF’,APPL_SHORT_NAME=>’FND’,
DESC_FLEX_NAME=>’MYDESC’);
END IF;
END DESCFF;
END;
Page No: 28
AOL User References
12. Register the form, Define form function, attach
to a menu and run.
STEPS:
Page No: 29
AOL User References
8.Create an item called SWITCHER or FOLDER_SWITCHER
in the FOLDER block with class property as
SWITCHER. This item contains a
WHEN_NEW_ITEM_INSTANCE trigger with the following
code :
app_folder_move
_cursor('1');
synchronize;
Buttons:
a.) Order_by1
(Class will be Folder_orderby).
b.) Order_by2 ( - do
-).
Display Item:
a.)Folder_title ( Class is Dynamic
Title).
Text Item :
a.)Folder Dummy (Class is Folder Dummy).
Page No: 30
AOL User References
WHEN_WINDOW_RESIZED – uncomment the
code and fill in the
app_folder.event call.
KEY_CLRFRM - uncomment the
app_folder.event call.
PRE_FORM – enter your form name, your
application shortname,
author name
and also your first window name.
WHEN_NEW_FORM_INSTANCE - Fill in the
parameters for the
a
pp_folder.define_folder_block procedure.
b.) Block Level Triggers :
KEY_NEXT_ITEM – write the following code
:
app_f
older.event('KEY-NEXT-ITEM');
KEY-PREV-ITEM - write the following code
:
app_folder
.event('KEY-PREV-ITEM');
POST_BLOCK – write the
following code :
app_folder.event('POST-
BLOCK');
PRE_BLOCK - write the
following code :
app_folder.event('PRE-BLOCK');
PRE-QUERY - write the
following code :
app_folder.event('PRE-
QUERY');
Page No: 31
AOL User References
WHEN_NEW_BLOCK_INSTANCE -
write the following code :
DECLARE
block_already_initialized BOOLEAN :=
FALSE;
BEGIN
app_folder.event('WHEN-NEW-BLOCK-
INSTANCE');
IF ( (Get_Block_Property('FOLDER',
Status) = 'NEW')
AND (NOT
block_already_initialized)
) THEN
execute_trigger('QUERY_FIND');
END IF;
block_already_initialized := TRUE;
END;
PROCEDURE key_exeqry IS
BEGIN
app_folder.event('KEY-EXEQRY');
Page No: 32
AOL User References
-- PRIVATE VARIABLES
-- Holds the where clause of the last
query on the folder
-- block
last_where VARCHAR2(3000) := null;
--
-- PUBLIC FUNCTIONS
--
PROCEDURE requery IS
BEGIN
-- If this is the first query, then do
a blind query
IF (last_where IS NULL) THEN
Go_Block('FOLDER');
Execute_Query;
RETURN;
END IF;
Page No: 33
AOL User References
-- so that pre-query does not modify
the query
Go_Block('FOLDER');
doing_requery_flag := TRUE;
Execute_Query;
doing_requery_flag := FALSE;
app_debug.setpoint('FOLDER_REQUERY.r
equery');
RAISE;
END requery;
PROCEDURE save IS
pos NUMBER;
query_text VARCHAR2(3000);
BEGIN
-- Remove everything before the where
clause
pos :=
instr(upper(:System.Last_Query), 'WHERE')
+ 5;
query_text :=
substr(:System.Last_Query, pos);
Page No: 34
AOL User References
-- Remove the order by, if there is
one.
IF
(length(Get_Block_Property('FOLDER',
Order_By))
> 0
) THEN
pos := instr(upper(query_text),
'ORDER BY', -1) - 1;
query_text := substr(query_text, 1,
pos);
END IF;
last_where := query_text;
END save;
PROCEDURE init IS
BEGIN
null;
END init;
BEGIN
folder_default_where
:= Get_Block_Property('FOLDER',
Default_Where);
doing_requery_flag := FALSE;
END folder_requery;
Page No: 35
AOL User References
CODING ZOOM
Page No: 36
AOL User References
EXECUTE ad_dd.register_column('SQLGL', 'EMP',
'ENAME',2, 'VARCHAR2',10, 'Y', 'N');
EXECUTE ad_dd.register_column('SQLGL', 'EMP',
'JOB',3, 'VARCHAR2',9, 'Y', 'N');
EXECUTE ad_dd.register_column('SQLGL', 'EMP',
'MGR',4, 'NUMBER',4, 'Y', 'N');
STEP3:
CREATE TWO FORMS BY COPYING TEMPLATE.FMB
1) FORM_NAME =ZDEPT | BLOCK_NAME =DEPT
2) FORM_NAME =ZEMP | BLOCK_NAME =EMP
a)CREATE A PARAMETER IN DEPT BLOCK as
DEPTNO
b)change the DEFAULT VALUE property of
ZDEPT(DEPTNO)
SET IT TO :PARAMETER.DEPTNO
c)change the default value property of
dept(block level)
SET IT TO : WHERE (:parameter.DEPTNO is
null or DEPT.DEPTNO LIKE
Page No: 37
AOL User References
:parameter.DEPTNO)
STEP4:
OPEN LIBRARY CUSTOM.PLL
WHICH IS IN
C:APPS10\AU10\RES\PLSQL\CUSTOM.PLL.
MODIFY IT AS :
form_name varchar2(30) :=
name_in('system.current_form');
block_name varchar2(30) :=
name_in('system.cursor_block');
Page No: 38
AOL User References
begin
if (form_name = 'ZDEPT' and block_name =
'DEPT') then
return TRUE;
else
return FALSE;
end if;
end zoom_available;
-------------------------------------------
-------------------------
--------------------------------------------
------------------------
Page No: 39
AOL User References
fnd_function.execute(FUNCTION_NAME=>'Z
EMP',
OPEN_FLAG=>'Y',
SESSION_FLAG=>'Y'
,
OTHER_PARAMS=>'DE
PTNO='||param_to_pass1);
end if;
elsif (event_name = 'OE_LINES_PRICING')
then
null;
elsif (event_name = 'WHEN-VALIDATE-
RECORD') then
if (form_name = 'APXVENDR') then
if (block_name = 'VENDOR') then
copy(upper(name_in('VENDOR.NAME')),
'VENDOR.NAME');
end if;
end if;
else
null;
end if;
null;
end event;
end custom;
STEP5:
SAVE CUSTOM.PLL AND GENERATE IT FROM FORMS
GENERATE
[x] COMPILE ALL
NOTE :WHEN GENERATING LIBRARY CLOSE ALL
FORMS WHICH MIGHT USE THE LIBRARY INCLUDING
ORACLE APPS.
STEP6:
WHEN-NEW-BLOCK-INSTANCE: DEPT
DO_KEY('EXECUTE_QUERY');
Page No: 40
AOL User References
WHEN-NEW-BLOCK-INSTANCE: EMP
CLEAR_FORM;
EXECUTE_QUERY;
STEP7:
SAVE ,COMPILE AND GENERATE BOTH THE FORMS
IN APPS, REGISTER FORMS & DEFINE FORM FUNCTION
ATTACH IT TO A MENU .
NOTE:DO NOT GIVE NAVIGATOR PROMPT FOR
DESTINATION FORM ZEMP
---------------------------------------------------
---------------------------------------------------
------
GLOSSARY
Page No: 41
AOL User References
display the list window, you can type the
first character of the choice you want in the
window. If only one choice begins with the
character you enter,
Page No: 42
AOL User References
business entity can be an account, a customer,
or a part.
Page No: 43
AOL User References
up a list of matching predefined combinations of
segment values to select from.
Page No: 44
AOL User References
involvement from you, or interruption to your
work.
Page No: 45
AOL User References
field prompt describes each field by telling you
what kind of information appears in the field,
or alternatively, what kind of information you
should enter in the field.
Page No: 46
AOL User References
Master-Detail relationship - A master-detail
relationship is an association between two
blocks a master block and its detail block.
When two blocks are linked by a master-detail
relationship, the detail block displays only
those records that are associated with the
current (master) record in the master block, and
querying between the two blocks is always
coordinated. Master and detail blocks can often
appear in the same window or they can each
appear in separate windows.
Page No: 47
AOL User References
then drag your mouse through the list to the
desired value. Release your mouse button to
choose the value you highlight and display it in
the poplist field. A poplist is also sometimes
known as a list.
Page No: 48
AOL User References
Report Set - A level of authority in an
application. Each responsibility lets you
access a specific set of Oracle Applications
forms, menus, reports, and data to fulfill your
role in an organization. Several users can
share the same responsibility, and a single user
can have multiple responsibilities.
Page No: 49
AOL User References
Segment - A single sub-field within a flexfield.
You define the structure and meaning of
individual segments when customizing a
flexfield.
Page No: 50
AOL User References
Query mode, so you can specify search criteria
for a query; Count indicates how many records
were retrieved or displayed by a query (this
number increases with each new record you access
but does not decrease when you return to a prior
record); the <Insert> indicator or lamp informs
you that the current window is in insert
character mode; and the <List> lamp appears when
a list of values is available for the current
field.
Page No: 51
AOL User References
Windows can also appear embedded in other
windows. You can move a window to a different
location on your screen.
Page No: 52
AOL User References