Skip to content

Filtering Database Query with an URL Parameter

Original guide · All levels · Server Connect

If you don’t know how to define an URL parameter on your page, please check this tutorial as you will need this later. First, we need to create a server action. Open the server connect panel and click

First, we need to create a server action. Open the server connect panel and click the add new button:

Section titled “First, we need to create a server action. Open the server connect panel and click the add new button:”

If you don’t know how to define an URL parameter on your page, please check this tutorial as you will need this later.

First, we need to create a server action. Open the server connect panel and click the add new button:

This variable will be used to filter our database query. Let’s call it: productid (NOTE - it needs to be lowercase).

Load your database connection, or create one if you have not defined one yet. Then right click the database connection step:

Then add the database table columns you need:

Section titled “Then add the database table columns you need:”

And select the column you want to filter your database query by:

Section titled “And select the column you want to filter your database query by:”

And click the dynamic data picker for the filter value:

Section titled “And click the dynamic data picker for the filter value:”

Select the GET variable we created - productid:

Section titled “Select the GET variable we created - productid:”

Save your server action and close the server connect panel as we won’t need it anymore:

Section titled “Save your server action and close the server connect panel as we won’t need it anymore:”

In App Structure define your URL parameter using the query manager:

Section titled “In App Structure define your URL parameter using the query manager:”

And click the select server action button:

Section titled “And click the select server action button:”

Under Input parameters, you will see the GET variable which you defined in the server action. Ours is called productid - click the dynamic data picker to assign a dynamic value to it:

Under query select the URL parameter you defined:

Section titled “Under query select the URL parameter you defined:”

Then on your page, double click where you want to show the dynamic data:

Section titled “Then on your page, double click where you want to show the dynamic data:”

And select the data you need here, from your server action:

Section titled “And select the data you need here, from your server action:”

That’s it your data will be filtered using the URL parameter’s value and you will see it on the page.

Section titled “That’s it your data will be filtered using the URL parameter’s value and you will see it on the page.”