Referencing two previously unlinked BO's

If you have questions or if you want to share your opinion about Aware IM post your message on this forum
Post Reply
rocketman
Posts: 1252
Joined: Fri Jan 02, 2009 11:22 pm
Location: Preston UK
Contact:

Referencing two previously unlinked BO's

Post by rocketman »

I have two BO's previously unlinked (historical data from an old system) which I now want to link together via reference attributes - which I've created.

I need to FIND ALL instances in one file (easy) then loop through that file, and for each instance of a flight do a search on the second file for an identical key (Pilot.Id = Flight.PilotID)

Then when found - INSERT the flight into the pilot instance's reference attribute.

Can anyone give me the correct syntax
rocketman
Posts: 1252
Joined: Fri Jan 02, 2009 11:22 pm
Location: Preston UK
Contact:

Post by rocketman »

Hi guys - forget the last post. It was dead easy in the end.

Three lines saved me half a mile of code. What a fantastic product
Post Reply