2014年2月23日から03/01に予定されているLotus Dominoカレンダー(バージョン8.5.1)に予定が「終日」あります。/2017。私はNCSO.jarにを使用して、私は、このようにロータスドミノからこの予定を取得しよう:Lotus Dominoカレンダー(バージョン8.5.1)の予定を「終日」に返す
lotus.domino.Session s = null;
s = DominoSessionInfo.sessionInfo.getSession();
lotus.domino.Database maildb = getMailDb(sessionInfo);
lotus.domino.DateRange dr = s.createDateRange(startDate, endDate);
lotus.domino.View calview = maildb.getView("($Calendar)");
lotus.domino.ViewEntryCollection docColl = calview.getAllEntriesByKey(dr);
public static lotus.domino.Database getMailDb(DominoSessionInfo sessionInfo) throws NotesException, NamingException{
lotus.domino.Session s = DominoSessionInfo.sessionInfo.getSession();
log.info("Open DB on: " + s.getServerName() + " with mail server *" +
sessionInfo.getProfileInfo().getMailServer() + "* and mail file *" +
sessionInfo.getProfileInfo().getMailFile());
lotus.domino.Database maildb = s.getDatabase(sessionInfo.getProfileInfo().getMailServer(),
sessionInfo.getProfileInfo().getMailFile());
if (! maildb.isOpen()){
maildb.open();
}
return maildb;
}
とするとdr.getText():2017年2月27日12時00分: 00:00 CET - 03/06/2017 12:00:00 CET(startDate:02/27/2017 12:00:00 CETとendDate:03/06/2017 12:00:00 CET)このコードdr.getText():02/20/2017 12:00:00 CET - 02/27/2017 12:00:00 CET(すなわちstartDate:02/20/2017 12:00) 00:00 CETおよびendDate:02/27/2017 12:00:00 CET)このコードはこの予定を返します。
startDateとendDateの値がそれぞれ02/27/2017 12:00:00 CETと03/06/2017 12:00:00の場合、この予定を返すためにコードを変更するにはどうすればよいですかAM CET?
ありがとうございます。
画像:Appointment Lotus Notes screenshoot
予定のドキュメントのCalendarDateTimeアイテムの値を調べ、時間コンポーネントが何であるか確認しましたか? –
こんにちはRichard、予定内のCalendarDateTimeアイテムの値は次のとおりです。 doc.getItemValue( "CalendarDateTime"):[02/23/2017 12:00:00 CET] – Edoardo
CalendarDateTimeには1つの値しかありませんか? 2/23から3/1に毎日表示されるリストはありませんか? –