SelectPDF printing inital page load view not what is on screen, how to fix?

Hi all,

I have Selectpdf working fine, to create a pdf ffom a repeating group report, but it only creates a pdf of what is on the default page load?

If the user selects to filter the report and show something different it still prints the initial page load.

How do I compensate so that what selectpdf grab is the current page view rather than the view on initial page load?

I am sure this has been answered but can’t find it.

many thanks.

Or do I have to create a view of what I want to pdf on page load and this is a limitation?

selectpdf prints whatever it sees right there and then on the page. There are two ways in my opinion to manipulate this.

  1. Set a delay. Some RG’s take very long to load so I always use the max delay I think its 30 secs.
  2. When you still need to do selections, the best way to make sure it shows what you need is use url parameters that you then use to control the state of a group on the page.

For example, you have a filter on the page, a repeating group and a print button. The user makes a change to the rg based on a filter, at that point you can add a custom state to the page or the rg and when the user clicks the print button you navigate to the same page but add additional parameters to the page based on the rg’s state.

When the page loads it can set the state of the RG based on the url parameters.

Thanks @vincent gives me a way to go!

This topic was automatically closed after 70 days. New replies are no longer allowed.