Aim:
Copy a set of business objects and insert the object(s) in to another object.
Process input is Object B
Object A is say a list of options
Object B is an item has some options or none
Object B has attribute of type A, multiple allowed
Duplicates required as object A has specific information to B, for example a unique serial number.
Rules are:
-> Select one or more from the query on objects A
PICK ONE OR MORE FROM Querry_BO_A
-> Copy the results
DUPLICATE A
-> Set an attribute in the results (so I can see which A object is duplicated and what B object it is attached too)
ThatA.B = B
-> Inserts the results in B
INSERT ThatA IN B.AttributeofType_A
Result:
One object is insert into B's list and the attribute A.B is not set correctly.
What is going wrong here?