Can I generate a PDF from a "dialogued" layout
I have a layout that allows via a short dialog (one pulldown menu with 5 options) to generate manually a PDF report.
I would like to be able to create a script to use that dialogued layout in order to generate automatically based on certain parameters the PDF.
Here is what I understand I will need to do this in the script:
- Go to layout x
- Set variables to simulate dialog entry. In the layout I use global variables to allow for the selection (how do I do that ?)
- Enter Find Mode, Perform Find
- Sort records
- Save records as PDF (will this keep the original format of the layout ?)
Kindly comment on my questions.