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

 
 
Опции темы Поиск в этой теме Опции просмотра
Старый 27.08.2007, 23:00   #1  
Blog bot is offline
Blog bot
Участник
 
25,544 / 848 (80) +++++++
Регистрация: 28.10.2006
dax-lessons: Setting Configurations - by simple Job run
Источник: http://DAX-Lessons.spaces.live.com/B...FCD1!121.entry
==============

 
Axapta - Configurations through X++ Code


Guys...fed up of setting up the configurations after installing AX..by checking and unchecking the modules..
Here is the small utility that saves your time if you want to use all the modules...
Usually we go to the Administration->SetUp->System->Confiuration and we configure the modules(check/uncheck)  
Just run the job, it will configure the modules (remember the code which is commented is to just give u an example
how to configure a single module.This job will enable all the modules)and synchronise the tables as well.
 
If you want to configure specifically some modules , you can check the commented logic in the code below and customise accordingly.
 
<blockquote dir=ltr> <blockquote dir=ltr> static void changeSystemConfiguration(Args _args)
{
    ConfigurationKeySet     set;
    ConfigurationKeyId      id;
    SysDictConfigurationKey sysDictConfigurationKey;

    int     i;
    Args    args;
    FormRun formRun;
    ;

    set = new ConfigurationKeySet();
<blockquote dir=ltr> <div><font color="#993366">    for(i = 1; i
__________________
Расскажите о новых и интересных блогах по Microsoft Dynamics, напишите личное сообщение администратору.
 

Похожие темы
Тема Автор Раздел Ответов Посл. сообщение
dax-lessons: Alert user using Net send - x++ Blog bot DAX Blogs 0 17.09.2008 13:05
dax-lessons: Generate XML Documentation Files for a project - DAX 2009 Blog bot DAX Blogs 0 08.08.2008 19:06
dax-lessons: Create Outlook Appointment or Meeting Request using X++ Blog bot DAX Blogs 0 30.04.2008 23:07
dax-lessons: Weather forecasting using X++ Blog bot DAX Blogs 2 25.04.2008 12:00
dax-lessons: Active directory in Axapta Blog bot DAX Blogs 0 27.08.2007 23:00

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

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

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