- Daniel Vivier
- PowerBuilder
- Friday, 11 June 2021 04:17 PM UTC
I'm wondering whether anyone has done any enhancing of their PB applications to allow users to do scripting of the app's functions, and if so, what sort of technologies and techniques they used.
Here's an example of a user request we got today. A user has 60 different memorized reports in our program. They need to regularly create each report, save it to a password-protected PDF, and email each one to a different person.
Each of those individual features is already in the program (create memorized reports, save to password-protected PDF, and email the PDF), but it's all done through the UI, and it would be done one report at a time.
Obviously it would be an enormous benefit to the user if they could write a fairly simple script to do all that, and have the program run it. I'm envisioning something like this (just a first draft!):
RunMemorizedReport("Report 1 Name")
SaveReportAsPDF("password") // applies to last-run report
EmailReportTo("name", "email") // applies to last-PDF'd report
RunMemorizedReport("Report 2 Name")
...
Thanks!
Find Questions by Tag
Helpful?
If a reply or comment is helpful for you, please don’t hesitate to click the Helpful button. This action is further confirmation of their invaluable contribution to the Appeon Community.