cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

xMII Calendars in MII12.0

Former Member
0 Likes
279

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

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Likes

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

Former Member
0 Likes

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.

jcgood25
Active Contributor
0 Likes

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

Former Member
0 Likes

Thanks a lot Jeremy! Really helpful.

Paul.