delphi - Update existing Google calendar entry using TMS Cloud component -


i use following code add new entry google calendar using tms cloud component have new entries in table in database , added ok able update entry also, cant find about. demo supplied controls has option, don't want load entries calendar , select 1 edit there. want save sort of entryid given , use update. devexpress has option lets sync table , outlook calendar (works nice) think should possible tms

the question is: how id of calendar entry when creating can store record in table , use afterwards updating?

var   ci: tgcalendaritem; begin       advgcalendar.app.key    := settings.google.key;       advgcalendar.app.secret := settings.google.secret;       advgcalendar.logging := true;        if not advgcalendar.testtokens         advgcalendar.refreshaccess;        if not advgcalendar.testtokens         advgcalendar.doauth       else         connected := true;        ci := advgcalendar.items.add;        advgcalendar.getcalendars();       ci.calendarid := settings.google.calendar;       if ci.calendarid <> ''         begin           ci.location     := cilocation;           ci.description  := cidescription;           ci.summary      := cisummary;           ci.starttime    := encodedatetime(yearof(startdate), monthof(startdate), dayof(startdate), hourof(starttime), minuteof(starttime), 0, 0);           ci.endtime      := encodedatetime(yearof(stopdate), monthof(stopdate), dayof(stopdate), hourof(stoptime), minuteof(stoptime), 0, 0);           ci.isallday     := false;           ci.visibility   := viprivate;           advgcalendar.add(ci);         end; end; 

the problem related fact there error in version using of component id not returned ok.

upgrading newer version fixed working.


Comments

Popular posts from this blog

java - How to Configure JAXRS and Spring With Annotations -

visual studio - TFS will not accept changes I've made to a Java project -

php - Create image in codeigniter on the fly -