Databases Reference
In-Depth Information
ajaxIdentifier: null
},
create: function() {
var uiw = this;
$('#' + uiw.element.attr('id') + ' FULL CALENDAR').fullCalendar({
editable: false,
theme: uiw.options.theme !== null,
events: function(start, end, callback){uiw.getDates(start, end, callback)},
ignoreTimeZone: true,
weekends: true,
header: {
left: 'today prev,next',
center: 'title',
right: 'agendaDay agendaWeek month'
},
viewDisplay: function(view) {
uiw.element.trigger('calendarviewdisplay');
}
});
uiw.element.bind('apexrefresh', function() {
$('#' + uiw.element.attr('id') + ' FULL CALENDAR').fullCalendar('refetchEvents');
});
},
getDates: function(start, end, callback) {
var uiw = this;
uiw.element.trigger('apexbeforerefresh');
$.ajax({
type: 'POST',
url: 'wwv flow.show',
data: {
p flow id: $('#pFlowId').val(),
p flow step id: $('#pFlowStepId').val(),
p instance: $('#pInstance').val(),
p request: 'PLUGIN=' + uiw.options.ajaxIdentifier,
x01: $.fullCalendar.formatDate(start, 'yyyyMMdd'),
x02: $.fullCalendar.formatDate(end, 'yyyyMMdd')
},
dateType: 'json',
async: false,
success: function(data) {
callback(data);
uiw.element.trigger('apexafterrefresh');
}
});
}
});
})(apex.jQuery);
Search WWH ::




Custom Search