how to make a calendar! [message #81585] |
Tue, 04 March 2003 08:44  |
kim
Messages: 116 Registered: December 2001
|
Senior Member |
|
|
Hello,
I have read the messages below about making a calendar but am still unsure of how to go about doing this. I have the STNDRD20.OLB file, but I don't know where to put it or what to do with it! What comes next? I am new at this, if someone could give me a hand I would appreciate it. Thanks!
|
|
|
|
|
|
|
Re: how to make a calendar! [message #81621 is a reply to message #81616] |
Thu, 06 March 2003 09:27   |
CreativePresence
Messages: 73 Registered: December 2002
|
Member |
|
|
Hi Kim, As requested...
You will need to files
1) stndrd.olb
2) calendar.pll
******************
1) From within forms open the file stndrd.old via file, open. This will add the item "standards" to the object navigator/object libraries section. This will now always appear in the object navigator.
2) Next open theform that you wish the calendar to be on.
3) Expand the "library tabs" section of the "standards" item in "object libraries" to reveal 5 items, inc. "components". Right click on "components" & select "object libraries" from the menu that appears.
4) From the box that appears select the component "calendar" and drag it to the form you wish it to be added to within the "object navigator". It will then ask whether you want to "sub-class" or "copy". Select copy, or the form with the calendar will not work on PC's that does not have the standards item added. Copying will add all required bits you need for the calendar.
5) Next open the "calendar.pll" file & this will add a "calendar" item to the "pl/sql libraries" section on the "object navigator". Select the "program unit" section and drag it up to the "programs unit" sectino of your form. This will add 2 items to the "programs unit" section (date_lov - package spec & date lov -package body).
6) Next on my form i added a button to call the calender with a "when_button_pressed" trigger & added this code.
********************************
DATE_LOV.GET_DATE
(NVL(:BLOCK.ITEM, SYSDATE),
'BLOCK.ITEM',
200, 100,
'SELECT DATE',
'OK','CANCEL',
TRUE, FALSE, FALSE);
********************************
The block.item is where you want the date to be inserted into via the calendar user interaction.
I hope this helps, if you have any probs, just ask and i will try & help.
Stu (UK)
|
|
|
|
|
|
|
|
|
|
|
|
|
Re: how to make a calendar! [message #161886 is a reply to message #81585] |
Tue, 07 March 2006 13:38   |
M0nst3r
Messages: 38 Registered: February 2006 Location: Wherever the Money Is
|
Member |
|
|
I believe the date_choosen error message is the result of a bug in the standard calendar object import.
Add a program unit procedure named DATE_CHOOSEN and copy this code into it:
PROCEDURE date_choosen IS
BEGIN
copy(to_char(date_lov.current_lov_date,'dd-mon-yyyy'), date_lov.date_lov_return_item);
go_item(date_lov.date_lov_return_item);
if date_lov.lov_auto_skip = TRUE then
next_item;
end if;
END;
Parameters for the Date_LOV.Get_Date are as follows:
date_lov.get_date(initial date,
return block.item,
window x position,
window y position,
window title,
ok button label,
cancel button label,
highlight weekend days,
autoconfirm selection,
autoskip after selection);
|
|
|
|
|
|
Re: how to make a calendar! [message #472507 is a reply to message #471599] |
Sat, 21 August 2010 03:42   |
vivek04540
Messages: 4 Registered: August 2010
|
Junior Member |
|
|
hi stuart,
need some help setting a calendar to a field in a standard form without using a template builder.The above told steps by kim does it work for standard forms .Cause i have tried till step 3 but as told in step 4 i cannot drage the calendar component to my form can u please help me with that
this is vivek
[Updated on: Sat, 21 August 2010 03:43] Report message to a moderator
|
|
|
|
|
|
|
|