#dominoforever | Product Ideas Portal

 

Welcome to the #dominoforever Product Ideas Forum! The place where you can submit product ideas and enhancement request. We encourage you to participate by voting on, commenting on, and creating new ideas. All new ideas will be evaluated by HCL Product Management & Engineering teams, and the next steps will be communicated. While not all submitted ideas will be executed upon, community feedback will play a key role in influencing which ideas are and when they will be implemented.

For more information and upcoming events around #dominoforever, please visit our Destination Domino Page

XPages Date On screen problem

From this code please fix bug JSS can use Datetime Class on screen. This example will be convert to Java Date to display on screen.

sessionScope.PeriodValue = getComponent("Period").getValue();
if (sessionScope.PeriodValue != "1")
{
    var dt:NotesDateTime = document1.getItemValueDateTime("BeginDate");
    var jdt:java.util.Date = dt.toJavaDate();
    document1.setValue("EndDate", jdt)
}
if (sessionScope.PeriodValue == "2")
{
    var begindt:NotesDateTime = session.createDateTime("8:30");
    var enddt:NotesDateTime = session.createDateTime("12:00");
    var jbegindt:java.util.Date = begindt.toJavaDate();
    var jenddt:java.util.Date = enddt.toJavaDate();
    document1.setValue("BeginTime", jbegindt);
    document1.setValue("EndTime", jenddt);
}else if (sessionScope.PeriodValue == "3")
{
    var begindt:NotesDateTime = session.createDateTime("13:00");
    var enddt:NotesDateTime = session.createDateTime("17:30");
    var jbegindt:java.util.Date = begindt.toJavaDate();
    var jenddt:java.util.Date = enddt.toJavaDate();
    document1.setValue("BeginTime", jbegindt);
    document1.setValue("EndTime", jenddt);
}

  • Avatar32.5fb70cce7410889e661286fd7f1897de Guest
  • Jan 29 2019
  • Needs review
  • Attach files