Hello.
I am working on a website for the sale of real estate. I need to sort real estate by several parameters. At the moment, I am filtering properties by number of rooms, district and property value. Right now the code only works if you select options in all the dropdowns. That is, if I select only the required number of rooms and press the filter button, the console will give an error:
Error: Failed to perform query on [Apartments].
WDE0058: $ gte should be a Date, Number, or String. Got null instead
WDE0058: $ lt should be a Date, Number, or String. Got null instead
I would like to know if it is possible to filter the data individually.
Thank. I will definitely try.
One more question. Is it possible to set up price filtering based on the entered data? That is, so that the user can enter the amount himself and filter it.
Hello.
Unfortunately, on that site I did not find a sample code that is responsible for these parameters.
Could you tell me in more detail?
I am not good at programming, and have been trying to figure out the filter for over a month now.
Choose a Database you want from the shown DATABASE-POOL here… https://www.media-junkie.com/databases
Let us take the —> " Real-Estate "-Database, because it fits the needs of your issue.
Take one of the datafields you want to investigate, for example the " Purchase-Price ".
Pay attention, that the ID can differ from the DATAFIELD-NAME!!!
DATABASE —> " Real-Estate "
DATAFIELD —> " purchaceprice "
Type in —> Value-A & Value-B to do the search between this two values in DB.
Press —> Search-Button
Take a look onto —> RESULT in the TABLE below!
6 )Have FUN !