EGL Development User Group

EGL Development User Group

EGL Development User Group

The EGL Development User Group is dedicated to sharing news, knowledge, and insights regarding the EGL language and Business Developer product. Consisting of IBMers, HCL, and users, this community collaborates to advance the EGL ecosystem.

 View Only
  • 1.  DojoDateTextBox wrong date

    Posted Tue March 01, 2016 04:57 PM

    I created a test handler with this widget and in preview tab when I change the date manually and put 30/2/2016 and click tab it gives no error. 

    testDateBox DojoDateTextBox{ layoutData = new GridLayoutData{ row = 2, column = 2 }, formatLength = DojoLib.DATEBOX_FORMAT_SHORT, value = new Date{} };

     

    How is its possible to validate the input date?

     

    michaeldefox


  • 2.  Re: DojoDateTextBox wrong date

    Posted Wed March 02, 2016 01:40 AM

    Hi Michael,

    I have tried your sample in RBD 9.1 and 9.5 but in both versions I'm getting a runtime error. Don't you? What version are you working with?

    You should replace "new Date{}" by DateTimeLib.currentDate(). The runtime exception then disappears, ánd 30/2/2016 is rejected by the DojoDateTextBox.

    Guus

     

     

     

    gweis