We develop a small business database application with PowerBuilder. Part of the functionality includes scheduling appointments (a secretary schedules an appointment for her doctor via our application). The scheduling appointment is stored as a database record and viewable/editable via our application. Pretty standard stuff.
We would like the ability to have these appointments tied to the doctor's own calendar, notably his mobile phone calendar. I'm looking for ideas (sample PBuilder code would be great, but .NET code would also work) on how to do this. My ideas were:
1) Use the Google Calendar API to link each appointment made to the doctor's personal Google Calendar. If he then syncs his mobile phone to Google Calendar, he'll have it synched. The disadvantage to this is that we'd have to store the doctor's Google user/password in our database app, and that they'd have to have a Google account, as it would only work with that.
2) Sending an iCalendar e-mail every time an appointment is made to the doctor's e-mail address. Is this a good way to do it? They'd have to first use an e-mail client (such as Outlook or iPhone e-mail) to accept the e-mail appointment request. And if they used Outlook to accept it, they'd have to have their mobile phone synced to their Exchange server, etc. Is there any sample PB/.NET code on doing this? I know how to send out e-mails, but I would like help on sending an iCalendar e-mail.
Any feedback/suggestions (such as a good website/tool to visit/check on) is welcome.