1
在我的其他方法(数据,文本等)中,setItem方法可以正常工作以显示对树项目所做的更改。但是,更改项目图标后调用setItem似乎没有任何作用。更新树项目以便出现新图标的最佳方法是什么?Axapta:在图像更改后更新FormTreeControl
感谢
public void modified()
{
FormTreeItem workingItem;
;
super();
//find the current item
workingItem = FormTreeControl.getItem(FormTreeControl.getSelection());
//update the value
workingItem.Image(1);
//update the item in the list
FormTreeControl.setItem(workingItem);
}