“RepeatForUnit” item missing in Calendar entry?

假装没事ソ 提交于 2019-12-08 08:17:51

问题


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?


回答1:


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.



来源:https://stackoverflow.com/questions/1504370/repeatforunit-item-missing-in-calendar-entry

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!