Xpages日历视图

时间:2016-01-08 09:13:14

标签: calendar xpages

Entry Screenshot Calendar view screenshot

在我的XPages上,我必须使用日历视图。有一个Notes视图。我将它用作XPages数据源,然后日历将显示数据为每周,每日和每月。

有任何样品,建议吗? 我发现这个但是没有示例代码或方法怎么办? https://www.openntf.org/internal/home.nsf/project.xsp?documentId=E78FED69C5D805E0862576C50050D88B

此致 C.A. ScreenSHot of REST Services

1 个答案:

答案 0 :(得分:2)

从OpenNTF下载ExtLib version并获取示例数据库" XPagesExt.nsf "来自" ExtensionLibraryOpenNTF-901v .... zip"文件。 XPages" DWA_iNotesRest.xsp "和" DWA_LocalCalendarView.xsp "向您展示如何在XPage中创建日历。

你可以在模板" TeamRoom(9)"中找到另一个很好的例子。根据此模板在服务器上创建新数据库

enter image description here

并查看XPage"日历"包含自定义控件" calendarView"。

更新

我创建了一个简单的例子:

<?xml version="1.0" encoding="UTF-8"?>
<xp:view
    xmlns:xp="http://www.ibm.com/xsp/core"
    xmlns:xe="http://www.ibm.com/xsp/coreex">

    <xe:restService
        id="restService1"
        pathInfo="/inoteslegacyjson"
        preventDojoStore="false">
        <xe:this.service>
            <xe:calendarJsonLegacyService
                viewName="calendar"
                contentType="text/plain"
                colCalendarDate="StartDateTime"
                colEndTime="EndDateTime"
                colSubject="Subject"
                colChair="Chair">
            </xe:calendarJsonLegacyService>
        </xe:this.service>
    </xe:restService>

    <xe:calendarView
        id="calendarView1"
        type="W"
        storeComponentId="restService1"
        style="width:100%">
    </xe:calendarView>
</xp:view>

视图的名称为&#34; calendar&#34;

enter image description here

查看的第一个排序(!)列必须是开始日期/时间 其程序化列名称与colCalendarDate匹配。

enter image description here enter image description here

其他三列的匹配方式相同。

相关问题