OK I have the spinning tie on and I'm having a good laugh at myself.
I had:
// depPorts being a list I obtained from a SOAP call
depPortList = new Array(depPorts.length); for( var i=0; i <
depPorts.length; i++ ) {
// What should have been
depPortList[i] = { key : depPorts[i] };
// Was
depPortList[i] = { value : depPorts[i] };
}
// Therefore
form.getWidget("repeaterWidget").getRow(0).getWidget("depPort").setValue("SY
D");
// Would not work
I am off to have an expresso and a piece of Humble Pie.
Thanks for your help Bruno.
----- Original Message -----
From: "Bruno Dumon" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, November 28, 2003 3:04 AM
Subject: Re: Selecting the correct value in a selection-list
> On Thu, 2003-11-27 at 04:16, Joe Latty wrote:
> > Bruno,
> >
> > Ok I think I over simplified things so as to explain my problem
> >
> > I have a repeater with a select-list in each row, I wish to select the
"AK"
> > value in the select-list of the first row.
> >
> >
form.getWidget("myRepeaterWidget").getRow(0).getWidget("myStateDropDown").se
> > tValue("AK");
> >
> > This does not work (for me).
>
> I see no reason it wouldn't work. Could you create a minimal testcase
> (form definition, template & flowscript) to illustrate the problem?
>
> --
> 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]
>
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]