Dynamics AX 2009 X++ Page Counter Query

£可爱£侵袭症+ 提交于 2019-12-12 04:36:35

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!