Next date of sysdate as Initial Value [message #353530] |
Tue, 14 October 2008 02:14 ![Go to next message Go to next message](/forum/theme/orafaq/images/down.png) |
thirubalajiece
Messages: 7 Registered: October 2008 Location: Pudhucherry
|
Junior Member |
|
|
How to set the tomorrows date (sysdate+1) as a initial value for the text item(with date datatype).
I dont want to use triggers for this purpose.
Anybody tried this?
Help me.
|
|
|
|
|
|
|
|
Re: Next date of sysdate as Initial Value [message #354377 is a reply to message #353530] |
Sat, 18 October 2008 04:52 ![Go to previous message Go to previous message](/forum/theme/orafaq/images/up.png) ![Go to next message Go to next message](/forum/theme/orafaq/images/down.png) |
*munnabhai*
Messages: 157 Registered: March 2008 Location: Riyadh
|
Senior Member |
|
|
Dear you asked in your very first post
Quote: | I dont want to use triggers for this purpose
|
if youi are using this for anyother purpose or to calculate u have to use trigger. and i didnt get your logic for what you are using this?
Regards
|
|
|
Re: Next date of sysdate as Initial Value [message #354378 is a reply to message #353530] |
Sat, 18 October 2008 04:56 ![Go to previous message Go to previous message](/forum/theme/orafaq/images/up.png) ![Go to next message Go to next message](/forum/theme/orafaq/images/down.png) |
*munnabhai*
Messages: 157 Registered: March 2008 Location: Riyadh
|
Senior Member |
|
|
Dear you asked in your very first post
Quote: | I dont want to use triggers for this purpose
|
if youi are using this for anyother purpose or to calculate u have to use trigger. and i didnt get your logic for what you are using this?
Regards
|
|
|
Re: Next date of sysdate as Initial Value [message #354506 is a reply to message #354378] |
Mon, 20 October 2008 01:23 ![Go to previous message Go to previous message](/forum/theme/orafaq/images/up.png) ![Go to next message Go to next message](/forum/theme/orafaq/images/down.png) |
thirubalajiece
Messages: 7 Registered: October 2008 Location: Pudhucherry
|
Junior Member |
|
|
In one of my flow i have "Issue date" and "Maturity Date".
I want the initial value for Issue date as sysdate and Maturity Date as Tommorows date(or sysdate+15). If the user needs he can able to change the two dates. I can get this by triggers. But is there any option to achive it by using the initial value itself.
Regards,
Balaji.
|
|
|
Re: Next date of sysdate as Initial Value [message #354585 is a reply to message #354506] |
Mon, 20 October 2008 08:04 ![Go to previous message Go to previous message](/forum/theme/orafaq/images/up.png) |
![](/forum/images/custom_avatars/67693.png) |
saadatahmad
Messages: 452 Registered: March 2005 Location: Germany/Paderborn
|
Senior Member |
![saadatahmad](/forum/theme/orafaq/images/yahoo.png)
|
|
hi,
Quote: |
But i cant able to update the calculated value. If i give initial value i can use the initial value or i can change it at run time.
Is there any option to solve it.
|
If this is the only reason that you want to use initial value property then why don't you simply write in When-Create-Record trigger?
:BLOCK_NAME.IssueDate := sysdate;
:BLOCK_NAME.MaturityDate := sysdate + 15; --sysdate+1 whatever
You can change the values at runtime also. This trigger will be on your block where your items reside.
regards,
Saadat Ahmad
[Updated on: Mon, 20 October 2008 08:14] Report message to a moderator
|
|
|