EBS form 中LOV的建立及引數傳遞和Template中標準Calendar的使用
效果:
1 LOV的建立及引數傳遞
Record group query:
LOV column mapping:
LOV中每個column的值跟據mapping賦值給block中相應的item
2 Query_Find中引數傳遞
通過trigger PRE_QUERY中的COPY將query_find
Block 中的item的值傳遞給result block中相應的item
--:IF :parameter.G_query_find = TRUE THEN
-- COPY (<find Window field>,<results field>);
-- :parameter.G_query_find := FALSE;
--END IF;
IF :parameter.G_query_find = 'TRUE' THEN
COPY(:QUERY_FIND.EMPNO, 'XX425457_EMPLOYEES.EMPNO');
COPY(:QUERY_FIND.FIRST_NAME, 'XX425457_EMPLOYEES.FIRST_NAME');
COPY(:QUERY_FIND.LAST_NAME, 'XX425457_EMPLOYEES.LAST_NAME');
:parameter.G_query_find := 'FALSE';
END IF;
--APP_STANDARD.EVENT('QUERY_FIND');
--APP_FIND.QUERY_FIND(<results block window>,<Find window>,<Find window block>);
APP_FIND.QUERY_FIND('XX425457_EMPLOYEES', 'QUERY_FIND','QUERY_FIND');
3 Template中標準Calendar的使用
Item Date_Joined 的LOV選擇Template中定義好的LOV TIMEZONES_AND_DATETIME
Validate from List 選擇NO
Date fields should use the ENABLE_LIST_LAMP LOV, which is included in the TEMPLATE form. This setting enables the menu and Toolbar List of Values entries for your date fields. Set '"Validate from List" to No on fields that use this LOV. If you leave "Validate from List" set to Yes, you will see an LOV that has no columns.
建立 Trigger Key-LISTVAL: CALENDAR.SHOW