Forcing specific layers to compare in Ax 4.0x
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);
}
{
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);
}
}
本文介绍了一种在Ax4.0x中通过修改'SysCompare'类的'initContext'方法来实现特定层('bus'和'oldbus')的自动选择,从而简化比较流程的方法。
343

被折叠的 条评论
为什么被折叠?



