NULL on query parameter request

  • mr.r5163-1314960610106282005

    Mr.R

    4 months 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/
    1314960610487828530-Skarmavbild_2024-12-07_kl._15.14.34.png
    1314960611171373156-Skarmavbild_2024-12-07_kl._15.15.43.png
    βœ…1
  • tomthebigtree-1314961050210271294

    Tom Ireland

    4 months ago

    @Mr.R - It looks like qfields expects an array and currently it's being passed a string.
  • mr.r5163-1314961700105228368

    Mr.R

    4 months ago

    Still getting Null result πŸ€”
    1314961699782135808-Skarmavbild_2024-12-07_kl._15.27.39.png
  • tomthebigtree-1314964225977749555

    Tom Ireland

    4 months ago

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

    Tom Ireland

    4 months 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.
  • tomthebigtree-1314966343799275611

    Tom Ireland

    4 months ago

    Here's an example, @Mr.R
    1314966343594020964-Screenshot_93.png
  • mr.r5163-1314967413485211678

    Mr.R

    4 months 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-1314967414697361499

    Tod

    4 months ago

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

    Tom Ireland

    4 months 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.r5163-1314971156629164103

    Mr.R

    4 months 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
  • tomthebigtree-1314972458268364831

    Tom Ireland

    4 months ago

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

    Mr.R

    4 months 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. πŸ˜…
  • tomthebigtree-1314975758439157870

    Tom Ireland

    4 months 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.