27.05.2008, 21:05 | #1 |
Участник
|
palleagermark: Change the appearance of printed report ranges
Источник: http://palleagermark.blogspot.com/20...ed-report.html
============== In AX you can order selected reports asking the system to print the ranges of your query. To try this, go to Accounts Receivable / Reports / Base data / Customer.
Technically this is a fine solution, but it’s not very sexy. So how do you go about changing this section? Take a look at the method \Classes\SysReportRun\buildPrintRanges. This is where AX on the fly builds a new report section with the needed fields and it executes the section to print the requested information. For a regular no-nonse report like the Customer report, this feature is called from the report template behind the report: \Reports\Report Templates\InternalList\PageHeader:PgHdr_1\Methods\executeSection: public void executeSection() {; SysReportRun::executePrintRangeSection(element); super(); }If you switch the two lines in this method, you will get the ranges printed under the regular page header, which I think is a bit nicer: You can add the same lines to your own reports that may not use this template, as long as it is called from the page header section. With a few lines of additional code in \Classes\SysReportRun\buildPrintRanges you can create cool effects (well, semi-cool): This will produce a result like this (assuming you have also changed the order of the lines in \Reports\Report Templates\InternalList\PageHeader:PgHdr_1\Methods\executeSection as described above): Источник: http://palleagermark.blogspot.com/20...ed-report.html
__________________
Расскажите о новых и интересных блогах по Microsoft Dynamics, напишите личное сообщение администратору. |
|
27.05.2008, 21:21 | #2 |
Участник
|
прикольно. давно хотел узнать что бы такое сделать с rang'ами...
молодца мужик. 1. разобрался в стандартном функционале 2. удержался от сооблазна переписать все по-своему 3. нашел нужное место... 4. ...и изменил пару строчек кода. В результате задача решена красиво (sexy). настоящий программист. |
|
|
Опции темы | Поиск в этой теме |
Опции просмотра | |
|