When I place [0] in ar partListId = partList[0].childNodes[0].getAttribute("id"); I get the FIRST item in the relationship and if I put ( [1],[2], etc I get the next items in the list) What do I need to do to get the active (selected) item for the child instead of placing a number.
var partList = inArgs.itemContext.getElementsByTagName("Relationships");
var partListId = partList[0].childNodes[0].getAttribute("id");
var item = this.newItem("min_procure_list","get");
item.setProperty("id",partListId);
var res = item.Apply();
cIdentity = res.getPropertyAttribute("related_id","keyed_name");
alert("Part Name:" + cIdentity);