Home » Developer & Programmer » Forms » Date into two items in one time
Date into two items in one time [message #85281] Mon, 14 June 2004 00:21 Go to next message
Solve
Messages: 38
Registered: December 2002
Member
Hello, I would like to ask if someonje could help me to insert a Date from calendar object at once into two date items?

 

Solveiga
Re: Date into two items in one time [message #85286 is a reply to message #85281] Mon, 14 June 2004 00:52 Go to previous messageGo to next message
Himanshu
Messages: 457
Registered: December 2001
Senior Member
Hi,
Make use of Copy value from property of Item.

Regards
Himanshu
Re: Date into two items in one time [message #85298 is a reply to message #85286] Mon, 14 June 2004 05:52 Go to previous messageGo to next message
Solveiga
Messages: 36
Registered: March 2003
Member
And there is no way to select a date from calendar to the two items at omce?

Solveiga
Re: Date into two items in one time [message #85308 is a reply to message #85298] Tue, 15 June 2004 01:49 Go to previous messageGo to next message
nsk
Messages: 16
Registered: June 2004
Junior Member
u can try this one

select sysdate,sysdate int var1,var2 from dual;
Re: Date into two items in one time [message #85321 is a reply to message #85308] Tue, 15 June 2004 22:00 Go to previous messageGo to next message
Solveiga
Messages: 36
Registered: March 2003
Member
I have two items in my form:

myDate1 and myDate2 and I want to select the same date from calendar into these items at once.
Mabe somebody could help me with a calendar's procedures?
It means I have to use date_lov.get_date twice? And I "get_date" in key_listval trigger of these items

Date_lov.get_date is looks like that:

date_lov.get_date(sysdate,
'MyDate1', -- return block.item
240, -- window x position
60, -- window y position
'Date', -- window title
'OK', -- ok button label
'CANCEL', -- cancel button label
TRUE, -- highlight weekend days
FALSE, -- autoconfirm selection
FALSE); -- autoskip after selection

date_lov.get_date(sysdate,
'MyDate2', -- return block.item
240, -- window x position
60, -- window y position
'Date', -- window title
'OK', -- ok button label
'CANCEL', -- cancel button label
TRUE, -- highlight weekend days
FALSE, -- autoconfirm selection
FALSE); -- autoskip after selection

There else I can call this date_lov.get_date? Could someone help me?
Re: Date into two items in one time [message #85323 is a reply to message #85321] Tue, 15 June 2004 22:22 Go to previous messageGo to next message
nsk
Messages: 16
Registered: June 2004
Junior Member
In trigger where u r calling date_lov.get_date include
Mydate2 := Mydate1;
after successful data if show(lov) success;
Re: Date into two items in one time [message #85331 is a reply to message #85323] Wed, 16 June 2004 05:31 Go to previous message
Solveiga
Messages: 36
Registered: March 2003
Member
I am calling date_lov.get_date in key-listval,
but if I put MyDate1 := MyDate2 it doesn't work, because that date from calendar is assignet after button OK clicked in the calendar :(

Solveiga
Previous Topic: re : coulmn name to item-id in non database block
Next Topic: Function key problem,Urgentttttt.
Goto Forum:
  


Current Time: Mon May 06 23:46:23 CDT 2024