I’m trying to export the data as it is filtered on my page.
I tried exporting the same querty that uses the GET values on the page and I just get everything?
I greated a form that creates POST values (using the filters on the page) I can see the data in the text box but when I submit the form the post values are empty??
Are the post values empty, or are they not even part of the post request?
Check the code - the fields need to be inside the form tag to be submitted with the request.
Also, check the network tab in developer tools of browser to verify what data is being submitted on form submission.
Lastly, create a response step with {{$_POST}} as value binding to fetch what the Server Action is receiving in POST body.
Fields are inside the form (i used the generator). Network tab shows all data exported.(not filtered) I set up an email to send what is posting and its not picking it up??
You can just use Response step and check in the response tab. No need to send an email.
If you could share some screenshots of the code, and network tabs… maybe something would stand out.
I am not sure i understand what is going on here and why are all these complicated things suggested.
All you need to do is to use the same filters you are using for listing the records on the page also in the export server action, filter the db query, then run the export step using this query.
Wow, thanks for the time on this. Let me try and post what I have as I’m pretty sure I’m doing it as youdescribe. I think my problem lies in how I get the POST values.
Originally I was using the “GET” values from the database that displayed them on the page. After all if the back end is filtering the data to display why can’t I just trigger it to do an export of the displayed values.
That went nowhere so I set up a seperate server connection just to export and then used a form that gets POST values from the same filters. I think I need to go back to plan a?