Nop
I haven't seen getModel() as part of the Javascript
specification of the Form Object ?? Is it?
I tried it out and get an
Avalon.Excepetion:
org.apache.avalon.framework.CascadingRuntimeException: getModel is not a
function
The getRow(int) solution seems to be a good path but I tried about all I
could think off in semantics but I simply don't have it right ...
Thanks for the try Derek
> What about:
>
> model = form.getModel();
> file = model.houseuploads[0]; //or i for any row...
> noOfRows = model.houseuploads.length - 1; //zero based array
>
>>>> [EMAIL PROTECTED] 2004/08/03 12:56:30 PM >>>
> Hi Bruno
>
> Sorry for not being to clear,
> Yes, I'm in the Flow
> wid = form.getWidget();
> //"houseuploads" is my repeater
> //"path" would be the upload widget I want to retreive the content off
> wid.houseuploads.getRow(0).getValue(); (return = null)
> wid.houseuploads.getRow(0).path.getValue(); (also return = null)
> wid.houseuploads.getSize(); (return = null)
>
> ???
> It's probably in the way I manipulate the repeater ???
> would you do this in the Java??
> Thanks
>
> Bruno Dumon wrote:
>
>> On Mon, 2004-08-02 at 17:21, oceatoon wrote:
>>> Hi
>>>
>>> I found a post "POPUALTING SELECTIONLISTS INA REPEATER FROM FLOW "
> where
>>> a similar question was asked but I can't seem to get Joergs
>>> technique(getRow before getting the value) to function.
>>>
>>> my repeater only contains an upload widget (minimum one so Row(0)
> allways
>>> exists, with add and delete). Then in my Flow, I need to retreive
> the
>>> value of the uploaded file from the widget to move it around.
>>>
>>> wid = handleForm("masterform", "forms/", document);
>>>
>>> //I'd like to retreive the value
>>> wid.houseuploads.getRow(0).getValue();
>>>
>>> But this doesn't seem to work???? allways returns "null"
>>
>>>From the wid.houseuploads notation I'd assume you're using the
>> javascript-wrapped variant of the widget tree, which has a different
>> API.
>>
>>> Also, do I have run through the whole repeater or is there a size
> or
>>> length method associated to now how many entries have been
> submitted?
>>
>> For the java API, this can be retrieved with the method getSize() of
> the
>> repeater.
>>
>> I think you can find the javascript-equivalents of these in the
> samples.
>>
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]