On Tue, 2004-01-20 at 16:48, Brian Burridge wrote:
> Unfortunately,
> form.getWidget("contacts.6.votes")
> returns null for me, instead of the value it contains.
> 

To access it in the Javascript way, do:

form.getModel().contacts[6].votes

or to access it using the Java API (from flowscript):

form.getWidget("contacts").getRow(6).getWidget("votes");

you can probably even write:
form.getModel().contacts[6].votes++;
to augment it, but I'm not sure.

> Brian
> 
> On Mon, 2004-01-19 at 15:58, Jim Horner wrote:
> > > Appreciate the link, but I've been through that wiki many times and
> > > haven't been able to solve my problem.
> > 
> > sorry. sometimes I have problems finding it... a smart person would bookmark 
> > it... nope not me.
> > 
> > > In summary, I need to be able to get a submitted value from the form and
> > > increment it by one, before the xml of the data is created.
> > 

-- 
Bruno Dumon                             http://outerthought.org/
Outerthought - Open Source, Java & XML Competence Support Center
[EMAIL PROTECTED]                          [EMAIL PROTECTED]


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

Reply via email to