Re: [flexcoders] editable combobox

2007-04-05 Thread Scotty Scott

Thanks for the reply Alex.

It turns out that something in my implementation of a mock object wasnt
complete.

Im not sure if it is because I marked my objects as implementing IUID and I
did not generate a UID for my objects

or

It appears the actual implementation of IViewCollection is not
ArrayCollection but an object that extends ArrayCollection and uses a custom
type of ArrayList that tracks the UID fields.

or

A combination of both.

Either way, once I generated a UID for my mock objects, the problem went
away.

Thanks again for your help,
   Scotty

On 04 Apr 2007 21:40:53 -0700, Alex Harui [EMAIL PROTECTED] wrote:


   I think that's been reported as a bug.  Try setting the .text property
to the correct value.

 --
*From:* flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] *On
Behalf Of *Scotty Scott
*Sent:* Wednesday, April 04, 2007 9:52 AM
*To:* flexcoders@yahoogroups.com
*Subject:* [flexcoders] editable combobox

 Hi everyone,

I am having a problem with an editable combobox displaying the text that
is stored in the model.

It works the first time the view is created, however once I swap the model
object... it goes back to the prompt value always.

mx:ComboBox id=referredByComboBox prompt=Select or type a value
editable=true dataProvider={model.availableReferredBy}
labelField=value change=
model.client.referredBy=event.currentTarget.text  text={
model.client.referredBy} /

Note, if I have a textinput bound to {model.client.referredBy} it does
display the correct value when the model is swapped.  So I know the value is
there.

Object Descriptions:
model is [Bindable]
model.availableReferredBy : ArrayCollection of a bindable object
model.client  : Custom bindable object
model.client.referredBy   : String

So... should this be possible or should I create a component that has a
dropdown attached to it that only updates the textinput on itemClick?


I can provide more information if needed.

Thanks for any help

--
Scotty Scott
http://www.franciswscott.com

 





--
Scotty Scott
http://www.franciswscott.com


[flexcoders] editable combobox

2007-04-04 Thread Scotty Scott

Hi everyone,

I am having a problem with an editable combobox displaying the text that is
stored in the model.

It works the first time the view is created, however once I swap the model
object... it goes back to the prompt value always.

mx:ComboBox id=referredByComboBox prompt=Select or type a value
editable=true dataProvider={model.availableReferredBy}
labelField=value change=model.client.referredBy=event.currentTarget.text
text={model.client.referredBy} /

Note, if I have a textinput bound to {model.client.referredBy} it does
display the correct value when the model is swapped.  So I know the value is
there.

Object Descriptions:
   model is [Bindable]
   model.availableReferredBy : ArrayCollection of a bindable object
   model.client  : Custom bindable object
   model.client.referredBy  : String

So... should this be possible or should I create a component that has a
dropdown attached to it that only updates the textinput on itemClick?


I can provide more information if needed.

Thanks for any help

--
Scotty Scott
http://www.franciswscott.com


RE: [flexcoders] editable combobox

2007-04-04 Thread Alex Harui
I think that's been reported as a bug.  Try setting the .text property
to the correct value.



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Scotty Scott
Sent: Wednesday, April 04, 2007 9:52 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] editable combobox



Hi everyone,

I am having a problem with an editable combobox displaying the text that
is stored in the model.

It works the first time the view is created, however once I swap the
model object... it goes back to the prompt value always. 

mx:ComboBox id=referredByComboBox prompt=Select or type a value
editable=true dataProvider={model.availableReferredBy}
labelField=value change=
model.client.referredBy=event.currentTarget.text
text={model.client.referredBy} /

Note, if I have a textinput bound to {model.client.referredBy} it does
display the correct value when the model is swapped.  So I know the
value is there. 

Object Descriptions:
model is [Bindable]
model.availableReferredBy : ArrayCollection of a bindable object
model.client  : Custom bindable object
model.client.referredBy   : String

So... should this be possible or should I create a component that has a
dropdown attached to it that only updates the textinput on itemClick?


I can provide more information if needed.

Thanks for any help

-- 
Scotty Scott
http://www.franciswscott.com http://www.franciswscott.com  

 


[flexcoders] editable combobox

2006-12-15 Thread Paul Hastings
i can't seem to catch hold of where user input data is going for
editable comboboxes. i've tried selectedLabel, selectedItem, cruising
the data provider, etc. i guess i'm missing something. do i need an
event listener for this?

thanks.


Re: [flexcoders] editable combobox

2006-12-15 Thread Daniel Freiman

text property.  This property is read-write in and editable combobox.  I
think it's read only with non-editable comboboxes.

- Dan

On 12/15/06, Paul Hastings [EMAIL PROTECTED] wrote:


  i can't seem to catch hold of where user input data is going for
editable comboboxes. i've tried selectedLabel, selectedItem, cruising
the data provider, etc. i guess i'm missing something. do i need an
event listener for this?

thanks.
 



Re: [flexcoders] editable combobox

2006-12-15 Thread Amol Pandhare
Hey Paul,

Are you talking about, how to get the value entered in the editable combobox. 
If yes, the use the combobox instance's value property.

