Help with passing foundset to Jasper

Hello,
I am sort of new to passing a foundset to jasper reports, Ive got the basic report working fine but it always shows only the first record in the passed foundset. Do I need to pass additional parameters, eg. pk of selected record for the report to only show that record. Code below, and assistance greatly appreciated.

var byteArr = plugins.jasperPluginRMI.runReport(foundset, "sales_print_estimate.jrxml", null, 'print', null)

It should show all records in your foundset, no extra parameters needed.
Are you sure your foundset contains more records? Is there maybe something wrong with the report?

Hi Joas,
Thanks for you reply, I worked it out. I had a problem with the find before passing the foundset…all fixed