Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
  1. #1
    New Coder
    Join Date
    Dec 2004
    Location
    Minnesota
    Posts
    69
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Flex 3 -- Help with ComboBox and Web Services

    Hello!

    I have 5 comboBox controls in my FLex app which each pull from a Web Service. When the first comboBox has been selected, a 'change();' event is fired off and it calls the Web Service method to populate the next comboBox. This is repeated for all of them.

    It all works great except there is ONE tiny lil bug I can't seem to correct. If the comboBox gets populated with only ONE item, then of course the 'change()' event never gets called, so the user cannot continue to the next selection.

    Is there any other way to maybe push an additional value onto the comboBox array AFTER it is filled from the webServices data? So rather than it just being filled with the one item I will push "Choose available color" into the first array slot.

    I am sure there is a way, just unsure of HOW after it has been filled dynaimcally?

    ThanksCF!
    “That rug really tied the room together. ”

  • #2
    Regular Coder Stooshie's Avatar
    Join Date
    Mar 2008
    Location
    Dundee, Scotland
    Posts
    378
    Thanks
    9
    Thanked 39 Times in 39 Posts

    Combo

    Perhaps you could add a private method on all the combo boxes that is called when the data is loaded. It would check to see if the combo had only one item and call the next web service if it did.
    Regards, Stooshie
    O


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •