How are you giving object name ? For createObject can you pass the objectName as well ?. You can try some thing like the following and see
var obj = component.createObject(parent, {"objectName" :"myObj", "x": 100, "y": 100});
↧