How can I get appointment list from zimlet?
-
- Ambassador
- Posts: 4558
- Joined: Fri Sep 12, 2014 9:52 pm
How can I get appointment list from zimlet?
[quote user="dijichi2"]8080 is often blocked by overzealous isp's and it departments as it's the defacto proxy port and often used for nefarious means, including open proxies. i must say putting cvs on there is a strange thing to do.[/QUOTE]
CVS itself is on a the standard CVS port. 8080 is just the web based view of CVS, so not critical to getting at the CVS data. Time to complain to your network admin .
CVS itself is on a the standard CVS port. 8080 is just the web based view of CVS, so not critical to getting at the CVS data. Time to complain to your network admin .
How can I get appointment list from zimlet?
I watched data.js to know how to get appointment list.
But I couldn't understand how to use...
Can "_newApptListener" function in data.js get calendar controller to get appointment list?
Com_Zimbra_Date.prototype._newApptListener =
function() {
var cc = this._appCtxt.getApp(ZmZimbraMail.CALENDAR_APP).getCalController();
// TODO support ev
cc.newAppointmentHelper(Com_Zimbra_Date._actionContext.date, null, null/*. ev.shiftKey */);
};
It is my source as follows.
---------------------------------------------------------
Com_Zimbra_SForce.prototype.singleClicked = function() {
alert('singleClicked start');
Com_Zimbra_SForce._newApptListener();
alert('singleClicked end');
};
Com_Zimbra_SForce.prototype._newApptListener =
function() {
var cc = this._appCtxt.getApp(ZmZimbraMail.CALENDAR_APP).getCalController();
// TODO support ev
cc.newAppointmentHelper(Com_Zimbra_Date._actionContext.date, null, null/*. ev.shiftKey */);
};
---------------------------------------------
The error occurred by the "var cc = this._appCtxt.getApp..." line.
any ideas?
Thanks&Regards
But I couldn't understand how to use...
Can "_newApptListener" function in data.js get calendar controller to get appointment list?
Com_Zimbra_Date.prototype._newApptListener =
function() {
var cc = this._appCtxt.getApp(ZmZimbraMail.CALENDAR_APP).getCalController();
// TODO support ev
cc.newAppointmentHelper(Com_Zimbra_Date._actionContext.date, null, null/*. ev.shiftKey */);
};
It is my source as follows.
---------------------------------------------------------
Com_Zimbra_SForce.prototype.singleClicked = function() {
alert('singleClicked start');
Com_Zimbra_SForce._newApptListener();
alert('singleClicked end');
};
Com_Zimbra_SForce.prototype._newApptListener =
function() {
var cc = this._appCtxt.getApp(ZmZimbraMail.CALENDAR_APP).getCalController();
// TODO support ev
cc.newAppointmentHelper(Com_Zimbra_Date._actionContext.date, null, null/*. ev.shiftKey */);
};
---------------------------------------------
The error occurred by the "var cc = this._appCtxt.getApp..." line.
any ideas?
Thanks&Regards
-
- Ambassador
- Posts: 4558
- Joined: Fri Sep 12, 2014 9:52 pm
How can I get appointment list from zimlet?
It's DATE.js not DATA.js right? Just want to be 100% sure your looking at the right file.
What is the exact error your getting from your JavaScript console?
What is the exact error your getting from your JavaScript console?
How can I get appointment list from zimlet?
I mistaked.
It is date.js.
I modified my source.
---------------------------------------------------------
/// Called by the Zimbra framework when the SForce panel item was clicked
Com_Zimbra_SForce.prototype.singleClicked = function() {
alert('singleClicked start');
//Com_Zimbra_SForce.prototype._newApptListener();
var cc = this._appCtxt.getApp(ZmZimbraMail.CALENDAR_APP).getCalController();
// TODO support ev
cc.newAppointmentHelper(Com_Zimbra_SForce._actionContext.date, null, null/*. ev.shiftKey */)
alert('singleClicked end');
};
---------------------------------------------------------
JavaScript Console show me error that is "Com_Zimbra_SForce._actionContext has no properties."
It is date.js.
I modified my source.
---------------------------------------------------------
/// Called by the Zimbra framework when the SForce panel item was clicked
Com_Zimbra_SForce.prototype.singleClicked = function() {
alert('singleClicked start');
//Com_Zimbra_SForce.prototype._newApptListener();
var cc = this._appCtxt.getApp(ZmZimbraMail.CALENDAR_APP).getCalController();
// TODO support ev
cc.newAppointmentHelper(Com_Zimbra_SForce._actionContext.date, null, null/*. ev.shiftKey */)
alert('singleClicked end');
};
---------------------------------------------------------
JavaScript Console show me error that is "Com_Zimbra_SForce._actionContext has no properties."
How can I get appointment list from zimlet?
I create com_zimbra_date by using date.js.
The same error occur.
Please watche this zimlet.
com_zimbra_date.zip
The same error occur.
Please watche this zimlet.
com_zimbra_date.zip
-
- Ambassador
- Posts: 4558
- Joined: Fri Sep 12, 2014 9:52 pm
How can I get appointment list from zimlet?
Well you need to pass in the actual date. That function assumes you are hovering over a date, but your use case may be different.
How can I get appointment list from zimlet?
Hello KevinH.
You said following message.
[quote user="14319KevinH"]
If you already in a Zimlet then you can use the native JS calls rather than trying to make another SOAP call. Take a look at the date zimlet. date.js it has code to get a handle to the calendar controller and get various lists of appointments.[/QUOTE]
What should I do?
Could you tell me about it?
You said following message.
[quote user="14319KevinH"]
If you already in a Zimlet then you can use the native JS calls rather than trying to make another SOAP call. Take a look at the date zimlet. date.js it has code to get a handle to the calendar controller and get various lists of appointments.[/QUOTE]
What should I do?
Could you tell me about it?
-
- Ambassador
- Posts: 4558
- Joined: Fri Sep 12, 2014 9:52 pm
How can I get appointment list from zimlet?
Kenji, The code is above. You need to pass in a valid date. The error you are getting is pretty clear the value you are passing in is null or has no value. You need to pass in a valid date object.
How can I get appointment list from zimlet?
Finally, I could got appointment list!!!
Thanks KevinH
Thanks KevinH
How can I get appointment list from zimlet?
Kenji,
Care to post the code that you came up with? I'm also learning zimbra and would love to see how you achieved this and how your code was refined.
-krystian
Care to post the code that you came up with? I'm also learning zimbra and would love to see how you achieved this and how your code was refined.
-krystian