Показать сообщение отдельно
Старый 13.06.2012, 22:11   #1  
Blog bot is offline
Blog bot
Участник
 
25,644 / 848 (80) +++++++
Регистрация: 28.10.2006
ax-erp: SysQueryRangeUtil class - use method name as query criteria
Источник: http://microsoft-dynamics-ax-erp.blo...thod-name.html
==============

This is a cool new feature in AX 2009 - you can now use a method name instead of literal value in query criteria!

For example, if you run a report every month, previously you need to change the date criteria in each month you running the report (ie. “01/06/2010..30/06/2010”, “01/07/2010..31/07/2010”, etc).
Now you only need to enter
(monthRange(0, 0))
which will automatic return the correct first day and last day of the month.


Refer to the SysQueryRangeUtil class – there are other useful methods such as dateRange(), currentEmployeeId(), etc. It’s also possible to create new method on this class for special purpose!



Источник: http://microsoft-dynamics-ax-erp.blo...thod-name.html
__________________
Расскажите о новых и интересных блогах по Microsoft Dynamics, напишите личное сообщение администратору.