var parentItem = parent.thisItem; var linked_version = parentItem.getProperty("major_rev","") + "." + parentItem.getProperty("generation",""); setRelationshipProperty(relationshipID, <custom property name>, linked_version);Note that this approach will not set a value for related items added via code - only items added via the Innovator web client. It would be possible to implement the same behavior via server events, but it's not as easy. If users just need to find the earliest version of a parent item but it doesn't need to be displayed in the grid, they can use the where used dialog. Just right click on the related item in the grid and select View <Related ItemType>. When the related item opens, select Views > Where Used from the main menu. The resulting view will show any items that are related to the current item - including the versions of the parent items. Hope this helps! Eli
var parentItem = parent.thisItem; var linked_version = parentItem.getProperty("major_rev","") + "." + parentItem.getProperty("generation",""); setRelationshipProperty(relationshipID, <custom property name>, linked_version);Note that this approach will not set a value for related items added via code - only items added via the Innovator web client. It would be possible to implement the same behavior via server events, but it's not as easy. If users just need to find the earliest version of a parent item but it doesn't need to be displayed in the grid, they can use the where used dialog. Just right click on the related item in the grid and select View <Related ItemType>. When the related item opens, select Views > Where Used from the main menu. The resulting view will show any items that are related to the current item - including the versions of the parent items. Hope this helps! Eli