Is it possible to send multiple data to a page via SelectPDF?

Hello.

I want to use SelectPDF to generate a pdf for a page that has multiple different fields each with different data types. The plugin only allows you to send one data type at a time, leaving some of the fields on the new page blank.

How can I use this plugin and send multiple data to the new page so that it all is converted into a PDF?

Thank you

Hi @knocode

If I understand you correctly, the answer is yes.

As an example, I send a db entry with multiple data fields to populate an invoice.

If you have data from multiple db’s I would suggest create a new single db entry (temp) with all the relevant fields, create your pdf and delete the temp entry.

Hope it helps!

Hello.

Thanks for the input. I may have found a temporary solution, but I’m not satisfied with it.

To give more context, I have a page called “scope” and I need to send 2 data types there, “projects” and “business”.

The selectPDF workflow already sends the “project”, but I also need it to send “business”. The workaround I have is that when the page “scope” is loaded, it sets the state of the page’s Business to be “search for user’s businesses last item”. It works, but I dont want it to be limited to this.

Your solution might very well work better. Perhaps I can add a data field for Business under Project in my DB so that this information sends via the plugin. I’ll try this and let you know.

Thank you

Hello again.

I found a different solution.

I created a “yes/no” field for “Business” called “current” and when I generate the PDF on the page “scope” I set the page’s “business” state to search for businesses whose current is “yes”.

That seemed to do the trick.

1 Like

Another way is to use a common key between all the databases. Then you can send the key to the pdf and use the search function using the common key.

Always more than wat to skin a cat!