cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Populating a collection of objects, based on associations of connected objects

pvandeginste
Honored Contributor

Hi community,

 

Is it possible to write a macro that would populate a collection for 1 object, based on the associations of other objects connected to the first object?

 

For example:

I have Organizational Processes OP1, OP2, and OP3, that are each connected their own Org-Units. Assuming that OP1, OP2, and OP3 are associated to the same Parent Org Process OP123, can i write a macro that will automatically add the Org-Units associated to OP1-OP3 to the Org-Unit collection of OP123?

 

Thanks,

Philippe

2 Replies

Hi,

 

thanks for confirming Smiley Happy

 

Can you explain how to implement this? Would I need to connect the macro to the MetaAssociationEnd I want to automatically populate as an "Implementing macro" or as a "LegUpdateTool"? Is there a specific function I should be using for this?

 

Thanks!

Philippe

hsoegaard
MEGA Partner
MEGA Partner

Yes you can