Calendar Problem [message #182451] |
Sat, 15 July 2006 00:28 |
qadeerahmed
Messages: 63 Registered: July 2006 Location: Pakistan
|
Member |
|
|
Hi!
What is happening in my scenario is that, I've 2 Text Fields, Say 'Day' & 'Date'. When Button_Pressed, Calendar is Called, And it Returns the Date In its Return_Item i.e.DateIn Specific Format as 'Thursday-16-06-2006'.(Day-dd-mm-yyyy)
But I Want The Day (i.e. Thursday)to be returned into Separate Text Field named 'Day'.
Day Should be returned to Day Field And Only Date Should Be returned To Date Field, Whenever I select From Calendar.
Is It Possible or There is some way to do that?
Regards
Qadeer Ahmed.
|
|
|
|
|
|
Re: Calendar Problem [message #182540 is a reply to message #182518] |
Sun, 16 July 2006 15:17 |
qadeerahmed
Messages: 63 Registered: July 2006 Location: Pakistan
|
Member |
|
|
David,
How ???
Return date is based on a program unit, and i've written procedure where date is returned to text item in When_Button_Pressed Trigger,
Program Unit Contains the Date Format.
Actually i'm using Calendar.pll
Regards
[Updated on: Sun, 16 July 2006 15:22] Report message to a moderator
|
|
|
Re: Calendar Problem [message #182542 is a reply to message #182540] |
Sun, 16 July 2006 18:27 |
|
djmartin
Messages: 10181 Registered: March 2005 Location: Surges Bay TAS Australia
|
Senior Member Account Moderator |
|
|
Next time please post the code that you are using.
Assign the returned value to ANOTHER field using the assignment statement, that is, ':='.
:blk.itm2 := :blk.itm1;
:blk.itm3 := :blk.itm2; Now you have the same data in three fields. Just put different formats on each field.
David
[Updated on: Sun, 16 July 2006 18:28] Report message to a moderator
|
|
|
Re: Calendar Problem [message #182692 is a reply to message #182542] |
Mon, 17 July 2006 10:14 |
qadeerahmed
Messages: 63 Registered: July 2006 Location: Pakistan
|
Member |
|
|
DATE_LOV.GET_DATE(SYSDATE, 'BLOCK3.d1', 176,138, 'ROL ON DATE',
'OK', 'CANCEL', TRUE, FALSE, TRUE);
This is the code written when button pressed trigger.
DATE_LOV is the package in Calendar.pll which is not editable.
GET_DATE is the Subprogram of the Package Spec.
Now, How can i make changes, specified by you?? it gives error.
Regards
|
|
|
|
Re: Calendar Problem [message #182964 is a reply to message #182802] |
Wed, 19 July 2006 00:00 |
|
djmartin
Messages: 10181 Registered: March 2005 Location: Surges Bay TAS Australia
|
Senior Member Account Moderator |
|
|
Other than the synchronize, that's what I thought I said.
Your code:DATE_LOV.GET_DATE(SYSDATE, 'BLOCK3.d1', 176,138, 'ROL ON DATE', 'OK', 'CANCEL', TRUE, FALSE, TRUE);
My code:DATE_LOV.GET_DATE(SYSDATE, 'BLOCK3.d1', 176,138, 'ROL ON DATE', 'OK', 'CANCEL', TRUE, FALSE, TRUE);
:block3.d2 := :block3.d1;
Alternatively, synchronize 'block3.id2' to block3.d1'.
David
|
|
|
|
Re: Calendar Problem [message #183214 is a reply to message #183173] |
Thu, 20 July 2006 00:48 |
qadeerahmed
Messages: 63 Registered: July 2006 Location: Pakistan
|
Member |
|
|
Hi,
Now i want to do enable the calendar entries for specific days.
e.g i want to disable all the other days except from date 10 to 19 of the month.
Is there any way to solve this?
Thanks
Regards!
|
|
|
|
|
Re: Calendar Problem [message #183811 is a reply to message #183760] |
Mon, 24 July 2006 01:02 |
qadeerahmed
Messages: 63 Registered: July 2006 Location: Pakistan
|
Member |
|
|
Hi,
Saadat, I'm always used to work by myself first, then i post my query. I did my work around but not succesfull.
Anyways, Thanks For your Help and Comments.
Its done.
Thank You
Regards
Qadeer Ahmed
|
|
|