Hi all,
I'm going nuts trying to set values in a CForm multivalue widget.
I obtained the Form model with:
var model = form.getModel();
Then I tried to set the values like this:
model.rubriken = Array(size); for( i = 0 ; i < size; i++) model.rubriken[i] = new java.lang.Integer(val[i]);
When size=0, everything is fine. Otherwise, I get
Cannot set value of field "rubriken" with an object of type org.mozilla.javascript.UniqueTag
When I omit the array declaration, I get null pointer exceptions.
Has anybody done this and can explain me how ?
TIA, Johannes
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
