I don't have a complete example, but this post from Phil should be a good starting point:
In a script data source you have access to all report parameters and any report data sources defined "above" your script.
I don't have a complete example, but this post from Phil should be a good starting point:
In a script data source you have access to all report parameters and any report data sources defined "above" your script.