on ‎2008 Nov 10 2:27 PM
Hi All
i am working in MII 12.0. i need to use calendars on the webpage. can i use iCalendars for the same ?
Will that support DayLight savings ??
Can anyone help me with some documents/file to work on calendars in MII ....
Thanks
Amit
Request clarification before answering.
Yes, you can use iCalendar to show calendar in your web-page. You can embed the follwing applet code in your web-page, which will display a calendar:
<APPLET NAME="Calendar" WIDTH="200" HEIGHT="300" CODE="iCalendar" CODEBASE="/XMII/Classes" ARCHIVE="illum8.zip" MAYSCRIPT>
</APPLET>And you can get the selected date from the calendar, using the following API:
document.Calendar.getDateAsString("[some date format]");Also Calendar has another API getDate() which returns the GregorianCalendar object. Since you are working with web-page, getDateAsString() will work bettter for you.
Thanks,
Sara
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Sara,
Could you or somebody else please, give some more information about the "[some date format]" parameter of the getDateAsString() function?
I wasn't able to get a compliant date (as per RFC-822- i.e. [Thu, 13 Nov 2008 13:00:22 -0500]) out of the iCalendar applet, and I need this date format to aggregate data from many plants on different time-zones.
Any help is appreciated.
Paul.
You will have to build the pieces. Note the obvious correlation between:
http://help.sap.com/saphelp_xmii120/helpdata/en/45/cca60593696f74e10000000a1553f6/content.htm
and
http://java.sun.com/j2se/1.4.2/docs/api/java/text/SimpleDateFormat.html
"EEE, dd MMM yyyy HH:mm:ss ZZZZ"
Regards,
Jeremy
| User | Count |
|---|---|
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.