- Joe Hess
- PowerBuilder
- Friday, 4 September 2020 01:22 PM UTC
I'm designing an invoice export feature that generates a PDF file for each selected invoice. The invoice form has a nested report to show the subtotal, sales tax, shipping charges, and invoice total along with a few other things. Although we are not quite ready to transition to web apis, I designed this to work the same way. I have an API that retrieves data for the invoices using a datastore, and returns the data in JSON format. I thought importing the JSON would cover everything, but I found out the JSON does not contain the data for the nested report.
I can reference the nested report as a DWObject, get the dataobject of the nested report, retrieve the data, and manually update the nested report.
Is there an easier way to do this? I tried GetChild, but I could not that to work even after setting the processing to 5 (Composite). I would think that exporting a datastore to a JSON should contain the data for the nested report. Importing the JSON should update the nested report. If I can do it manually, ImportJson should be able to do it.
Thanks
Joe
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.