NULL on query parameter request

  • /attachments/1314960610106282005/1314960610487828530/Skarmavbild_2024-12-07_kl._15.14.34.png

    Mr.R

    1 month ago

    Following the swagger from the api documentation gives me NULL result when adding the query parameter field. lso doen't work to filter out certain data for example "Work hours" etc.

    Public api endpoint: https://jobsearch.api.jobtechdev.se/
    Skarmavbild_2024-12-07_kl._15.14.34.png
    Skarmavbild_2024-12-07_kl._15.15.43.png
    βœ…1
  • Tom Ireland

    1 month ago

    @Mr.R - It looks like qfields expects an array and currently it's being passed a string.
  • /attachments/1314960610106282005/1314961699782135808/Skarmavbild_2024-12-07_kl._15.27.39.png

    Mr.R

    1 month ago

    Still getting Null result πŸ€”
    Skarmavbild_2024-12-07_kl._15.27.39.png
  • Tom Ireland

    1 month ago

    I don't think "Stockholm" is a valid array value. Looking at those docs, it's only occupation, skill, etc.
  • Tom Ireland

    1 month ago

    I think "Stockholm" needs to be the value for q as the freetext query field and then you use the qfields options listed to use that freetext value provided.
  • /attachments/1314960610106282005/1314966343594020964/Screenshot_93.png

    Tom Ireland

    1 month ago

    Here's an example, @Mr.R
    Screenshot_93.png
  • Mr.R

    1 month ago

    Oh ok, my idea was to have a picklist for location and the freetext would be for inputting Job role.

    I tried using concatenation within the q field but it doesn't display correct result.
  • Tod

    1 month ago

    Great energy @Mr.R! Your continuous contribution to the toddle Community just made you advance to Community Level 2!
  • Tom Ireland

    1 month ago

    I don't know enough about what the API is used for and how everything works together but the original problem did appear to be related to the qfields query param not being an array and not using the array values specified in their docs.
  • Have you managed to solve it now?
  • Mr.R

    1 month ago

    I'm still experimenting and found out that when qfields is set to "location", the search input only accept defined Locations.

    Will keep exploring, anyway your help is always much appreciated Tom
  • Tom Ireland

    1 month ago

    Yeah, the API looks quite comprehensive. Good luck and shout if you run into more problems.
    πŸ‘1
  • Mr.R

    1 month ago

    Tom i manage to fix it and it now filters correctly!

    Had to set the qfields location to EMPTY and then on q-freetext formula just concatinate the created "Cities" variable with the array of defined locations. πŸ˜…
  • Tom Ireland

    1 month ago

    πŸ™Œ Nice work.

Stop scrolling. Start building.

toddle is a visual web app builder that rivals custom code β€” but accessible to your entire team!

Try toddle β€” it's free!

Β© Copyright 2024 toddle. All rights reserved.