问题
wondering how to carry out this requirement if at all possible.
I am modifying the Customer Account Statement morphx report, and the user has requested that we have a Page of Page, i.e. Page 1 of 10, Page 2 of 10 etc etc...
What we need is for the report to reset the total pages after it fetches a new customer. So Customer 00001 might have a 3 page statement, which would be "Page 1 of 3" "Page 2 of 3" and "Page 3 of 3". Customer 00002 might only have a page statement so it will be "Page 1 of 1".
As standard what happens is you get Total pages for the entire report i.e. "Page 1 of 140" "Page 2 of 140" "Page 3 of 140" then next customer "Page 1 of 140" etc etc...
I would assume that a total counter based on the standard counter would be required, but not sure where to capture this total value?
回答1:
You can call the element.reset()
method in fetch
after each account statement.
This finalizes the report as a print job.
This not good if the output is going to a PDF or mail.
Also have a look on this and this question.
来源:https://stackoverflow.com/questions/10704009/dynamics-ax-2009-x-page-counter-query