PDF pages filter data by specific record value

Hi. I have a pdf page that uses a table as its DataSource. I am however trying to filter the data by a specific user select field i.e., the user selects a project and only records pertaining to that project ID would be populated and subsequently print on the pdf page.

since the filter doesn’t allow you to filter by a record value without having to hardcode it in neither the option to use a pipe, I’m looking to see if anyone have a solution for this scenario.

thanks in advance.