var inn = this.getInnovator();
var topWindow = aras.getMostTopWindowWithAras(window);
if (topWindow.work && topWindow.work.grid) {
var workFrame = topWindow.work;
// var selectedIds = workFrame.grid.getSelectedItemIds(',').split(',');
var id = workFrame.grid.getSelectedID();
var item = inn.getItemById("Part", id);
item.setAction("lock");
// item.setAttribute("doGetItem", "1");
item = item.apply();
if (item.isError()) {
return aras.AlertError(item.getErrorString());
}
// todo: Refresh Grid of new ItemType
// parent.onRefresh(); // don´t work
}
Locks the Part without error message. But refreshing the grid of the new ItemType don´t work.var inn = this.getInnovator();
var topWindow = aras.getMostTopWindowWithAras(window);
if (topWindow.work && topWindow.work.grid) {
var workFrame = topWindow.work;
// var selectedIds = workFrame.grid.getSelectedItemIds(',').split(',');
var id = workFrame.grid.getSelectedID();
var item = inn.getItemById("Part", id);
item.setAction("lock");
// item.setAttribute("doGetItem", "1");
item = item.apply();
if (item.isError()) {
return aras.AlertError(item.getErrorString());
}
// todo: Refresh Grid of new ItemType
// parent.onRefresh(); // don´t work
}
Locks the Part without error message. But refreshing the grid of the new ItemType don´t work.