I was creating a dropdown in the config and saw lately Vector append() & assign() support JS arrays directly ( ). The help states
In JScript you can pass a standard array to this method to copy the array into a Vector.
but both throw an exception for me:
var v = DOpus.create.vector();
var a = [ 'Foo', 'Bar' ]; v.append(a); // exception
var b = new Array( 'Foo', 'Bar' ); v.append(b); // exception
v.append([ 'Foo', 'Bar' ]); // exception
v.append(new Array( 'Foo', 'Bar' )); // exception
v = DOpus.create.vector([ 'Foo', 'Bar' ]); // no exception
DOpus.output('cnt: ' + v.count); // ...but returns 0
v.push_back('Foo');
DOpus.output('cnt: ' + v.count); // works perfectly fine
Am I missing something very obvious or misinterpreting the docs?