When I use a datawindow to generate a custom report, how can I pass a variable into the report from an input field?
You can do this through the use of retrieval arguments for the datawindow object. Then you can access the argument in your SQL and in the expressions within the datawindow layout.
We frequently want to show the user a textual version of their retrieval arguments when we dynamically modify the SQL. We do this by adding a dummy argument to the report and then displaying the argument in the summary band.