|
18.12.2007, 19:50 | #1 |
Участник
|
gatesasbait: Forcing specific layers to compare in Ax 4.0x
Источник: http://gatesasbait.spaces.live.com/B...B9F5!158.entry
============== Good morning again! I'm stuck compairing a lot of objects for a customer's migration project. For example, last week, I had about one hundred tables, forms and classes to compare between the 'bus' and 'old bus' layers. In Ax5, the compare tool remembers your previous layer selections, but in Ax4, there is not such functionality. Therefore I added this code in class 'SysCompare', standard method 'initContext' (it can definitely be improved): protected void initContext(SysCompareContextProvider _context) { ; [...] while (!(comboBox1.getText(comboBox1.selection()) like "*(bus)*")) { if (!comboBox1.getText(comboBox1.selection())) { comboBox1.selection(0); break; } comboBox1.selection(comboBox1.selection()+1); } while (!(comboBox2.getText(comboBox2.selection()) like "*(old bus)*")) { if (!comboBox2.getText(comboBox2.selection())) { comboBox2.selection(0); break; } comboBox2.selection(comboBox2.selection()+1); } } Источник: http://gatesasbait.spaces.live.com/B...B9F5!158.entry
__________________
Расскажите о новых и интересных блогах по Microsoft Dynamics, напишите личное сообщение администратору. |
|
|
|