Hello, I want create new appointement in calendar.I have see a function createappt in evite zimlet. But I want add participant's and choose calendar(I think change this.eviteFolderID)... How can I process?
Evite | Zimbra :: Gallery
Regards... RémiCode:/** * Creates soap request to create an appointment in Evite-calendar folder * * @param {string} title the appointment subject * @param {string} url the Evite url * @param {date} date the date of the appointment * @param {string} time the time of the appointment */ EviteZimlet.prototype._createAppt = function(title, url, date, time) { if (!this.userID || !this.eviteFolderID) { appCtxt.getAppController().setStatusMsg(this.getMessage("EviteZimlet_NotInitialized"), ZmStatusView.LEVEL_CRITICAL); return; } var soapDoc = AjxSoapDoc.create("CreateAppointmentRequest", "urn:zimbraMail"); var m = soapDoc.set("m"); m.setAttribute("l", this.eviteFolderID); var node = soapDoc.set("inv", null, m); node.setAttribute("method", "REQUEST"); node.setAttribute("type", "event"); node.setAttribute("fb", "B"); node.setAttribute("transp", "O"); node.setAttribute("status", "CONF"); node.setAttribute("allDay", "1"); node.setAttribute("name", title); node.setAttribute("loc", ""); var subnode = soapDoc.set("s", null, node); subnode.setAttribute("d", date); subnode = soapDoc.set("e", null, node); subnode.setAttribute("d", date); subnode = soapDoc.set("or", null, node); subnode.setAttribute("a", this._getUsername()); node = soapDoc.set("mp", null, m); node.setAttribute("ct", "text/plain"); subnode = soapDoc.set("content", url, node); node = soapDoc.set("su", title, m); var command = new ZmCsfeCommand(); var resp = command.invoke({soapDoc: soapDoc}); };


LinkBack URL
About LinkBacks

