Help with routing

I’m following @Hyperbytes tutorial on routing here https://www.youtube.com/watch?v=MEFy69HrlKc

I set the query parameter on the app element.

but when I go to make the server action I don’t see the option for getting the parameter

Do I have to make the thing to get the parameter myself?

Very new to Wappler so sorry if I’m missing something simple, thanks for any help.

Yes, you must add the $_GET variable of the same name
image

Thanks for the reply, I have one other problem. How do I set the id input parameters to be the query id?

This won’t work because it is an output of the action but the action won’t send anything because it needs the id first, right?

Click the lightning bolt beside the id parameter of the server connection and select query.id

Thats what I did in the screenshot in my last post. I don’t see an option for query.id

I got it to work by adding the query manager element.

but I didn’t see that in the video at all or on https://docs.wappler.io/t/defining-and-using-url-parameters/2913

is it needed? im not sure what it even really does.

It is necessary, i will check

Have checked, i don’t actually create the parameter in the video as it had already been created however if you look 7 minutes in it does show the query manager setup with the id field created and how it needs to be linked although i accept this section could have had some additional clarity

Glad I got it figured out. Your videos are amazing, I would be totally lost without them. Thank you so much for spending the time to make Wappler accessible to newcomers.

1 Like

I always try to get it working through the wappler UI first. But I also recommend getting comfortable with using the code view and typing query.KEY - as a backup.
Sometimes the Wappler UI can bug out / have options that shouldn’t be there (I think you can still set query params on content pages but that doesn’t actually show up in the UI later on).