Показать сообщение отдельно
Старый 14.09.2012, 13:11   #1  
Blog bot is offline
Blog bot
Участник
 
25,646 / 848 (80) +++++++
Регистрация: 28.10.2006
emeadaxsupport: Microsoft Dynamics AX 2012 Reporting: How to translate parameters values
Источник: http://blogs.msdn.com/b/axsupport/ar...rs-values.aspx
==============

Sometime ago I run into following problem.
  1. I followed step provided in msdn article: http://msdn.microsoft.com/en-us/library/gg724119.aspx
  2. After that I have generated Precision Design and I have edited it to display parameter values with which the report was run:

3. I deployed report and created display menu item and opened the report

- I specified * for account number parameter

I printed report in EN-US language – looks fine:



I printed report in NL-BE language – parameters are not translated:



To solve the problem we need to do a little more of development:
  1. For parameters which are different that NoYes enum. We can translate parameter using: http://msdn.microsoft.com/en-us/library/ee873271.aspx
a. add a new dataset:



b. use the new created dataset to fill the value of the parameter Customer_CustAccountStatement



c. modify the parameter expression from Value to Label



Then this parameter will translated correctly.

2. For parameter which use NoYes enum we can use expression:

=Microsoft.Dynamics.Framework.Reports.BuiltInMethods.GetEnumLabelFromValue("NoYes", IIF(Parameters!Customer_InclTax.Value.Equals("Yes"),1,0), parameters!AX_RenderingCulture.Value, parameters!AX_UserContext.Value)









Источник: http://blogs.msdn.com/b/axsupport/ar...rs-values.aspx
__________________
Расскажите о новых и интересных блогах по Microsoft Dynamics, напишите личное сообщение администратору.