Is the RRCALENDAR_TODAYSREMINDER.SKIN loaded by a button or just an internal command witin the plugin?
the screen is loaded with from within the event timer inside the plugin.
John i've added the HOLD command as parameter to the same command the click works on. So basically instead of RRCALENDAR_ROW1COLUMN1 the hold function will be RRCALENDAR_ROW1COLUMN1;EVENT (for an event add, appointment for appointment add of course). This will bring up the new event screen with the date prepopulated.
I looked into the api and really want some advice on reoccuring events. Here's basically the code on how to handle it.
My question is, how elaborate should this be inside or RR? Should I add just frequency and leave out start and end dates, or go all out? And if i should go all out, work me up a method of controlling all of this mess within the RR interface (basically draw it out for me in commands/labels/inds, it'll help me organize it programatically)Code:EventEntry myEntry = new EventEntry(); String recurData = "DTSTART;VALUE=DATE:20070501\r\n" + "DTEND;VALUE=DATE:20070502\r\n" + "RRULE:FREQ=WEEKLY;BYDAY=Tu;UNTIL=20070904\r\n"; Recurrence recurrence = new Recurrence(); recurrence.Value = recurData; myEntry.Recurrence = recurrence;
Or make it a pi fired event and the skin author can use the exectbl to use either the load or menu for the screen. This is what I did with one of the pop ups in dfxvoice, as to keep it flexible
I was thinking along the lines of press and hold the date, and a small pop-up with, say, 3 buttons on it. [Add Event] [Add Appointment] [Cancel]
The appointment and event command buttons would bring up the correct skin accordingly, as with an "event" no start end end time is needed.
As for the multi-day events:
Look for the starting date "DTSTART;VALUE=DATE:20070501\r\n"
Look for the ending date: "DTEND;VALUE=DATE:20070502\r\n"
and parse them out:
BeginningDate = 20070501
EndingDate = 20070502
Then you can do a calculation on how many days are between the 2 of them.
DaysBetween = DateDiff(EndingDate - BeginningDate)
If DaysBetween >1 then
For MakeEventCounter = 0 to DaysBetween
Copy to EndingDate
This is NOT perfect code, just a guideline, as I have no idea the variable names, functions and such you are calling on your code
I think that would be the easiest, and will show the icons on the calendar, and the same information for each of those days.