"RepeatForUnit";日历条目中缺少项目? [英] "RepeatForUnit" item missing in Calendar entry?

查看:66
本文介绍了"RepeatForUnit";日历条目中缺少项目?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在访问RepeatForUnit来管理Lotus Notes中的重复".

I am accessing RepeatForUnit to manage "Repeats" in Lotus Notes.

String RepeatForUnit =(string)((object [])docCalendarDoc.GetItemValue("RepeatForUnit"))[0];

String RepeatForUnit = (string)((object[])docCalendarDoc.GetItemValue("RepeatForUnit"))[0];

最初,我为每日"事件获得"D",为每周"获得"W",为每年"获得"Y".

Initially i was getting "D" for Daily event, "W" for Weekly and "Y" for Yearly.

但是现在,即使在日历中添加了重复"之后,属性"字段也不显示任何该值.在Lotus Notes日历的属性"列表中并且上述代码显示为"(黑色条目)时,该字段不可见.

But now properties field not showing any of this value even after adding Repeat in calendar.It is not visible in Properties list of Lotus Notes Calendar and showing "" (black entry) for above code.

我不明白为什么会这样.有人可以帮我吗?

I am not getting why this is happening.Can anybody help me out in this?

推荐答案

我不确定逻辑,但是Notes有时不包括RepeatUnit,RepeatForUnit等字段,而是将重复日历项视为自定义"重复,仅使用"RepeatInstanceDates"项(这是多值日期数据类型).根据您的代码在做什么,也许它也可以检查此项目.

I am not sure of the logic, but Notes sometimes does not include the RepeatUnit, RepeatForUnit, etc fields and insteads treats the repeating calendar entry as a "custom" repeat, which uses only the "RepeatInstanceDates" item (which is a multi-values date datatype). Depending on what your code is doing, perhaps it can also check this item.

重复日历项"的列表-相关项目可以找到

A listing of the "repeating calendar entry" - related items can be found here.

这篇关于"RepeatForUnit";日历条目中缺少项目?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