I have a Calendar and I am trying to write a Javascript Snippet so that when the Calendar item is clicked, users will be redirected to another URL instead of seeing a popup.
var params = arguments[0],$ = skuid.$;
var models = skuid.model.map();
var Appointments = models.Appointments;
var TheAppointment = Appointments.getFirstRow();
var Id = Appointments.getFieldValue(TheAppointment,‘Id’);
window.location = ‘/apex/skuid__ui?page=AppointmentDetail&Id=’ + Id;
Unfortunately getFirstRow() does not work in this situation, because no matter which Calendar Item I click I get the same Record ID.
How do I fix the Javascript so that it knows the ID of the Calendar item I am clicking on?
Thanks!
Question
Calendar Event On-Click Behavior Javascript Snippet - HOW TO GET ROW ID
This topic has been closed for replies.
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.