【问题标题】:Filtering the iNotes Calendar in extlib在 extlib 中过滤 iNotes 日历
【发布时间】:2012-03-11 16:19:11
【问题描述】:

我还需要过滤 extlib 中的 iNotes 日历控件。当我查看 extlib 应用程序中的示例时,我可以看到它应该连接到 xecalendarJsonLegacyService。

我发现此服务的问题是我无法像使用其他视图服务一样根据类别或搜索过滤内容。

我需要根据视图中的搜索或类别创建不同的日历/json 数据。 我查看了其他一些服务,但不确定是否可以使用它们。

如果您对我应该如何创建过滤器有任何想法,请回复。

我在下面附上了显示 jsonservice 和 calendarcontrol 的图片。

这是 json 数据在 xsCalendarJsonLegacyService 中的样子

{
    "@timestamp":"20120311T171603",
    "@toplevelentries":"3",
    "viewentry":
    [
  {
      "@unid":"37F0330979C04AF2C12579BE004F5629",
      "@noteid":"32E1A",
      "@position":"1",
      "@read":"true",
      "@siblings":"3",
      "entrydata":
      [
        {
            "@columnnumber":"0",
            "@name":"$134",
            "datetime":
            {
                "0":"20120314T100000"
            }
        },
        {
            "@columnnumber":"1",
            "@name":"$149",
            "number":
            {
                "0":119
            }
        }, etc...

【问题讨论】:

    标签: json calendar xpages


    【解决方案1】:

    您可以在扩展库中实现自己的 REST 服务(或现有服务的扩展),但我猜您正在寻找更简单的东西。

    【讨论】:

    • 我正在寻找可行的方法,如果您需要销售代表,您需要提供代码
    【解决方案2】:

    抱歉,没有代码,但也许(并希望)有答案。 您是否查看过 Xpages 扩展库演示中的 xc:CalendarStoreCustomRestService 自定义控件?看起来他们将日历控件与普通的 JSON 视图存储连接起来,并且支持搜索键。

    【讨论】:

    • 实在找不到怎么用,找到了自定义控件但没有xpage
    【解决方案3】:

    我找到了您可以使用的代码,但您必须扩展自定义控件。我认为它是一个新组件,尚未作为 xe: 组件包含在扩展库中。

    这是您使用控件的方式:

    <xc:CalendarStoreCustomRestService id="cc4ccCalendarStoreCustomRestService"
        storeComponentId="notesCalendarStore1"  databaseName="#{sessionScope.databaseName}"
        viewName="($Calendar)">
    
    </xc:CalendarStoreCustomRestService>
    

    这是你的日历组件,它使用上面的 storeComponentId。

            <xe:calendarView id="calendarView1" jsId="cview1"
                summarize="false"
                type="#{javascript: null == viewScope.calendarType? 'M' : viewScope.calendarType }"
                storeComponentId="notesCalendarStore1">
                <xe:this.loaded><![CDATA[${javascript:if (sessionScope.databaseName == null) {
                        return false;
                    } else {
                        return true;
                    }}]]></xe:this.loaded>
            </xe:calendarView>
    

    如果您需要更多信息,此示例包含在 DWA_iNotesRest.xsp 中。

    【讨论】:

      【解决方案4】:

      我google了很长时间,我找到的唯一解决方案是构建自己的Rest服务

      你是否设法在没有这个的情况下过滤日历?

      【讨论】:

      • 不,我还没有找到解决办法
      • 我可以补充一点,我曾尝试使用其他 restservices 并设法获得与 calenderjson 服务完全相同的 json 数据,但后来我遇到了很多其他 javascript 问题道场
      猜你喜欢
      • 1970-01-01
      • 2015-04-21
      • 1970-01-01
      • 1970-01-01
      • 2013-07-30
      • 2017-02-07
      • 1970-01-01
      • 2018-01-29
      • 1970-01-01
      相关资源
      最近更新 更多