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

 
 
Опции темы Поиск в этой теме Опции просмотра
Старый 20.07.2012, 06:13   #1  
Blog bot is offline
Blog bot
Участник
 
25,607 / 848 (80) +++++++
Регистрация: 28.10.2006
emeadaxsupport: Table and EDT Validator
Источник: http://blogs.msdn.com/b/axsupport/ar...validator.aspx
==============

I recently had a case where I needed to dig through a customer's metadata to find the cause of a metadata error being thrown in their EDTs. In digging through the EDTs and the fields on tables using those EDTs I realized how easy it is to miss pieces when you are trying to upgrade code. For example, it is easy to forget to delete an EDT and not update the table using that EDT to point to a different EDT. As another example, it is easy to delete a field from a table and have a field group that has no fields left in it. All of this is metadata you would probably want to clean up if you knew about it.

With that in mind, I wrote the attached class which should help you find EDTs, table fields, table relations, and field groups that need to be reviewed. The class makes no changes to your metadata...to be clear it doesn't fix anything. It only writes to the infolog to tell you what to go take a look at. As a warning, I know the class isn't perfect. I only had so many hours to give it but you can use it if you like and it is easy to keep adding to if you like where it is going. To use the attached, import the xpo and it creates a class called MetadataValidator. Run the class and its main method will call the validation methods I've written.

Enjoy and happy upgrading!!




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

Похожие темы
Тема Автор Раздел Ответов Посл. сообщение
emeadaxsupport: Surrogate foreign keys in AIF Blog bot DAX Blogs 0 10.07.2012 00:11
dax-lessons: EDT Relation Migration Tool [Dynamics AX 2012] Blog bot DAX Blogs 0 05.07.2011 16:11
emeadaxsupport: Where is the System ID number sequence used? Will it run out? Blog bot DAX Blogs 0 25.05.2011 00:11
DeleteAction на Unit table deo DAX: Программирование 3 29.07.2009 12:53
axaptapedia: Go To Main Table Blog bot DAX Blogs 0 15.08.2007 19:40

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

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

Рейтинг@Mail.ru
Часовой пояс GMT +3, время: 05:52.
Powered by vBulletin® v3.8.5. Перевод: zCarot
Контактная информация, Реклама.