Tuesday, July 23, 2013

How to attach a calendar to the form


How to attach a calendar to Oracle Form:-

It is one of the method which is widely used to attach calendar to a form.

For this you need certain components like :-
  1. CALENDAR.olb download CALENDAR.olb
  2. Start the Forms Builder and create a new Forms Module.
  3. Open the CALENDAR.olb and double-click on the CALENDAR node in the Object Libraries.
4. From the CALENDAR object library pane, click on CALENDAR and drag and drop it on the Object Groups node of your new form. 
5. Once copied, you can see the following objects in the Forms Object Navigator . 




               6.   Create a new Data Block .Ensure this block appears first in the list before the     DATE_CONTROL_BLOCK and DATE_BUTTON_BLOCK blocks.   
                 7. Add a date field and a button to it.

  

\
8..       Write the following code to call the calendar in the when-button-pressed trigger of button.






9.   Now compile and run the form.

No comments:

Post a Comment