Показать сообщение отдельно
Старый 17.04.2008, 04:21   #1  
Blog bot is offline
Blog bot
Участник
 
25,644 / 848 (80) +++++++
Регистрация: 28.10.2006
axStart: Why use methods runningmode and configurationmode
Источник: http://axstart.spaces.live.com/Blog/...C0A0!299.entry
==============


Let’s have a look at this case:
I have done some customisations to the SysStartUpFormRun class. A new Table is used in this customisation. When coping my solution to the customer site, he is not able to open any form. (SQL errors tell him that a table is missing).
So how can I ship this code to customer without start up errors at the customer side?
Solution:
  • Force to run the application in configuration mode when your code (layer) is used on the customer site. You can do this by changing the value of method applBuildNo in class ApplicationVersion .
  • Check before using your new tables if AX is in running mode
    • if(appl.isRunningMode()) { your code}
With this approach, a less technical person is able to install the code.


Источник: http://axstart.spaces.live.com/Blog/...C0A0!299.entry
__________________
Расскажите о новых и интересных блогах по Microsoft Dynamics, напишите личное сообщение администратору.