Hello! I’ve been browsing the forum for hours and it seems to me that I have everything correct but it still doesn’t work! That’s why I decided to ask on the forum.
Button “search” from “index-page” navigates to page “search-result” with voivodeship selected from dropdown (stored in url as parameter “voivo”).
I have over 100 attractions for each of 3 voivodeships that matches the searching criteria, but my “search result page” doesn’t return any item from database.
I guess you are setting Get voivo from page url as a Voivo thing type? (can you share screenshot of the Get voivo from Page url?)
If this is the case, you are sending the Value’s id… but you need to send the Value’s unique ID
I have used debugger - the parameters are sent to url, but still RG doesn’t return appriopriate results. Debugger don’t show what is the reason.
Database contains 3 main datatypes:
Attractions
Localizations (Voivodeships and communes)
Categories (Main category and subcategory)
Each attractions has main fields like:
id (number)
name (text)
voivodeship (voivodeship)
commune (commune)
main category (category-parent)
category (category)
No errors appears but RG return 0 results. When I just use search-engine and not select any criteria, then everything works correctly, so I suppose that the problem is with RG that don’t read the url parameters correctly.
can you send a screenshot of your datasource for the dropdown vivo?.
Also send a screenshot of your database structure
I assume the datatype has a datafield called voivodeship and you related it to another datatype called voivo right?
From what i you should be sending the dropdown value not the id itself as the correct should be actually "doing a search for attractions " and the option display would be whatever field you want to display on the dropdown
I don’t think passing the unique_id and then retrieving the parameter as the object works. Since you’re searching anyway, have tried searching for voivos and the criteria is unique_id=get data from page url the id?
change it to dropdown voivo’s value instead
on the searchresult page ,can you screenshot all elements preceeding the repeating group?
Let me what value you are using to represent the text element
Also, you are also filtering the search result for “attractions”, the data to eh page url you sent is for “vovio”, maybe if you can screenshot the value of the text element on the searchpage