“RepeatForUnit”日历条目中缺少项目?
我正在访问 RepeatForUnit 来管理 Lotus Notes 中的“重复”。
String RepeatForUnit = (string)((object[])docCalendarDoc.GetItemValue("RepeatForUnit"))[0];
最初,我得到的“D”代表每日活动,“W”代表每周,“Y”代表每年。
但现在,即使在日历中添加重复后,属性字段也不会显示任何此值。它在 Lotus Notes 日历的属性列表中不可见,并在上述代码中显示“”(黑色条目)。
我不明白为什么会发生这种情况。有人可以帮助我吗?
I am accessing RepeatForUnit to manage "Repeats" in Lotus Notes.
String RepeatForUnit = (string)((object[])docCalendarDoc.GetItemValue("RepeatForUnit"))[0];
Initially i was getting "D" for Daily event, "W" for Weekly and "Y" for Yearly.
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?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我不确定逻辑,但 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.