property objectSourceId

(r/w) string objectSourceId;

Typ

Zugriff

This property sets and gets the object source id. The binding type is of objectSource.
function onSample()
{
    var box = scene.getBoxById("myBox");
    if (box)
    {
        var binding = box.getDataBinding("myBinding");
        if (binding)
        {
            binding.objectSourceId = "employee";
            binding.targetProperty = "value";
            binding.path = "firstName";
            binding.bindMethod = "twoWay";
            binding.connect();
        }
    }
}