hi ,
try
model.myMultivalueField = [key1, key2 ,key3];
tm
Derek Hohls schrieb:
Hi
I am struggling to initialize the selected values for a
multivaluefield.
In the flowscript I have the usual:
var model = myForm.getModel()
and for a simple text field I have something like:
model.myTextField = "foobar";
but when I try and set an array of values for the initial
multivaluefield selection, I cannot seem to find the
correct syntax e.g.
model.myMultivalueField[0] = "foo";
model.myMultivalueField[1] = "bar";
gives a null pointer error?
and
model.myMultivalueField.push( "foo" );
gives a syntax error.
There is obviously a simple way to do this - please
help!
Thanks
Derek
P.S. I am not using Hibernate or any POJOs - just working
in POJ (Plain 'ol Javascript).
begin:vcard
fn:Thomas Markus
n:Markus;Thomas
org:proventis GmbH
adr:;;Zimmerstr. 79-80;Berlin;Berlin;10117;Germany
email;internet:[EMAIL PROTECTED]
tel;work:+49 30 29 36 399 22
x-mozilla-html:FALSE
url:http://www.proventis.net
version:2.1
end:vcard
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]