Home » Developer & Programmer » Forms » Default value for a form item
Default value for a form item [message #80928] Sat, 14 December 2002 16:48 Go to next message
Robin Myaing
Messages: 1
Registered: December 2002
Junior Member
I have a Text item named Date on a form I have built. Please explain to me how I can have Sysdate as the default value for that item. I tried typing in Sysdate in the Default property for the item but I get an error message saying Format must be DD-MON-YY.
Re: Default value for a form item [message #80929 is a reply to message #80928] Sun, 15 December 2002 03:57 Go to previous messageGo to next message
Michal Straczynski
Messages: 4
Registered: June 2002
Junior Member
Have you set "Definition->Default Value Type" property to "Database Function Call"? If not, that should help.
Re: Default value for a form item [message #80954 is a reply to message #80928] Tue, 17 December 2002 05:09 Go to previous message
Piyush Balan
Messages: 26
Registered: December 2002
Junior Member
Hi Robin,
This is a common problem faced in Forms. for setting the default values as the system date, u have 2 options :
1. set the current date as the current date of the client which is running the form
2. set the current date as the current date of the Database.

for value 1, use $$DATETIME$$ in Default Value or Initial Value.
for value 2, use $$DBDATE$$ in Default Value or Initial Value.

this is the correct method to capture sysdate in Forms.

let me know if this doesn't help

Regards,
Piyush Balan
Consultant
Comsoft Pte Ltd
Singapore
Previous Topic: Oracle Outbound Help
Next Topic: Re: tutorial for oracle developer2000
Goto Forum:
  


Current Time: Sat Apr 20 11:17:48 CDT 2024