Java Action Object Instantiation

0
I want to populate the relation “dummy_Session” using java action, how to do it? I am able to populate the “Attribute1” attribute using the following code:   IMendixObject mendixObj = Core.instantiate(context,"Dummy.dummy"); mendixObj.setValue(context, "Attribute1", “123”);
asked
1 answers
1

If you know that it's always the type dummy, you can use the proxy class. It has setter methods for attributes and associations. It's easier than using the IMendixObject.

answered