searchBuilder between not work for Number

searchBuilder between not work for Number

sarooptrivedisarooptrivedi Posts: 62Questions: 19Answers: 2

Hey Colin,

In your example link for the server side searchBuilder Salary (Number) field not working.

the conditions dropdown is not popup
https://editor.datatables.net/examples/extensions/searchBuilder.html

I am working with server side searchBuilder and I just found this.

Answers

  • tangerinetangerine Posts: 3,365Questions: 39Answers: 395

    Actually none of those conditions are working. I believe that this has already been reported, but not yet fixed.

  • desperadodesperado Posts: 159Questions: 33Answers: 4
    edited June 2022

    @tangerine What exactly is not working correctly in Search Builder? I have this in my production system and so far have not had any issues. I want to make sure there isn't something I need to warn my users about. Thanks

    Perhaps you have a link to the known issue reported?

  • kthorngrenkthorngren Posts: 21,351Questions: 26Answers: 4,955

    Go to the example linked above:
    https://editor.datatables.net/examples/extensions/searchBuilder.html

    Open the browser's console. Click on a field and you will see this error:

    Uncaught TypeError: Cannot read properties of undefined (reading 'last_name')

    The Condition button does not work due to this error.

    Kevin

  • desperadodesperado Posts: 159Questions: 33Answers: 4

    @kthorngren Ah, thanks. That SearchBuilder 1.2 and I am on the Released version 1.3.3, not server side so no issue.

    Cheers

  • kthorngrenkthorngren Posts: 21,351Questions: 26Answers: 4,955

    @desperado That example is using Search Builder 1.3.3. All the examples use the latest released code. You can see what all the versions being used at the bottom of the Javascript tab. I'm not sure what the issue is but likely its related to using SSP.

    Kevin

  • desperadodesperado Posts: 159Questions: 33Answers: 4

    @kthorngren I read the title of the page wrong. It said "Since SearchBuilder 1.2..." and for some reason I was thinking 2.X, haha

    Must be SSP because I am not using SSP and it works fine. Good to know. Thanks for correcting me.

Sign In or Register to comment.