Hi,
 
I am using,
 
<mx:ComboBox dataProvider="{['1', '2', '3']}" prompt="{[whatever value selected]}" />
I have two buttons 1)Save 2)Update
 
Initially I am saving say  value 2 from  dataProvider & saving the record to DB.
 
But when I click on update button it should show me whatever values I selected while saving.
It is showing me the required value.
 
But it is showing me twice that value.
   as a)promted
      b)dataprovider
 
How to avoid this to show value twice.
 
 
 
sandip p


Samuel Reuben <[EMAIL PROTECTED]> wrote:
Yeah, Manish agrees on that...

On 11/10/05, Dirk Eismann <[EMAIL PROTECTED]> wrote:
sorry for the offtopic-reply but shouldn't your signature read l33t fl3x h4x0r instead of l33t f3lx h4x0r ?

Dirk.

________________________________

Von: [email protected] im Auftrag von Manish Jethani
Gesendet: Mi 09.11.2005 09:36
An: Flexcoders
Betreff: [flexcoders] prompt property in ComboBox as array?



Hi flexcoders,

There's a prompt property in the ComboBox control in Flex 1.5.  The
value can be either a string or an array (I bet you didn't know about
the array bit ;) )

e.g.

  <mx:ComboBox dataProvider="{['1', '2', '3']}" prompt="-select one-" />
  <mx:ComboBox dataProvider="{['1', '2', '3']}" prompt="{['a', 'b', 'c']}" />

In the second example, the items 'a', 'b' and 'c' get displayed in the
dropdown list as "prompts".

Has anyone ever used prompt as an _array_?  What was the use-case?
(Reply only if you've used it as an _array_ in a real application.)

Manish

--
l33t f3lx h4x0r
m4cr0m3d14



--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com
Yahoo! Groups Links










--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com




YAHOO! GROUPS LINKS







Yahoo! FareChase - Search multiple travel sites in one click.

--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com




SPONSORED LINKS
Web site design development Computer software development Software design and development
Macromedia flex Software development best practice


YAHOO! GROUPS LINKS




Reply via email to