Amol.

- Original Message 
From: Daniel Freiman [EMAIL PROTECTED]
To: flexcoders@yahoogroups.com
Sent: Friday, December 15, 2006 8:20:17 PM
Subject: Re: [flexcoders] editable combobox

text property.  This property is read-write in and editable combobox.  I think 
it's read only with non-editable comboboxes.

- Dan


On 12/15/06, Paul Hastings paul.hastings@ gmail.com wrote:
i can't seem to catch hold of where user input data is going for
editable comboboxes. i've tried selectedLabel, selectedItem, cruising
the data provider, etc. i guess i'm missing something. do i need an
event listener for this?

thanks.





__
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

Re: [flexcoders] editable combobox

2006-12-15 Thread Paul Hastings
On 12/15/06, Amol Pandhare [EMAIL PROTECTED] wrote:

 Are you talking about, how to get the value entered in the editable combobox. 
 If yes, the use the combobox instance's value property.

yes, getting the data. the text property seems to work, is value preferred?

thanks.


Re: [flexcoders] editable combobox

2006-12-15 Thread Paul Hastings
On 12/15/06, Daniel Freiman [EMAIL PROTECTED] wrote:

text property.  This property is read-write in and editable combobox.  I 
 think it's read only with non-editable comboboxes.

yup that did the trick. thanks daniel. btw is this documented
someplace i missed?


Re: [flexcoders] editable combobox

2006-12-15 Thread Daniel Freiman

It's a member of ComboBase so if you looked in the API and weren't showing
inherited properties then you would have missed it.

- Dan

On 12/15/06, Paul Hastings [EMAIL PROTECTED] wrote:


  On 12/15/06, Daniel Freiman [EMAIL PROTECTED] FreimanCQ%40gmail.com
wrote:

 text property. This property is read-write in and editable combobox. I
think it's read only with non-editable comboboxes.

yup that did the trick. thanks daniel. btw is this documented
someplace i missed?
 



Re: [flexcoders] Editable ComboBox Display Problem

2005-08-03 Thread Manish Jethani
On 8/3/05, matthew_zju [EMAIL PROTECTED] wrote:

   Listed is a simple case,
 
 mx:Application xmlns:mx=http://www.macromedia.com/2003/mxml;
mx:ComboBox width=120 editable=true
   mx:dataProvider
  mx:Array
mx:Object label=Engineering /
 mx:Object label=Product Management /
mx:Object label=Marketing /
  /mx:Array
   /mx:dataProvider
/mx:ComboBox
 /mx:Application
 
For example, when select Product Management, the text field
 value is Management. Any ideas?

Workaround:

  mx:ComboBox width=120 editable=true
change=doLater(Selection, 'setSelection', [0, 0])

Manish


 Yahoo! Groups Sponsor ~-- 
font face=arial size=-1a 
href=http://us.ard.yahoo.com/SIG=12hrrmnp3/M=362131.6882499.7825260.1510227/D=groups/S=1705007207:TM/Y=YAHOO/EXP=1123098715/A=2889191/R=0/SIG=10r90krvo/*http://www.thebeehive.org
Get Bzzzy! (real tools to help you find a job) Welcome to the Sweet Life 
- brought to you by One Economy/a./font
~- 

--
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

* To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

* Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
 




Re: [flexcoders] Editable Combobox and restrict

2005-04-19 Thread Manish Jethani

On 4/20/05, Mika Kiljunen [EMAIL PROTECTED] wrote:

 I noticed that if you have an editable ComboBox and you set
 restrict=0123456789 on mxml it won't work ( won't restrict). But if you
 set it on actionscript (ie. on CreationComplete) it works (does restrict).
 Nice bug / feature? 

I've logged a bug and will be fixed.  Thanks!

-- 
[EMAIL PROTECTED]
http://manish.revise.org/


 
Yahoo! Groups Links

* To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

* Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
 





RE: [flexcoders] Editable Combobox and restrict

2005-04-19 Thread Gordon Smith
Title: Message





Bug. 
Could you please file it?

- 
Gordon

  
  -Original Message-From: 
  flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] 
  Sent: Tuesday, April 19, 2005 3:09 PMTo: 
  flexcoders@yahoogroups.comSubject: [flexcoders] Editable Combobox 
  and restrict
  
  I noticed that if you have an 
  editable ComboBox and you set restrict="0123456789" on mxml it won't work ( 
  won't restrict). But if you set it on actionscript (ie. on CreationComplete) 
  it works (does restrict). Nice bug / feature?
  
  -Mika







Yahoo! Groups Links

To visit your group on the web, go to:http://groups.yahoo.com/group/flexcoders/
To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.










[flexcoders] Editable Combobox and restrict

2005-04-19 Thread Mika Kiljunen










I noticed that if you have an editable ComboBox and you set
restrict=0123456789 on mxml it wont work ( wont
restrict). But if you set it on actionscript (ie. on CreationComplete) it works
(does restrict). Nice bug / feature?



-Mika











Yahoo! Groups Links

To visit your group on the web, go to:http://groups.yahoo.com/group/flexcoders/
To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.