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

 
 
Опции темы Поиск в этой теме Опции просмотра
Старый 12.08.2011, 11:20   #1  
Dark Smile is offline
Dark Smile
Junior AX Developer
 
16 / 10 (1) +
Регистрация: 17.06.2011
MorphX Version Control get stored Element
Hey there,

i save the whole AOT in MorphX Version Control and we call this e.g. Version1.
Now i change an element in the AOT in the normal way and save this.

While saving the system runs through the class SysVersionControlSystemMorphX.commandSave().

In this Method i added the following code to get a TreeNode Object of the changed Element:

...
treeNode = new TreeNode();
yavMonitorClass = new YAVMonitorClass();
// remove layer name to get path for init TreeNode:
tmp = this.itemPath(_controllable);
path = strdel(tmp, 0, 4);
treeNode = TreeNode::findNode(path);
if(treeNode)
{
info(strfmt("TreeNode: %1, Id: %2, Type: %3", treeNode.AOTname(), treeNode.applObjectId(), treeNode.applObjectType() ));
yavMonitorClass.writeToTable(treeNode, treeNode.applObjectType(),false, YAVMonitorAction::Edited); //my own class to save this
}
...

so now i have the information of which object the developer changed / created.
Now i want to know what he exactly changed on the object.

i want to compare a changed AOT Object against the Version1 of this Object stored in Version Control.

But how can i get the object from Version Control (= the Version1) ?


Thanks for answering and a nice weekend,
Robin
__________________
Kind Regards
Robin
 

Похожие темы
Тема Автор Раздел Ответов Посл. сообщение
palleagermark: Sorting of versions shown in the Compare tool, when using MorphX version control, is not correct Blog bot DAX Blogs 0 05.02.2010 15:05
mfp: Dynamics AX 2009 Version Control Interview Blog bot DAX Blogs 0 28.01.2009 12:05
axStart: Microsoft Dynamics AX 2009 White Paper: Team Foundation Server Version Control Setup Blog bot DAX Blogs 0 27.07.2008 13:06
msdynamicsax: Integrated Version Control Blog bot DAX Blogs 0 04.04.2008 11:05
Channel9: Version control in MorphX Blog bot DAX Blogs 8 25.12.2007 10:37

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

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

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