AXForum  
Вернуться   AXForum > Microsoft Dynamics AX > DAX Blogs
All
Забыли пароль?
Зарегистрироваться Правила Справка Пользователи Сообщения за день Поиск

 
 
Опции темы Поиск в этой теме Опции просмотра
Старый 28.05.2013, 15:11   #1  
Blog bot is offline
Blog bot
Участник
 
25,643 / 848 (80) +++++++
Регистрация: 28.10.2006
dynamicsaxbi: Best Practices: Coding Guidelines
Источник: http://blogs.msdn.com/b/dynamicsaxbi...uidelines.aspx
==============

Microsoft Dynamics AX 2012

Developer’s checklist when creating report solutions for Microsoft Dynamics AX 2012.  The goal of this article is to promote coding guidelines that have been applied by the product development team to ensure consistency in the reporting solutions across the application.  Many of the suggestions here stem from the hundreds of developer hours invested when migrating >1000 legacy production reports into Microsoft Dynamics AX 2012.  Applying these strategies will help to ensure that your reports are robust and scale appropriately when deployed to production environments.



DO USE…. identifierStr to specify identifiers like parameter names

As explained in the MSDN article here, the identifierStr() method is used to convert an identifier into a string.  Even though the article says that this method validates its argument in the AOT, the only check it seems to make is that its argument would be a valid identifier.  The main benefit of using this method is that we don’t need to put the string in quotes like ‘BookId’; instead we can simply use identifierStr(BookId).

This method is mainly used in the contract class, for the parm methods.  For example, the parm method can be decorated with the DataMemberAttribute attribute which specifies the parameter name. 

This can be specified using the identifierStr() method as follows:

<ul> <font size="3">DataMemberAttribute(identifierStr(DocumentDate))      
__________________
Расскажите о новых и интересных блогах по Microsoft Dynamics, напишите личное сообщение администратору.
 

Похожие темы
Тема Автор Раздел Ответов Посл. сообщение
dynamicsaxbi: Best Practices: Report Data Methods Blog bot DAX Blogs 0 28.05.2013 15:11
dynamicsaxbi: Best Practices: Introduction Blog bot DAX Blogs 0 28.05.2013 08:11
Dave Froslie: Dynamics AX 2012 Testing Best Practices Now Available!! Blog bot DAX Blogs 0 07.10.2011 21:11
kamalblogs: Towards Dynamics Ax Product Certification – Best Practices (Part III) Blog bot DAX Blogs 0 21.07.2010 01:07
Microsoft Dynamics CRM Team Blog: Best Practices for CRM Memory Usage Blog bot Dynamics CRM: Blogs 0 12.03.2009 23:05

Ваши права в разделе
Вы не можете создавать новые темы
Вы не можете отвечать в темах
Вы не можете прикреплять вложения
Вы не можете редактировать свои сообщения

BB коды Вкл.
Смайлы Вкл.
[IMG] код Вкл.
HTML код Выкл.
Быстрый переход

Рейтинг@Mail.ru
Часовой пояс GMT +3, время: 04:19.