Forum Discussion
Gopikrishnan
6 years agoAccelerator II
Hi Ddidonato
You can get the selected item ids using below code. You can iterate over the result and get the related items.
var topwindow = top.aras.getMostTopWindowWithAras(window);
var relationship = topwindow.relationships;
var currentTabId = relationship.currTabID;
var relationshipsGrid = relationship.iframesCollection[currentTabId].contentWindow.grid;
var relationshipType = aras.getRelationshipTypeName(currentTabId);
var idListIds = relationshipsGrid.getSelectedItemIds();
var item = this.newItem("min_procure_list","get");
item.setAttribute("idlist",idListIds.join(','));
var res = item.Apply();