Adobe Dreamweaver Forums



Last 10 THreads :         Embedding Flash SWF Skin in External Site (Last Post : QADesign - Replies : 0 - Views : 1 )           »          Compatible issue with ie6 (Last Post : zhtjlong - Replies : 0 - Views : 1 )           »          Re: Photoshop CS4 is a disaster (Last Post : Paulo_Skylar@adobeforums.com - Replies : 0 - Views : 1 )           »          Query question/help (Last Post : trojnfn - Replies : 2 - Views : 3 )           »          CS4 Motion Editor issues (Last Post : aaronlyon - Replies : 4 - Views : 9 )           »          Bridge No Longer Rotates Automatically (Last Post : Michael_Palumbo@adobeforums.com - Replies : 1 - Views : 2 )           »          dollarFormat / numberformat problem (Last Post : izdabye - Replies : 0 - Views : 1 )           »          Call out side flex (Last Post : Amy Blankenship - Replies : 15 - Views : 16 )           »          captions for photos (Last Post : dc111652 - Replies : 0 - Views : 1 )           »          Re: CS4 GPU Acceleration and Intel X3100 (Last Post : Paul_B_Brown@adobeforums.com - Replies : 0 - Views : 1 )           »         


User Info Statistics
Go Back   Adobe Dreamweaver Forums > Macromedia Software > Flex
 
Tags:



Reply
  #1 (permalink)  
Old 11-03-2008, 04:37 AM
cr1s
 
Posts: n/a
Diggs:
Default combo box error

Hello,
I am very new to Flex and have a question I hope someone can help me with.
My application was built using the ColdFusion Flex application wizard. The
application uses MSSQL server with Coldfusion.

It seems that I am required to select an item from a comboBox even if the item
I want is already being displayed. You must select an entry from the combo box
by iether reselecting the item currently displayed or selecting one of the
other options

If I do not make a selection from the combo box I am returned with an error
even if the item I want is already displayed.

i(mx.rpc::Fault)#0
errorID = 0
faultCode = "Server.Processing"
faultDetail = "[Macromedia][SQLServer JDBC Driver][SQLServer]The INSERT
statement conflicted with the FOREIGN KEY constraint

If you open the combo box and make a selection everything woks well.

Can I have it so that if the item I want from the combo box is already
displayed, it will accept that result without having to reselect the item from
the combo box?

Thanks in advance for your help.




Reply With Quote
Sponsored Links
  #2 (permalink)  
Old 11-03-2008, 04:37 AM
mhartnett
 
Posts: n/a
Diggs:
Default Re: combo box error

I believe that what you want is a value aware combo box. In flex you need to
do a little work to get this done but it is preaty easy once you understand it.
Read this link ... it does a good job of explaining.

http://flex.sys-con.com/node/312098

Reply With Quote
  #3 (permalink)  
Old 11-03-2008, 04:38 AM
cr1s
 
Posts: n/a
Diggs:
Default Re: combo box error

Thanks for your response.

I believe you are correct in that a value aware combo box would solve my
problem.
The code in accomplshing this is over my head so I think I will retain someone
to do it for me.

Thanks again for your response.

Reply With Quote


  #4 (permalink)  
Old 11-03-2008, 04:38 AM
ntsiii
 
Posts: n/a
Diggs:
Default Re: combo box error

Actually, doing this in a "one-off" situation is quite easy.

Say you have a value you want to set the Combo box to. You loop over the
comboBox dataProvider and compare your value to the values in the appropriate
property of each dataProvider item. If there is a match, you use the loop
index to set the ComboBoxes selectedIndex.

The examples you will see are more complex because they try to do this
generically. You know which item property has yur value so you can just
compare it.

Post your ComboBox and dataProvider and I'll help.

Tracy

Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



© Camley Interactive (camley.info) 2008 - all logos and images are copywrite their respective owners.
Proud member of the Camley Interactive Network
All times are GMT. The time now is 03:58 AM.


Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.1.0 ©2007, Crawlability, Inc.
Inactive Reminders By Mished.co.uk