Nightly Build version Beetween condition error for date field.

Nightly Build version Beetween condition error for date field.

udaymagdumudaymagdum Posts: 23Questions: 16Answers: 0

Below scenario to regenerate issue while convert to tostring (severside processing)

  1. Select Date field for searchBuilder.
  2. select Between condition
  3. select first date.
  4. pass selected date in UTC format and empty string value of second datepicker to getDetails method
  5. GetDetails can convert date to toISOString which actually convert empty string to null
  6. while convert tostring raise error.
    • Uncaught TypeError: Cannot read property 'toString' of null


    1. Use Moment.js version 2.22.2

Answers

  • colincolin Posts: 15,142Questions: 1Answers: 2,586

    Thanks for the steps. We'll take a look towards the middle of next week and report back,

    Colin

  • sandysandy Posts: 913Questions: 0Answers: 236

    Hi @udaymagdum ,

    I've made what I think should be a fix for this. This will be available in the next SearchBuilder release which we hope will be in the next few weeks. Until then you can access the fix from the nightly builds.

    If this doesn't fix your issue then, as noted in the forum rules, please post a link to a running test case showing the issue so we can offer some help. Information on how to create a test case (if you aren't able to link to the page you are working on) is available here.

    Thanks,
    Sandy

Sign In or Register to comment.