I would suggest is taking a look at how this currently done for Invoices, specifically looking at the report properties from the Invoice_PrintPreview screen. If you dig into the report properties you’ll notice this report takes advantage of the Filter Options. This filter only includes the Invoice with the RecordID that is currently selected from the screen.
I would suggest you mimic this scenario by following the steps below.
- Add the Report object to your screen.
- From the Report Properties select a report or create a new one.
- Select the table.
- Select RecordID from the list of available fields.
- Click Insert Filter.
- Select Equal to.
- Select Value From Session.
- Select Current Screen Active Record.
- Click Save & Close.
- Click Next.
- Click Finish.
You’ll likely want to add a button and use the Refresh Report action to update the report as you select each Purchase Order. Use the Show Screen In Pop Up action if the report has a screen of its own, similar to the Print Preview button on the Invoice screen.
Hope that helps,
Need more help? Ask us about Method consulting services.
Valbon Shabani
Director of Education
Method Integration Inc.
Toll Free: 1.888.925.6238 ext. 715
Local and overseas: 416.847.0400 ext. 715
Fax: 416.640.6027
E-mail: valbon@method.me
Website: http://www.linkedin.com/in/valbon