Xpages日历视图 [英] Xpages Calendar View
问题描述
在我的一个XPages上必须使用日历视图。有一个便笺视图。我将其用作XPages数据源,然后日历将数据显示为每周,每日和每月。
是否有样品,建议?
我发现了这个,但是没有示例代码或方法怎么办?
下载
并查看带有自定义控件 calendarView的XPage calendar。
Update
我创建了一个简单的示例:
<?xml版本= 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 =主题
colChair =椅子>
< / xe:calendarJsonLegacyService>
< / xe:this.service>
< / xe:restService>
< xe:calendarView
id = calendarView1
type = W
storeComponentId = restService1
style = width:100 %>
< / xe:calendarView>
< / xp:view>
视图被命名为日历
视图的第一个sorted(!)列必须为开始日期/时间。
它的程序化列名称与 colCalendarDate
匹配。
其他三列以相同方式匹配。
on my one of my XPages i have to use Calendar view. There is a Notes View. I will use it as XPages Data source then the calendar will Show the data as weekly, Daily and monthly.
is there any sample, suggestion? I found this but there is no sample code or the way how to do? https://www.openntf.org/internal/home.nsf/project.xsp?documentId=E78FED69C5D805E0862576C50050D88B
Regards C.A.
Download an ExtLib version from OpenNTF and get the example database "XPagesExt.nsf" from "ExtensionLibraryOpenNTF-901v....zip" file. XPages "DWA_iNotesRest.xsp" and "DWA_LocalCalendarView.xsp" show you how to create a calendar in XPages.
You can find another good example in template "TeamRoom (9)". Create a new database on your server based on this template
and have a look at XPage "calendar" with included custom control "calendarView".
Update
I created a simple example:
<?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>
The view is named "calendar"
View's first sorted(!) column has to be the start date/time.
Its programmatic column name is matched to colCalendarDate
.
The other three columns are matched the same way.
这篇关于Xpages日历视图的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!