Date and datetime fields should enable the List lamp. When the user invokes List on these fields, the form opens the Calendar window.

 

SOP

1. 選擇要設定的Item Property

2. 設定Item Data Type = Date or Datetime

image

3. List of Values 選擇”Enable_List_Lamp”

image 

Date fields should use the ENABLE_LIST_LAMP LOV

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.]

 

4. New Trigger in this item : KEY_LISTVAL

image

Each date field within a form needs to have the following code:

[Trigger Content]

Trigger: KEY-LISTVAL:
calendar.show([first_date]);
 

By default, the Calendar shows the month of the value in the date field (if a value exists) upon first opening. If no specific date is supplied, the Calendar shows the current month.

Do not pass the current field into CALENDAR.SHOW as a parameter, as this forces validation of the field. The current field is used as a default. Generally, the code in KEY-LISTVAL should be:

calendar.show;

image

5. Preview Result

image

image

 

簡易教學,提供大家參考

創作者介紹
創作者 SomebabyTina 的頭像
SomebabyTina

Oracle ERP學習經驗分享

SomebabyTina 發表在 痞客邦 留言(1) 人氣()


留言列表 (1)

發表留言
  • jason560210
  • 請問 forms 6i item如何應用日期calendar
  • Hello,

    上面就是應用方式呀?
    您的問題是.....

    SomebabyTina 於 2011/01/17 15:53 回覆