Hi guys,
We have an interesting requirement. We will have the standard Purchase Order document output on the screen at the end of posting of an PO confirmation. With header and lines.
However, for each of the PO lines, a separate document should be produced with details of this line. So for example:
1 PO header, 3 PO lines: output in 1 SSRS window, will be saved as PDF
3x SSRS windows: output in 3 windows, each will be saved as Excel
The layout of this Excel file will be quite complex, but we were able to design a mockup in SSRS and when you save it as Excel, it looks OK. So I don't think producing such complex layout can be done via X++ directly but also we want to keep the ability to save it as Excel or PDF.
Now, I thought about creating a new Report Data Provider class in X++, build a new SSRS report and simply call it X times (where X is the number of the posted PO lines) after the standard PO is generated (passing the posted PO of course).
But I thought, wouldn't it be easier to customise the standard PurchPurchaseOrderDP to populate a new temp table, which will be exposed as Dataset in SSRS alongside the PurchPurchaseOrderHeaderTmp and PurchPurchaseOrderTmp. Then in Visual Studio after processing the standard PO, tell SSRS to create a new window when we need it?
Or is it something controlled from AX?
Thanks,
Waldemar