DATE and Time disappear when Enter query [message #243889] |
Sun, 10 June 2007 17:29 |
alvintiow
Messages: 5 Registered: June 2007
|
Junior Member |
|
|
Hi, I got a data Block BANK_STAFF and a text TODAYS_DATE.
I would like to display the DATE permanently (my data type is DATE and initial value is $$DATE$$), I tried many times, but when I enter new query, the date just disappear.
Method 1.
I created when-new-form-instance trigger and tried the following query:
begin
:BANK_STAFF.TODAYS_DATE := to_char(sysdate, 'DD-MON-YY');
end; -->This does not working permanently on my form.
Method 2.
I created a when-timer-expired trigger on form level. and entered
:TODAYS_DATE := to_char(sysdate,'mm/dd/yyyy HH:MI:SS');
in my TODAYS_DATE I used when-new-form-instance trigger and entered the following query:
DECLARE
my_timer_id TIMER;
BEGIN
my_timer_id := CREATE_TIMER('my_TIMER', 1000, REPEAT);
IF ID_NULL(my_timer_id) THEN
MESSAGE('Timer Not Created');
RAISE FORM_TRIGGER_FAILURE;
END IF;
END;
Both of the solution not work fine for me, can anyone help me to solve this?
Thanks.
Regards,
Alvin
|
|
|
|
|
|
|
|
|
|