在日视图中未在调度程序中显示的全天事件

时间:2017-01-10 21:14:50

标签: fullcalendar

除了会议之类的预定活动之外,我还试图在日历上显示组织活动,例如假期。我显示了五个调度程序/日历视图选项:timelineWeek,agendaDay,agendaTwoDay,agendaWeek,month

议程周刊'和'月'视图,这些全天事件显示,既未指定资源ID,也未通过数组将事件绑定到所有资源ID:

enter image description here

但是,在“时间线周刊”,“议程日”和“议程日期”等问题上,'观点,这些" allDay"事件不会显示。事件通过AJAX注入,返回:

new Thread() {
    @Override
    public void run() {
        try {
            //Connecting
            Log.i(debugString, "Attempting to connect to server");
            socket = new Socket(hostname, portnumber);
            Log.i(debugString, "Connection established!");

            //receive message from server
            BufferedReader br = new BufferedReader(new InputStreamReader(socket.getInputStream()));

            Log.e(debugString, br.readLine());  // This works, but really...
            String s = br.readLine(); // ...this is how I *want* to save it.
        } catch (IOException e) {
            Log.e(debugString, e.getMessage());
        }
    }
}.start();

是否可以在调度程序上显示全天事件?

1 个答案:

答案 0 :(得分:0)

像我的大多数问题一样,这个问题是由我自己的错误引起的。 JSON中的资源ID列表格式不正确(字符串,而不是数组)。

糟糕,失败:

"resourceIds": "['16121','14174','14175','14842','14843','14844']",

更好,有效:

"resourceIds": ['16121','14174','14175','14842','14843','14844'],