[Migrated from the Syclo Resource Center]
KarthikSetty 05/06/2011 10:48,
Hi,We need to pass a collection to an ActiveX component. With 5.2.8 this is possible. My collection needs to be selected dynamically. If it were a property I can be easily set using a rule. But I dont see how I can return a collection through a rule. One of the scenarios that we need to implement is to pass a list of notification objects for a particular work order, where the work order id is set by the activex component as an eternal value.What I was thinking of doing is to have a dummy notification collection under the main object which I would populate based on the work order id. The Agentry value of the Active X will point to this.
Is there a easy way to copy the contents from one collection to another?I need to copy the notification object from MainObject -> select WorkOrder by key -> Notification Collection to MainObject -> Temp Notification Collection.The only way to copy a collection is to loop through the collection and copy each object individually. Is there a way to do this in one step?
Thanks,Karthik
Jason Latko 05/06/2011 11:12
Karthik,Unfortunately there is no easier way to do this.
You need to go about it the way you suggested one at a time by looping over the parent collection and adding objects to your new collection, initializing each property value "from other object" in the add transaction.
Jason Latko - Senior Product Developer at Syclo
KarthikSetty 05/06/2011 14:24
Alright, Thanks for your response.