hi Gustavo,
Example 13 (PDFReportRequiresEE) is a good example of doing this. The process is as follows;
a) Add a button to the Browse. (MailBoxesBrowseControl in the example) On the "OnClick" tab set the Procedure to the Report procedure, set the Target Frame to '_blank' (this will cause the PDF to open in another tab) and tick on the option to "Include Row ID Field'.
b) Because (in the example) this is the MailboxesBrowseControl procedure, Which is set to use the unique key, MAI:PrimaryKey, the component(s) of that key (Mai:MailBoxNumber) are set in the SessionValue and Value Queue when the report is called.
c) In the report (AliasReport in the example) you'll see a bit of code in the INIT method to prime the Mai:MailboxNumber value - which the report is then designed to use and filter on.
If Not p_Web &= NULL
MAI:MailBoxNumber = p_web.GetValue('Mai:Mailboxnumber')
End
Hope this helps
cheers
Bruce