How to Copy an Object.

1
I have a list of employee and while iterating with the conditional check, I want to Copy few of the employee based on my condition. So please let me know if any inbuilt function is there in the Mendix?
asked
2 answers
4

Well you have got a few options:

- You can transfer the necessary values of an object to another object with a change activity.

- In the community commons module in the appstore there is a java action called: copyAttributes which copys all attribute values to the target object

- In the community commons module in the appstore there is a java action called: clone and deeplcone which copys all attribute values and associations to the target object

 

answered
1

Check the community commons. There you have functions to clone or deepclone (with references) objects.

Regards,

Ronald

 

answered