merge

merge(jdo1:      JadeDynamicObject; 
      jdo2:      JadeDynamicObject; 
      otherJdos: ParamListType);

The merge method of the JadeDynamicObject class merges two or more dynamic objects, by providing an instantiated JadeDynamicObject as the receiver for the properties of the other dynamic objects that are to be aggregated. Any previous properties of the receiver JadeDynamicObject are cleared when a merge call is made.

When merging dynamic objects that have properties with the same names, parameter order is used. The JadeDynamicObject specified as the first parameter has the highest priority, followed by the second parameter, followed by the third parameter, and so on. If two parameters have a property with the same name, the property from the JadeDynamicObject with the highest priority is used.

The properties on the receiver JadeDynamicObject are indexed in parameter order; that is, the properties are in the following order.

  1. Properties from the first parameter (jdo1) in the order they were indexed on that JadeDynamicObject

  2. Properties from the second parameter (jdo2) in the order they were on that JadeDynamicObject

  3. Properties from the third parameter (otherJdos) in the order they were on that JadeDynamicObject, and so on

2020.0.01 and higher