My datatype is String for both MVF.

I would have writen something like :

// this is ok
cocoon.request.setAttribute("myForm", form.getWidget());
var reqAttf = cocoon.request.getAttribute("myForm");

var myMVFWidget  = reqAttf.lookupWidget("myMVF");

// this does not work and is still a mystery for me (the cats seems to be
not allowed in javascript)
Array myArray = (Array) myMFVWidget.getValue();

Stephane

>> Hi,
>>
>> I am trying to get my cforms multipleValueFields.
>> I tried to get the values of the user's selected fields.
>> Thus, I really don't know how to do this since the getValue() of the
>> multiplevaluefield widget return an objetc.
>> This object is an array but I don't know how to cast the object to be an
>> Array an then, retrieve my values ?
>>
>> Any idea or sample ?

>What's your datatype of that field? The object should be an array of
>that datatype.


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to