在 fullcalendar 中使用 Oracle UCM JSON 数据?
有没有办法从 Oracle UCM 的 JSON 选项获取数据并在完整日历中使用它。我创建了一项服务来从 UCM 中的日历数据返回数据,并希望使用 fullcalendar 显示事件。
这是我收到的示例提要:
"ResultSets": {
{
"SQLLMCal": {
"fields": [
{ "name": "SINGLE_ELEMENT" },
{ "name": "Start" },
{ "name": "SCHOOL_TYPE" },
{ "name": "SCHOOL_TYPE_ID" },
{ "name": "Title" },
{ "name": "ENTRY_SIDE_GROUP" }
],
"rows": [
[
"141",
"3/17/11 12:00 AM",
"Elementary",
"3",
"Big Burger",
"1"
]
]
}
}
}
谢谢,Ken
Is there a way to fetch data from Oracle UCM's JSON option and use this in Full Calendar. I createed a service to return data from calendar data in UCM, and want to display the events using fullcalendar.
Here is an example feed that I get back:
"ResultSets": {
{
"SQLLMCal": {
"fields": [
{ "name": "SINGLE_ELEMENT" },
{ "name": "Start" },
{ "name": "SCHOOL_TYPE" },
{ "name": "SCHOOL_TYPE_ID" },
{ "name": "Title" },
{ "name": "ENTRY_SIDE_GROUP" }
],
"rows": [
[
"141",
"3/17/11 12:00 AM",
"Elementary",
"3",
"Big Burger",
"1"
]
]
}
}
}
Thanks, Ken
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
需要使用自定义事件函数解析您自己的数据:
http://arshaw.com/fullcalendar/docs/event_data/events_function/
need to parse your own data using a custom events function:
http://arshaw.com/fullcalendar/docs/event_data/events_function/
好的,“键盘和椅子之间存在问题”的好例子!我只需盯着文档,答案就在那里。
在我的代码中,我有以下内容:
events: function(callback) {
根据定义,这必须是
events: function(start, end,callback) {
一旦我添加了开始和结束参数,一切就完美了。
感谢亚当为我指明了正确的方向!
肯
Okay, great example of "problem exists between keyboard and chair"! I just had to stare at the documentation and the answer was right there.
In my code, I have the following:
events: function(callback) {
By definition, this MUST be
events: function(start, end, callback) {
Once I added the start and end parameters, everything worked perfectly.
Thank you Adam for pointing me the the right direction!
Ken