i want to add a calendar to my form
i found a JCalendar.jar file
i put it in forms\java folder
modified archive_init line in forms\server\formsweb.cfg
in the form
The implementation class of the Bean Item
oracle.forms.fd.JCalendar
WHEN-CUSTOM-ITEM-EVENT of the Bean Item
DECLARE
eventName varchar2(30) := :system.custom_item_event;
eventValues ParamList;
eventValueType number;
LC$Date varchar2(256);
LC$Day varchar2(256);
LC$Month varchar2(256);
LC$Year varchar2(256);
BEGIN
IF (eventName='CALENDAR_EVENT') THEN
eventValues := get_parameter_list(:system.custom_item_event_parameters);
get_parameter_attr(eventValues,'CALENDAR_EVENT_DATE',eventValueType, LC$Date);
get_parameter_attr(eventValues,'CALENDAR_EVENT_DAY',eventValueType, LC$Day);
get_parameter_attr(eventValues,'CALENDAR_EVENT_MONTH',eventValueType, LC$Month);
get_parameter_attr(eventValues,'CALENDAR_EVENT_YEAR',eventValueType, LC$Year);
Clear_Message;
Message('Selected date:'|| LC$Date || '(' || LC$Day||'/'||LC$Month||'/'||LC$Year || ')');
Copy(LC$Date,Name_in('GLOBAL.ITEM'));
Synchronize ;
END IF;
END;
and there is a button, the calendar should show when this button is pressed
WHEN-BUTTON-PRESSED
Copy('BL.TEXTITEM','GLOBAL.ITEM');
Set_Custom_Property('BL.BEAN',1, 'SHOW_CALENDAR','50,50');
and there is a text item where the selected date should appear
what did i miss???? or is there an other way to do the same job????????please some help
[EDITED by LF: applied [code] tags]
[Updated on: Tue, 18 October 2011 00:09] by Moderator
Report message to a moderator