Skip to Content
1
Former Member
Apr 09, 2014 at 11:12 PM

Setting 1 to Many Associations and possible help represeting on screen

50 Views

Hi,

I've been through a few examples of setting associations to business objects, but in every case the association has been to set to exactly one business object. I'm not sure how to handle the case of having to set the association to multiple business objects and then having then representing the objects from those associations on a screen (I'm guessing it would have to be some sort of Advanced List matrix)? I have had a quick look through at the best practices in the wiki page but couldn't see a relevant guide.

So far the usual process has been:

1) Create and execute query to retrieve desired business objects eg:

qryEmployees = Employee.Identification.QueryByEmployeeAttributes;

paramEmployee = qryEmployees.CreateSelectionParams();

paramEmployee.Add( something );

resultEmployees = qryEmployees.Execute(paramEmployee);

2) Set the association field to RetrievedItem.ToRoot

The next step would be to somehow represent this on an AdvancedListPane

If you guys would be so kind as to help this would be a great tutorial example 😊