How to create calendar?

hey guys,
i need help from all of you. recently i was creating an application and this application require an event calendar. My problem is how to i create the event calendar? i have think of using HTML to create that calendar but it is quite cumbosome - need to design 12 image map fro every year and this is very ineffective. how to create that calendar in more effective way? for example, i want that calendar use the time zone in our computer and dynamically change the date. furthermore, if the user click on the highlighted date, it will eventually connect to the database and retrive data.
example to illustrate my problem;
let say this month i have 5 events happen on 12, 24, 25,26, and 27. all this date is highlighted. when users click on the highlighted date, the system will actually connect to database and retrive data. when january of 2004 is arrive, the event calendar can automatically change according to the time zone.
please help me....
best regards and cheers
eric

Eric,
Here is some sample code from one of my apps... it's a little messy. It could be optimized in a few places.
It prints out a month view of a calendar, and I've marked where I put some logic that queries the database and prints out some events if they are scheduled for that particular day of the month.
<%@ page import="java.util.Calendar" %>
<%@ page import="java.util.Date" %>
<%@ page import="java.util.GregorianCalendar" %>
<%@ page import="java.sql.*" %>
<%@ page import="java.util.*" %>
<form name="selectdate">
<%
     Calendar calendar = new GregorianCalendar();
     Date trialTime = new Date();
     calendar.setTime(trialTime);
     Calendar calendar2 = new GregorianCalendar();
     calendar2.set(calendar.get(Calendar.YEAR), calendar.get(Calendar.MONTH), 1);
     int today = calendar.get(Calendar.DAY_OF_MONTH);
     int currentYear = calendar.get(Calendar.YEAR);
     String Month = "";
     int daynum= 1;
     int column = 1;
     int row = 1;
     int year = 0;
     int month = 0;
     int prev_month = 0;
     int next_month = 0;
     int prev_year = 0;
     int next_year = 0;
     String m = request.getParameter("month");
     if (m==null) {
          month = calendar2.get(Calendar.MONTH);
     } else {
          month = Integer.parseInt(m);
          calendar2.set(calendar2.get(Calendar.YEAR),month,1);
     String y = request.getParameter("year");
     if (y==null) {
          year = calendar2.get(Calendar.YEAR);
     } else {
          year = Integer.parseInt(y);
          calendar2.set(year,calendar2.get(Calendar.MONTH),1);
     if (month - 1 < 0) {
          prev_month = 11;
          prev_year = year - 1;
     } else {
          prev_month = month - 1;
          prev_year = year;
     if (month + 1 > 11) {
          next_month = 0;
          next_year = year + 1;
     } else {
          next_month = month + 1;
          next_year = year;
     int firstDay = calendar2.get(Calendar.DAY_OF_WEEK);
     switch (month) {
          case Calendar.JANUARY:           Month = "January";break;
          case Calendar.FEBRUARY:      Month = "February";break;
          case Calendar.MARCH:           Month = "March";break;
          case Calendar.APRIL:           Month = "April";break;
          case Calendar.MAY:                Month = "May";break;
          case Calendar.JUNE:           Month = "June";break;
          case Calendar.JULY:           Month = "July";break;
          case Calendar.AUGUST:           Month = "August";break;
          case Calendar.SEPTEMBER:      Month = "September";break;
          case Calendar.OCTOBER:           Month = "October";break;
          case Calendar.NOVEMBER:      Month = "November";break;
          case Calendar.DECEMBER:      Month = "December";break;
%>
     <table border="0" cellpadding="0" cellspacing="0" width="95%" align="LEFT">
          <tr>
          <td colspan="4" valign="top">
               <table border="0" cellpadding="0" cellspacing="0" width="100%">
                    <tr>
                         <td colspan="7" align=center>
                         <a href="index.jsp?year=<%= prev_year %>&month=<%= prev_month %>"><<</a>
                         ��
                         <b><%= Month %> <%= year %></b>
                         ��
                         <a href="index.jsp?year=<%= next_year %>&month=<%= next_month %>">>></a>
                         </td>
                    </tr>
                    <tr>
                         <td align=center class="large_calendar_header">Sun</td>
                    <td align=center class="large_calendar_header">Mon</td>
                    <td align=center class="large_calendar_header">Tue</td>
                    <td align=center class="large_calendar_header">Wed</td>
                    <td align=center class="large_calendar_header">Thu</td>
                    <td align=center class="large_calendar_header">Fri</td>
                    <td align=center class="large_calendar_header">Sat</td>
                    </tr>
                    <tr>
<%
     int maxdays = calendar2.getActualMaximum(Calendar.DAY_OF_MONTH);
     String max = String.valueOf(maxdays);
     while (daynum<=maxdays) {
          if (row==1) {
               for (int j=1; j<firstDay; j++) {
%>
                         <td align=center class="large_calendar_blank">�</td>
<%
                    column++;
     while ((column<8)&&(daynum<=maxdays)) {
%>
          <td valign="top" align="left" width="14.28%" height="75" class="large_calendar">
               <font style="font-size: 10px"
<%
               if ((calendar.get(Calendar.MONTH))==(calendar2.get(Calendar.MONTH)) &&
                    (calendar.get(Calendar.YEAR))==(calendar2.get(Calendar.YEAR)) &&
                    (calendar.get(Calendar.DAY_OF_MONTH))==daynum) {
%>
                                   color="#ff0000"
<%
%>
                              ><%= daynum %></font><br>
<%
               String query_date = calendar.get(Calendar.YEAR) + "-" +
                                        (calendar.get(Calendar.MONTH) + 1) + "-" +
                                        daynum;
// You could insert logic here to conditionally display events from a db
%>
                         </td>
<%
               column++;
               daynum++;
          if (column!=8) {
          for (int j=column; j<8; j++) {
%>
                         <td class="large_calendar_blank">�</td>
<%
%>
                    </tr>
<%
     if (daynum<maxdays) {
%>
                    <tr>
<%
column=1;
row++;
%>
</table>
</td>
</tr>
</table>
</form>

Similar Messages

  • PALM Z22 HOW TO CREATE CALENDAR EVENTS THEN UPLOAD THEM TO THE PALM Z22

    Hello, I would like to know if anyone can advise me on how to create calendar events in say, excel, and then upload them to my Palm Z22.  The reason I want to create them in excel is so that I can also update the file information to my cell phone as well.
    Thanks for your assistance.....
    Tony
    Post relates to: Palm Z22

    Hello Tony,
    If you want to use Excel, then I would suggest that you export your calendar spreadsheet as a comma separated values (.csv) file and then import that data into the Calendar application in Palm Desktop.  Then Hotsync your Palm.
    Alan G

  • How to create calendar type sheet?

    Hi,
    Does anybody knows how to create a calendar like sheet?
    I think there is a function that automatically put the dates into the header but I cannot find it.
    I really don't want to write down each day from now to next year...
    Thanks to anybody that can help me.

    I found it,
    Just type the first 2 date and select both of them, Click on the little white button that appears at the bottom right and drag it down... All the following dates come.

  • How to create  calendar in web dynpro abap

    Hi ,
    how to create  calendra in web dynpro abap.
    Thanks in advance.
    Regards, Chetan

    hi,
    For calender control, there is Date Navigator under "complex tab". You can just click and drag it and provide calender control.
    One more easy way is to create a input field. In the context, create a node and attribute of type "D"(which means DATE). And bind the context to your input field under "values" in property window. While running the program, you will see an calender attached to lt on the input field.
    Regards,
    Jithin

  • How to create Calendar Control using Flash Builder

    I want to implement a calendar control in Flex using flash builder 4.5.1. For this, I am thinking to extend the DateChooser Control.
    Can any please guide me in the correct way to get my  calendar control.
    In that calendar control I want to add some small images/text in each day cell with a tool tip information and with different colors for each day cell of the calendar control.
    plz help me.
    regards
    vijay

    Connect to PHP in FB4 is used when you have a PHP Class and you want to use that in FB, for example Employee.php and it has a Employee class and various methods in that like create, update, get, delete.
    However, if you have exposed your functionality in PHP as a HTTP URL (i.e. it is not a class), then you should be using HTTPService from the data menu.
    So if your file is login.php and is accessible as a URL, then using the HTTPService and enter the URL.
    Does this help?
    -Sunil

  • How to create Calendar Control..?

    I want to implement a calendar control in Flex using flash builder 4.5.1. For this, I am thinking to extend the DateChooser Control.
    Can any please guide me in the correct way to get my  calendar control.
    In that calendar control I want to add some small images/text in each day cell with a tool tip information and with different colors for each day cell of the calendar control.
    plz help me.
    regards
    vijay

    Try it as
      oForm.DataSources.UserDataSources.Add("Date", SAPbouiCOM.BoDataType.dt_DATE)
                oItem = oFormKontrolaZak.Items.Item("x")
                Dim edt As SAPbouiCOM.EditText
                edt = oItem.Specific
                edt.DataBind.SetBound(True, "", "Date")
                edt.Value = ""

  • Create Calendar in  Swing

    Hi,
    Can you teach me how to create calendar in Swing.I would like to have two portion,up portion is the year and month which can let me choose which year and which month and down portion is the calendar that shows year and month which i have selected from up portion. When i click on calendar, i would like to to do some actionperformed.
    Thanks.
    Regards,
    marcalena

    To create a month spinner
        String[] months= {" Jan "," Feb "," Mar "," Apr "," May "," June "," July "," Aug ",
                          " Sep "," Oct "," Nov "," Dec "};
        JSpinner monthSpinner = new JSpinner(new SpinnerListModel(months));You can do something simular for years or get more creative if you wish.
    Cheers
    DB

  • How to create a group calendar?

    Hello,
    i am sorry but this is one more question on wiki-group-calendars.
    *In short:*
    I am not able to create a group calendar with the wiki frontend. the calendar that is created with a wiki is owned by the admin of the wiki. So it is always a personal calendar that cannot be shared in iCal.
    LONG:
    I want to create a group calendar that is viewed and edited through iCal.app and the web service. Apple´s "wiki deployment" guide says on page 57:
    +"The web calendar allows you to easily schedule events for yourself or your group. ...+
    +There are *two types of web calendars: personal and group*. You can send and receive event invitations through the personal calendar but not through the group calendar. Also, *while anyone in a group can create or edit events in a group calendar*, you can edit only events in your own personal calendar or event invitations you send to other people.+
    +The web calendar uses iCal Server to store events and invitations. ..."+
    But there is not mentioned how to create a group calendar. The calendar created with the wiki web-frontend belongs to the admin of that particular wiki. This is why the calendar data ist stored in folder named with the UUID of the wiki admin. Also the alias "http://server.fqdn:8008/principals/groups/mygroupname/" which i provided in iCal turns into ..._uids_UUID-of-the-wiki-admin and only the wiki-admin can access this calendar in iCal.app.
    My research on this topic reveals that there were in issue that should be resolved in 10.6.4 (that is running on our Server). So, again, how to create a group calendar?
    Thanks, Philipp.
    10.6.4 OSX Server
    10.6.x Clients

    farmer tan wrote:
    you need to go to the wiki page and add the wiki's there and then in the setting of the wiki is where you set permissions and services such as calendar, blog, and podcast you can also set all permissions for the wiki in the settings tab
    fyi none of my groups were available unless i logged into the wiki as the Directory Admin not Server Admin
    migrated from 10.5.7 to 10.6
    Message was edited by: farmer tan
    Could you be more specific farmer tan, please?
    You said "you need to go to the wiki page and add the wiki's there...." What is the "wiki page" you mention? Is that some place I go to via the browser or the Server Admin tool?
    I went to http://ical.mysite.com/ical/ and logged in as the Directory Administrator but didn't see anything resembling what you described.
    Thanks in advance for any help you can provide.

  • How to create a year view calendar

    Hi All,
    I have a requirement that the report has to display all the months that is January through December as a yearly view calendar.
    Please click here on this below link to see the yearly calendar view style
    [http://www.timeanddate.com/calendar/custom.html?year=2008&country=1&hcl=1&hol=]
    Please if anybody have any input or ideas are welcome.
    Question is is it possible to display this kind yearly calendar style report.
    Thank you,
    Ashok

    This may help you but not sure it's for an entire year....(what you're asking is a big endeavour in CR)....
    Found this by searching the NOTES for "yearly calendar"...
    1198886 - How to create a calendar style report in Crystal Reports XI
    Symptom
    How do you create a calendar style report in Crystal Reports XI?
    Resolution
    NOTE
    This solution involves advanced report design concepts. The user should be familiar with creating formulas, grouping, formatting objects, formatting sections, creating subreports and linking them.
    The first part of this solution involves creating the report and the first group level:
    Before creating the report, create a Microsoft Excel spreadsheet that contains a column called "date" with each day of the year in date format.
    After identifying your data source and tables, create a new report.
    Add the date table from the Excel spreadsheet to the report.
    Insert a group based on the date field. In the dialog This section will be printed for, click For each month.
    Select the Use customized group name based on a formula option and enter this formula (substituting the Excel table and field name for Sheet1_.date if yours is different.):
    Monthname(Month({Sheet1_.date}))
    Insert a new Page Header section.
    Drag the group name field to the Page Header_a section.
    Open the Section Expert, select the Group Header #1 section, and select Suppress.
    In the Section Expert, click the Group Footer #1 section, and select New Page After. In its conditional formula button, enter this formula:
    Not OnLastRecord
    In the main report, create a formula called {@Weeknumber} that contains the following syntax:
    DatePart("ww",{Sheet1_.date})
    In the second section of this solution, you will be creating a second group level:
    Insert a group (Group #2), based on the {@Weeknumber} formula.
    In the Section Expert, select the Group Footer #2 section, and select Suppress.
    Create a formula for each day of the week. Name them {@Sun}, {@Mon}, and so on, using the following syntax:
    If DayOfWeek({Sheet1_.date}) = 1 then Day({sheet1_.date})
    In this formula, the number 1 represents Sunday. For the rest of the six formulas, change the number to 2 for Monday, 3 for Tuesday, 4 for Wednesday, 5 for Thursday, 6 for Friday and 7 for Saturday.
    Add these seven formulas to the Details section. Arrange them in a row, spacing them equally along the page, starting with the formula for Sunday.
    For each of the formulas, insert a Maximum summary function.
    Drag these seven summary fields to the Group Header #2 section.
    Drag the lower boundary of the header down until it is the size that you want the square for the calendar days to be.
    Suppress the Report Header, Details, Page Footer, and Report Footer sections.
    Right-click and format each of the summary fields. In the Number tab click Customize and select Suppress if Zero.
    Draw a box over Page Header_b and extend this down to the bottom of the Group Header #2 section. Then draw vertical lines from the top of the box to the bottom to divide the days, and draw a horizontal line along the top of Group Header #2 to divide the weeks.
    For both the box and the vertical lines, use the Format Editor to select Extend to Bottom of Section when Printing.
    Position the seven summary fields from Group Header #2 where you would like them to be in the day boxes. In Page Header_b, arrange the column labels ('Sun', 'Mon', and so on) so that they are centered above each square.
    The final section will guide you through the Subreport creation part of this solution. Create seven subreports, one for each day of the week. Begin with the subreport for Sunday:
    Create a subreport called "Sun". Select the data source for the data that your calendar data will display.
    Add the data field(s) to the Details section of the subreport that you want to appear in the calendar squares.
    Suppress the remaining sections.
    Place the subreport in the "Sunday" square of the Group Header #2 of the main report. Adjust its size to fit the square.
    In the subreport, create a formula called {@WeekNumber} with the following syntax:
    DatePart("ww",{Appointments.Appointment Date})
    In the Select Expert click show formula and add this syntax:
    Year({Sheet_1.date}) = 2007 and DayOfWeek({Sheet1_.date}) = 1
    In this formula, 2007 is the year of your calendar and 1 is for Sunday.
    Link the subreport to the main report using the {@Weeknumber} formula from each.
    In the main report, right-click the subreport and click Format Subreport.
    In the Common tab, enter this syntax into the conditional formula button next to the Suppress check box:
    Maximum({@Sun},{@Weeknumber}) = 0
    Repeat steps 1 to 8 for the other days of the week, ensuring that you substitute the correct values for the corresponding day of the week.
    Keywords
    template schedule yearly weekly daily appointment appointments business days , 3001298

  • How to create a calendar activity in accessibility mode ?

    I didn't find any way to create a calendar activity in accessibility mode. Since it shows blank list of days in calendar component for a month.
    It seems to be a bug in ADF calendar component. Please suggest if there is any alternate way to support this.
    Thank you so much.

    Timo,
    From a  reference doc of previous version of jdev/adf, it said :
    http://www.oracle.com/technetwork/cn/java/calendar-091799.html
    Expand the Data Controls accordion and drag the collection that represents the view object for the activity created above (FodCalEventVO) and drop it as a Calendar.
    But in Jdev 12c.--cannot find the Create Calendar choice.
    In jdev 12c can drag and drop a calendar component from the component palette, but do not now how to bind it to view objects.
    Thanks.
    BAO

  • How to create a Z calendar?

    Hi Gurus,
    I want to create a new calendar (Z) to use it for a specific process chain. So, the question is: How can I create a new calendar??
    Many thanks in advance!
    Regards,
    Jordi

    Hi Jordi,
    please refer the blog mentioned below for creation of a new factory calender:
    /people/adisomeswararao.athikinasetti/blog/2010/01/25/how-to-create-a-new-factory-calendar-in-bi-system
    You can use transaction : SCAL  for creation of new calender.
    Regards,
    Umesh.

  • How to create new scope for SharePoint calendar?

    How to create new scope for SharePoint calendar?
    I have a calendar list to which I want to create following scopes-
    Annual View
    Half Year 1 (Jan-June)
    Half Year 2 (Jul-Dec)
    Quarter 1 (Jan-Mar)
    Quarter 2 (Apr-Jun)
    Quarter 3 (Jul-Sep)
    Quarter 4 (Oct-Dec)
    How this can be created. Any help appriciated. Thanks.

    Hi Pratima,
    Can you please see below link and code snippet for how to
     format date in gridview.
    http://www.aspdotnet-suresh.com/2011/05/how-to-set-date-format-in-gridview.html
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head runat="server">
    <title>Gridvew Date format</title>
    </head>
    <body>
    <form id="form1" runat="server">
    <div>
    <asp:GridView runat="server" ID="gvdetails" DataSourceID="dsdetails" AllowPaging="true" AllowSorting="true" AutoGenerateColumns="false">
    <RowStyle BackColor="#EFF3FB" />
    <FooterStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
    <PagerStyle BackColor="#2461BF" ForeColor="White" HorizontalAlign="Center" />
    <HeaderStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
    <AlternatingRowStyle BackColor="White" />
    <Columns>
    <asp:BoundField DataField="Date1" HeaderText="Date1" HtmlEncode="false" DataFormatString="{0:s}" />
    <asp:BoundField DataField="Date2" HeaderText="Date2" HtmlEncode="false" DataFormatString="{0:D}" />
    <asp:BoundField DataField="Date3" HeaderText="Date3" HtmlEncode="false" DataFormatString="{0:m}" />
    <asp:BoundField DataField="Date4" HeaderText="Date4" HtmlEncode="false" DataFormatString="{0:d}" />
    <asp:BoundField DataField="Total" HeaderText="Total" HtmlEncode="false" DataFormatString="{0:C2}" />
    </Columns>
    </asp:GridView>
    <asp:SqlDataSource ID="dsdetails" runat="server" SelectCommand="select * from DateFormat" ConnectionString="<%$ConnectionStrings:dbconnection %>"></asp:SqlDataSource>
    </div>
    </form>
    </body>
    </html>
    Hope this will help you.
    Regards
    Soni K

  • How to create a calendar layout in jdev 12c?

    In jdev  12c,
    When drag and drop a data control into jsf page, in the popup menu->Create, there is no Create a calendar choice.
    How to create a calendar layout in jdev 12c?
    Thanks.

    Timo,
    From a  reference doc of previous version of jdev/adf, it said :
    http://www.oracle.com/technetwork/cn/java/calendar-091799.html
    Expand the Data Controls accordion and drag the collection that represents the view object for the activity created above (FodCalEventVO) and drop it as a Calendar.
    But in Jdev 12c.--cannot find the Create Calendar choice.
    In jdev 12c can drag and drop a calendar component from the component palette, but do not now how to bind it to view objects.
    Thanks.
    BAO

  • Can any one give me hint how to create(dsplay) calendar in jsp 1.2

    can any one give me hint how to create(dsplay) calendar in jsp 1.2
    friends
    i wants to display calendar (not the date) in tabular way please give me hint how to create it

    Hi,
    i would just add my question cos it looks similar , how can i add calendar of the whole year and let the user browse and select it
    thanX in advance

  • How to create a calendar for two years in GL

    how to create a calendar for two years in GL

    Hi,
    - Login into Oracle EBS and select a responsiblity with GL Superuser drants (e.g. General Ledger Super User)
    - Navigate to Setup + Financials + Calendars and open the GUI Accounting (Navigation for R12)
    - Query the used calendard (used from jour Set of Books/ Ledger via the GUI
    - Enter for each Period (= Period Type 13, 16, 18,...) one Record, have a look to the existing data, used the same logic.
    In the GUI, defined the calendar for 2 Years
    Dirk

Maybe you are looking for