Nightly Build version Beetween condition error for date field.
Nightly Build version Beetween condition error for date field.
udaymagdum
Posts: 24Questions: 17Answers: 0
Below scenario to regenerate issue while convert to tostring (severside processing)
- Select Date field for searchBuilder.
- select Between condition
- select first date.
- pass selected date in UTC format and empty string value of second datepicker to getDetails method
- GetDetails can convert date to toISOString which actually convert empty string to null
- while convert tostring raise error.
- Uncaught TypeError: Cannot read property 'toString' of null
- Use Moment.js version 2.22.2
Answers
Thanks for the steps. We'll take a look towards the middle of next week and report back,
Colin
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