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

 
 
Опции темы Поиск в этой теме Опции просмотра
Старый 12.03.2008, 09:05   #1  
Blog bot is offline
Blog bot
Участник
 
25,475 / 846 (79) +++++++
Регистрация: 28.10.2006
dax-lessons: Create Technical Document from AX
Источник: http://DAX-Lessons.spaces.live.com/B...FCD1!139.entry
==============


Creating detail technical document in projects is very time consuming. Isn’tit?
Particularly if there are many objects in the project it will take more timein creating it.
The jobs which I am going to explain will reduce time in preparing technicaldocument.
This job will list the table fields properties like table field name,help text(Description),type, Size etc.

static voidsgx_TehnicalDocument_Tables(Args _args)
{
   COM         document;
   COM         wordDocument;
   COM         wordRange;
   COM         app;
   str         tableContent;
   SysDictTable    dictTable;
   SysDictField    dictField;
   Counter         fieldCounter;
   Counter         arrayCounter;
   str typeofTheField(DictField df, Types _types)
   {
       str typeName;
       SysDictType dictType;
       SysDictEnum dictEnum;
       ;
       switch(_types)
       {
            case Types::UserType    :  dictType = new SysDictType(dictField.typeId());
                                        returndictType.name();
            case Types::Container   :  return 'container';
 
            case Types::Date        :  return  'date';
 
            case Types::Enum        :  dictEnum = new SysDictEnum(dictField.enumId());
                                        if(dictEnum)
                                           return dictEnum.name();
            case Types::Integer     :
                                       return  'int';
             case Types::Int64       :
                                       return  'int64';
             case Types::Real        :
                                       return  'real';
             case Types::Record      :
                                       return  'record';
            case Types::VarString   :
            case Types::RString     :
            case Types::String      :  return  'str';
            case Types::BLOB        :  return  'blob';
            case Types::DateTime    : return  'datetime' ;
            case Types::Guid        : return  'guid' ;
            default : return '';
       }
   }
   ;
   app = new com("Word.Application");
   app.visible(true);
   document     = app.Documents();
   wordDocument = document.add();
   wordDocument.activate();
   wordRange   =wordDocument.range(0,0);
   dictTable = new SysDictTable(tablenum(CustTable)); // Mention your table here
<strong><span style="color:rgb(153, 51, 102);font-weight:normal">   for (fieldCounter = 1; fieldCounter
__________________
Расскажите о новых и интересных блогах по Microsoft Dynamics, напишите личное сообщение администратору.
 

Похожие темы
Тема Автор Раздел Ответов Посл. сообщение
Arijit Basu: AX 2009 Document Management & MOSS / WSS Blog bot DAX Blogs 0 23.01.2009 01:07
dax-lessons: Create Outlook Appointment or Meeting Request using X++ Blog bot DAX Blogs 0 30.04.2008 23:07
dax-lessons: Create HTML using HtmlTextWriter class in x++ Blog bot DAX Blogs 0 15.04.2008 20:05
dax-lessons: Document Handling in AX - setup and Example Blog bot DAX Blogs 0 27.08.2007 23:00
Dynamics AX: Make use of DotNet Assemblies from DAX 4.0 Blog bot DAX Blogs 0 28.10.2006 16:40

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

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

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