我正嘗試使用自定義休息服務來填充iNotes日曆控件。剩下的服務正在返回我需要的json,但無論我做什麼,它都不會填充日曆。看看extlib演示也沒有真正解決這個問題。如何使用帶自定義休息服務的iNotes日曆
新增 - 我想使用非郵件應用程序,所以我有在日曆視圖上使用必要的字段。但我想要自定義視圖休息服務的主要原因是能夠根據位置和部門進行過濾。
以下是我的xPage的代碼,它具有REST控件,CalendarStore控件和iNotes CalendarView控件。我還補充了其餘服務返回的條目
<?xml version="1.0" encoding="UTF-8"?>
<xp:view xmlns:xp="http://www.ibm.com/xsp/core"
xmlns:xc="http://www.ibm.com/xsp/custom"
xmlns:xe="http://www.ibm.com/xsp/coreex">
<xe:restService id="restService1" pathInfo="inoteslegacyjson">
<xe:this.service>
<xe:viewJsonLegacyService viewName="Calendar">
<xe:this.columns>
<xe:restViewColumn columnName="DEPT" loaded="true"
name="dept">
</xe:restViewColumn>
<xe:restViewColumn columnName="startDate"
name="CalendarDateTim" loaded="true">
</xe:restViewColumn>
<xe:restViewColumn columnName="$147" loaded="true"
name="Subject">
</xe:restViewColumn>
</xe:this.columns>
</xe:viewJsonLegacyService>
</xe:this.service>
</xe:restService>
<xe:notesCalendarStore id="notesCalendarStore1"
dojoType="xpagesext.CalendarStore">
<xe:this.dojoAttributes>
<xp:dojoAttribute name="pathInfo" value="/inoteslegacyjson">
</xp:dojoAttribute>
</xe:this.dojoAttributes></xe:notesCalendarStore>
<xe:calendarView id="calendarView1"
storeComponentId="notesCalendarStore1" type="M">
</xe:calendarView></xp:view>
{
@timestamp: "20140122T180515"
@toplevelentries: "58"
-viewentry: [
-{
@unid: "85257C210070DA5C85257C24006DD996"
@noteid: "8FA"
@position: "1"
@read: "true"
@siblings: "58"
-entrydata: [
-{
@columnnumber: "0"
@name: "dept"
-text: {
0: "Information Services"
}
}
-{
@columnnumber: "1"
@name: "CalendarDateTim"
-datetime: {
0: "20131129T180515"
}
}
-{
@columnnumber: "2"
@name: "Subject"
-text: {
0: "Linda Berry - PTO"
}
}
]
}
請將您的代碼的基本部分添加到您的問題中。 –
您可能還想將其分成兩個問題 - 一個用於數據不顯示,另一個用於調整樣式...如果您爲後一個問題創建了單獨的問題,請替換「更具響應性」和「確定大小「與一些額外的特異性。 ;) –
這聽起來像你的情況可能會做一些完全不同的事情,那些在頁面上試用的東西「/XPagesExt.nsf/DWA_iNotesRest.xsp」或「/XPagesExt.nsf/DWA_LocalCalendarView.xsp」,對吧?如果是這樣,我們可能在這裏有一個錯誤。 –