Need to copy from one entity to other entity

0
Hi  Am copying the attributes of current status to helper entity . if i commit it will save in database  but if click on multiple times .multiple records are showing But if am not commit it will not save in the DB . help me here how resolve this
asked
1 answers
0

Hello,

You can copy attributes from one entity to the other entity, with the help of  copyAttributes java action in Community Commons module (https://marketplace.mendix.com/link/component/170)

 


In your scenario, Target object will be HelperEntity. Source Object is CurrentStatus entity.

 

To overcome the duplicates, before creating NewHelperEntity, do a validation check whether the CurrentStatus object data has already copied to HelperEntity or not.


Hope this helps!

 

answered