[flexcoders] ComboBox dataBinding complexData

2006-11-05 Thread devisbalsemin
Hi i have a problem to binding a comboBox with a complex data can you
help me pls.
Here my code

[Bindable]
private var lkreparti:ArrayCollection = new ArrayCollection();
private var dsReparti:DataService;
dsReparti = new DataService("reparti");
dsReparti.fill(lkreparti);
dsReparti.autoCommit = false;





   
 




Here my class ActionScript 


package com.visitatori.vo
{
import mx.utils.ArrayUtil;
import mx.collections.ArrayCollection;

 [Managed]
 [RemoteClass(alias="com.visitatori.vo.Trsp001")]


public class Trsp001
{
 public function Trsp001() {}
 public var rsppkid:int;
 public var rspcgn:String="";
 public var rspnme:String="";
 public var rspsct:String="";
 public var trpr001:Trpr001= new Trpr001();
   

}
}


package com.visitatori.vo
{
import mx.collections.ArrayCollection;

 [Managed]
 [RemoteClass(alias="com.visitatori.vo.Trpr001")]
 
public class Trpr001
{
 public function Trpr001() {}
 public var rprpkid:Number;
 public var rprdsc:String="";
 public var tbdg001s:ArrayCollection=new
ArrayCollection();
}
}









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

<*> Your email settings:
Individual Email | Traditional

<*> To change settings online go to:
http://groups.yahoo.com/group/flexcoders/join
(Yahoo! ID required)

<*> To change settings via email:
mailto:[EMAIL PROTECTED] 
mailto:[EMAIL PROTECTED]

<*> 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] ComboBox databinding

2005-03-16 Thread Abdul Qabiz
> Untyping variables is generally a poor workaround
Yeah Matt! 

That's why, I wanted you answer this...

-abdul



From: Matt Chotin [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, March 15, 2005 11:23 PM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] ComboBox databinding







The value of ComboBox is typed as Object, but if it's a String then you can
cast it.



Untyping variables is generally a poor workaround J



Matt







From: Tom Fitzpatrick [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, March 15, 2005 9:16 AM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] ComboBox databinding



At 10:44 AM 3/15/2005, you wrote:

Abdul -

That worked - thanks!

I'm still troubled as to why I can't set types for the variables in my 
value object, though - if anyone has an idea.

- Tom

>I leave this for Matt, he is Binding guru :)
>
>I just removed type annotation from VO
>
>class EmployeeOptions
>{
> public var firstname;
> public var lastname;
> public var country;
>}
>
>
>
>I see no error
>
>Stay tuned..
>
>-abdul
>
>
>-Original Message-
>From: Tom Fitzpatrick [mailto:[EMAIL PROTECTED]
>Sent: Tuesday, March 15, 2005 6:58 PM
>To: flexcoders@yahoogroups.com
>Subject: RE: [flexcoders] ComboBox databinding
>
>
>Hi -
>
>Your example works fine, but when I try to achieve a similar binding using
>a value object defined as an external class, I get a type mismatch error:
>
>"Type mismatch in assignment statement: found Object where String is
>required".
>
>Here are some more details of my test setup.
>
>I have a value object defined as a class:
>
>class EmployeeOptions
>{
> public var firstname:String;
> public var lastname:String;
> public var country:String;
>}
>
>In a component called Employee, I've instantiated the class as:
>
>
>
>I'm trying to bind it from text fields and the comboBox this way:
>
> 
> 
> 
>
>To return values to my component, I've created a delegate called
>EmployeeDelegate. This is instantiated in the component as:
>
>
>
>I'm trying to call methods in the delegate to populate the component with
>constructions such as:
>
>text="{delegate.getEmployeeName(vo.firstname,vo.lastname)}"/>
>
>This setup works just fine with the text fields, but the comboBox gives me
>the type mismatch error when I use the above bindings.
>
>Help!
>
>- Tom
>
>
>
>
>
>At 08:38 PM 3/14/2005, you wrote:
> >Hi,
> >
> >I don't have the book so couldn't look at the code...I know code is
> >available somewhere online, but me being lazy :)
> >
> >However, following code might help you...
> >
> >###mxBindingTest.mxml###
> > >xmlns:mx="<<http://www.macromedia.com/2003/mxml>http://www.macromedia.com

> /2003/mxml>http://www.macromedia.com/20
>03/mxml"
> > >
> >
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > India
> > USA
> > 
> > 
> > 
> > 
> > 
> >
> > 
> > 
> > 
> > 
> > 
> > 
> > /
> > 
> > 
> > 
> >
> > 
> >
> >  >destination="myEmployee.name.first" />
> >  >destination="myEmployee.name.last" />
> >  >destination="myEmployee.department"/>
> > 
> >  >destination="myEmployee.country"/>
> >
> >
> > 
> >
> >
> > 
> >
> >
> >
> >Notice how combobox box is bound to a Model and Model is bound to
> >TextInput...
> >
> >-abdul
> >
> >-Original Message-
> >From: Tom Fitzpatrick [mailto:[EMAIL PROTECTED]
> >Sent: Tuesday, March 15, 2005 6:01 AM
> >To: flexcoders@yahoogroups.com
> >Subject: [flexcoders] ComboBox databinding
> >
> >
> >I'm trying to create an application based on the LoanCalculator example
in
> >the Webster/McLeod book.
> >
> >Everything's working fine for simple bindings between text inputs on a
form
> >and the value object. Where I'm having trouble creating a databinding
> >between a comboBox in the form and the value object. When the user
selects
> >an item in the comboBox it should be stored as a string in the value
>object.
> >
> >What's the way to accomplish this? All the value object variables are
> >public, as in the book example.
> >
> 

RE: [flexcoders] ComboBox databinding

2005-03-15 Thread Tom Fitzpatrick
At 12:52 PM 3/15/2005, you wrote:
Matt -
Agreed - thanks for the solution!
- Tom

The value of ComboBox is typed as Object, but if it's a String then you 
can cast it.

Untyping variables is generally a poor workaround J
Matt

--
From: Tom Fitzpatrick [mailto:[EMAIL PROTECTED]
Sent: Tuesday, March 15, 2005 9:16 AM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] ComboBox databinding
At 10:44 AM 3/15/2005, you wrote:
Abdul -
That worked - thanks!
I'm still troubled as to why I can't set types for the variables in my
value object, though - if anyone has an idea.
- Tom
>I leave this for Matt, he is Binding guru :)
>
>I just removed type annotation from VO
>
>class EmployeeOptions
>{
> public var firstname;
> public var lastname;
> public var country;
>}
>
>
>
>I see no error
>
>Stay tuned..
>
>-abdul
>
>
>-Original Message-
>From: Tom Fitzpatrick [mailto:[EMAIL PROTECTED]
>Sent: Tuesday, March 15, 2005 6:58 PM
>To: flexcoders@yahoogroups.com
>Subject: RE: [flexcoders] ComboBox databinding
>
>
>Hi -
>
>Your example works fine, but when I try to achieve a similar binding using
>a value object defined as an external class, I get a type mismatch error:
>
>"Type mismatch in assignment statement: found Object where String is
>required".
>
>Here are some more details of my test setup.
>
>I have a value object defined as a class:
>
>class EmployeeOptions
>{
> public var firstname:String;
> public var lastname:String;
> public var country:String;
>}
>
>In a component called Employee, I've instantiated the class as:
>
>
>
>I'm trying to bind it from text fields and the comboBox this way:
>
> 
> 
> 
>
>To return values to my component, I've created a delegate called
>EmployeeDelegate. This is instantiated in the component as:
>
>
>
>I'm trying to call methods in the delegate to populate the component with
>constructions such as:
>
>
>text="{delegate.getEmployeeName(vo.firstname,vo.lastname)}"/>
>
>This setup works just fine with the text fields, but the comboBox gives me
>the type mismatch error when I use the above bindings.
>
>Help!
>
>- Tom
>
>
>
>
>
>At 08:38 PM 3/14/2005, you wrote:
> >Hi,
> >
> >I don't have the book so couldn't look at the code...I know code is
> >available somewhere online, but me being lazy :)
> >
> >However, following code might help you...
> >
> >###mxBindingTest.mxml###
> >
> >xmlns:mx="<<<http://www.macromedia.com/2003/mxml>http://www.macromedia. 
com/2003/mxml>http://www.macromedia.com
> /2003/mxml><http://www.macromedia.com/20>http://www.macromedia.com/20
>03/mxml"
> > >
> >
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > India
> > USA
> > 
> > 
> > 
> > 
> > 
> >
> > 
> > 
> > 
> > 
> > 
> > 
> > /
> > 
> > 
> > 
> >
> > 
> >
> > 
> >destination="myEmployee.name.first" />
> > 
> >destination="myEmployee.name.last" />
> > 
> >destination="myEmployee.department"/>
> > 
> > 
> >destination="myEmployee.country"/>
> >
> >
> > 
> >
> >
> > 
> >
> >
> >
> >Notice how combobox box is bound to a Model and Model is bound to
> >TextInput...
> >
> >-abdul
> >
> >-Original Message-
> >From: Tom Fitzpatrick [mailto:[EMAIL PROTECTED]
> >Sent: Tuesday, March 15, 2005 6:01 AM
> >To: flexcoders@yahoogroups.com
> >Subject: [flexcoders] ComboBox databinding
> >
> >
> >I'm trying to create an application based on the LoanCalculator example in
> >the Webster/McLeod book.
> >
> >Everything's working fine for simple bindings between text inputs on a 
form
> >and the value object. Where I'm having trouble creating a databinding
> >between a comboBox in the form and the value object. When the user selects
> >an item in the comboBox it should be stored as a string in the value
>object.
> >
> >What's the way to accomplish this? All the value object variables are
> >public, as in the book example.
> >
> >Specifically, what would the  statement look like? A simple
> >example would be even better.
> >
> >Thanks.
> >
> >- Tom
> >
> >

RE: [flexcoders] ComboBox databinding

2005-03-15 Thread Matt Chotin










 

The value of ComboBox is typed as Object, but if it’s a String
then you can cast it.

 

Untyping variables is generally a poor workaround J

 

Matt



 









From: Tom Fitzpatrick
[mailto:[EMAIL PROTECTED] 
Sent: Tuesday, March 15, 2005 9:16
AM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] ComboBox
databinding



 

At 10:44 AM 3/15/2005, you wrote:

Abdul -

That worked - thanks!

I'm still troubled as to why I can't set types for
the variables in my 
value object, though - if anyone has an idea.

- Tom

>I leave this for Matt, he is Binding guru :)
>
>I just removed type annotation from VO
>
>class EmployeeOptions
>{
> 
public var firstname;
> 
public var lastname;
> 
public var country;
>}
>
>
>
>I see no error
>
>Stay tuned..
>
>-abdul
>
>
>-Original Message-
>From: Tom Fitzpatrick
[mailto:[EMAIL PROTECTED]
>Sent: Tuesday, March 15, 2005 6:58 PM
>To: flexcoders@yahoogroups.com
>Subject: RE: [flexcoders] ComboBox databinding
>
>
>Hi -
>
>Your example works fine, but when I try to
achieve a similar binding using
>a value object defined as an external class, I
get a type mismatch error:
>
>"Type mismatch in assignment statement:
found Object where String is
>required".
>
>Here are some more details of my test setup.
>
>I have a value object defined as a class:
>
>class EmployeeOptions
>{
> 
public var firstname:String;
> 
public var lastname:String;
> 
public var country:String;
>}
>
>In a component called Employee, I've
instantiated the class as:
>
>
>
>I'm trying to bind it from text fields and the
comboBox this way:
>
> 

> 

> 

>
>To return values to my component, I've created
a delegate called
>EmployeeDelegate. This is instantiated in the
component as:
>
>
>
>I'm trying to call methods in the delegate to
populate the component with
>constructions such as:
>
>
>text="{delegate.getEmployeeName(vo.firstname,vo.lastname)}"/>
>
>This setup works just fine with the text
fields, but the comboBox gives me
>the type mismatch error when I use the above
bindings.
>
>Help!
>
>- Tom
>
>
>
>
>
>At 08:38 PM 3/14/2005, you wrote:
> >Hi,
> >
> >I don't have the book so couldn't look at
the code...I know code is
> >available somewhere online, but me being
lazy :)
> >
> >However, following code might help you...
> >
> >###mxBindingTest.mxml###
> >
> >xmlns:mx="<<http://www.macromedia.com/2003/mxml>http://www.macromedia.com 
> /2003/mxml>http://www.macromedia.com/20
>03/mxml"
> > >
> >
> >  

>
>

>
>  

>
>

>
>  

>
>  

>
>

>
>  

>
>  

>
>

>
>  

>
>  

>
>

>
>  

>
>  

>
>  

>
>  

>
>  

> >  
India
>
>  
USA
>
>  

>
>

>
>  

>
>  

>
>

> >
> >  

> >  

>
>

>
>  

>
>  

>
>

>
>
/
>
>

>
>    

> >  

> >
> >  

> >
> >  

>
>destination="myEmployee.name.first" />
> >  

>
>destination="myEmployee.name.last" />
> >  

> >destination="myEmployee.department"/>
> >  

> >  

>
>destination="myEmployee.country"/>
> >
> >
> >  

> >
> >
> >  

> >
> >
> >
> >Notice how combobox box is bound toa
Model and Model is bound to
> >TextInput...
> >
> >-abdul
> >
> >-Original Message-
> >From: Tom Fitzpatrick
[mailto:[EMAIL PROTECTED]
> >Sent: Tuesday, March 15, 2005 6:01 AM
> >To: flexcoders@yahoogroups.com
> >Subject: [flexcoders] ComboBox
databinding
> >
> >
> >I'm trying to create an applicationbased
on the LoanCalculator example in
> >the Webster/McLeod book.
> >
> >Everything's worki

RE: [flexcoders] ComboBox databinding

2005-03-15 Thread Tom Fitzpatrick
At 10:44 AM 3/15/2005, you wrote:
Abdul -
That worked - thanks!
I'm still troubled as to why I can't set types for the variables in my 
value object, though - if anyone has an idea.

- Tom
I leave this for Matt, he is Binding guru :)
I just removed type annotation from VO
class EmployeeOptions
{
public var firstname;
public var lastname;
public var country;
}

I see no error
Stay tuned..
-abdul
-Original Message-
From: Tom Fitzpatrick [mailto:[EMAIL PROTECTED]
Sent: Tuesday, March 15, 2005 6:58 PM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] ComboBox databinding
Hi -
Your example works fine, but when I try to achieve a similar binding using
a value object defined as an external class, I get a type mismatch error:
"Type mismatch in assignment statement: found Object where String is
required".
Here are some more details of my test setup.
I have a value object defined as a class:
class EmployeeOptions
{
public var firstname:String;
public var lastname:String;
public var country:String;
}
In a component called Employee, I've instantiated the class as:

I'm trying to bind it from text fields and the comboBox this way:



To return values to my component, I've created a delegate called
EmployeeDelegate. This is instantiated in the component as:

I'm trying to call methods in the delegate to populate the component with
constructions such as:

This setup works just fine with the text fields, but the comboBox gives me
the type mismatch error when I use the above bindings.
Help!
- Tom


At 08:38 PM 3/14/2005, you wrote:
>Hi,
>
>I don't have the book so couldn't look at the code...I know code is
>available somewhere online, but me being lazy :)
>
>However, following code might help you...
>
>###mxBindingTest.mxml###
>
>xmlns:mx="<<http://www.macromedia.com/2003/mxml>http://www.macromedia.com 
/2003/mxml>http://www.macromedia.com/20
03/mxml"
> >
>
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> India
> USA
> 
> 
> 
> 
> 
>
> 
> 
> 
> 
> 
> 
> /
> 
> 
> 
>
> 
>
> 
>destination="myEmployee.name.first" />
> 
>destination="myEmployee.name.last" />
> 
>destination="myEmployee.department"/>
> 
> 
>destination="myEmployee.country"/>
>
>
> 
>
>
> 
>
>
>
>Notice how combobox box is bound to a Model and Model is bound to
>TextInput...
>
>-abdul
>
>-Original Message-
>From: Tom Fitzpatrick [mailto:[EMAIL PROTECTED]
>Sent: Tuesday, March 15, 2005 6:01 AM
>To: flexcoders@yahoogroups.com
>Subject: [flexcoders] ComboBox databinding
>
>
>I'm trying to create an application based on the LoanCalculator example in
>the Webster/McLeod book.
>
>Everything's working fine for simple bindings between text inputs on a form
>and the value object. Where I'm having trouble creating a databinding
>between a comboBox in the form and the value object. When the user selects
>an item in the comboBox it should be stored as a string in the value
object.
>
>What's the way to accomplish this? All the value object variables are
>public, as in the book example.
>
>Specifically, what would the  statement look like? A simple
>example would be even better.
>
>Thanks.
>
>- Tom
>
>
>
>
>
>
>
>Yahoo! Groups Links
>
>
>
>
>
>
>
>
>Yahoo! Groups Sponsor
>ADVERTISEMENT
><<http://us.ard.yahoo.com/SIG=129m8jrlh/M=298184.6018725.7038619.3001176/ 
D=g>http://us.ard.yahoo.com/SIG=129m8jrlh/M=298184.6018725.7038619.3001176/D=g
roups/S=1705007207:HM/EXP=1110937115/A=2593423/R=0/SIG=11el9gslf/*<http://www>http://www
.netflix.com/Default?mqso=60190075>
>click here
>
>[]
>
>
>
>--
>Yahoo! Groups Links
> * To visit your group on the web, go to:
> *
>
<<http://groups.yahoo.com/group/flexcoders/>http://groups.yahoo.com/group/flexcoders/>http://groups.yahoo.com/group/fle
xcoders/
>
> *
> * To unsubscribe from this group, send an email to:
> *
>
<mailto:[EMAIL PROTECTED]>flexcoder
[EMAIL PROTECTED]
>
> *
> * Your use of Yahoo! Groups is subject to the
> 
<<http://docs.yahoo.com/info/terms/>http://docs.yahoo.com/info/terms/>Yahoo! 
Terms of Service.




Yahoo! Groups Links



Yahoo! Groups Sponsor
ADVERTISEMENT
<http://us.ard.yahoo.com/SIG=129amadpa/M=298184.6018725.7038619.3001176/D=groups/S=1705007207:HM/EXP=1110988083/A=2593423/R=0/SIG=11el9gslf/*http://www.netflix.com/Default?mqso=60190075>
click here
[]

--
Yahoo! Groups Links
* To visit your group on the web, go to:
* 
<http://groups.yahoo.com/group/flexcoders/>http://groups.yahoo.com/group/flexcoders/ 

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

*
* Your use of Yahoo! Groups is subject to the 
<http://docs.yahoo.com/info/terms/>Yahoo! Terms of Service.





RE: [flexcoders] ComboBox databinding

2005-03-15 Thread Abdul Qabiz
I leave this for Matt, he is Binding guru :)

I just removed type annotation from VO

class EmployeeOptions
{
public var firstname;
public var lastname;
public var country;
}



I see no error

Stay tuned..

-abdul


-Original Message-
From: Tom Fitzpatrick [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, March 15, 2005 6:58 PM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] ComboBox databinding


Hi -

Your example works fine, but when I try to achieve a similar binding using 
a value object defined as an external class, I get a type mismatch error:

"Type mismatch in assignment statement: found Object where String is
required".

Here are some more details of my test setup.

I have a value object defined as a class:

class EmployeeOptions
{
public var firstname:String;
public var lastname:String;
public var country:String;
}

In a component called Employee, I've instantiated the class as:



I'm trying to bind it from text fields and the comboBox this way:





To return values to my component, I've created a delegate called 
EmployeeDelegate. This is instantiated in the component as:



I'm trying to call methods in the delegate to populate the component with 
constructions such as:



This setup works just fine with the text fields, but the comboBox gives me 
the type mismatch error when I use the above bindings.

Help!

- Tom





At 08:38 PM 3/14/2005, you wrote:
>Hi,
>
>I don't have the book so couldn't look at the code...I know code is
>available somewhere online, but me being lazy :)
>
>However, following code might help you...
>
>###mxBindingTest.mxml###
>xmlns:mx="<http://www.macromedia.com/2003/mxml>http://www.macromedia.com/20
03/mxml" 
> >
>
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> India
> USA
> 
> 
> 
> 
> 
>
> 
> 
> 
> 
> 
> 
> /
> 
> 
> 
>
> 
>
> destination="myEmployee.name.first" />
> destination="myEmployee.name.last" />
> destination="myEmployee.department"/>
> 
> destination="myEmployee.country"/>
>
>
> 
>
>
> 
>
>
>
>Notice how combobox box is bound to a Model and Model is bound to
>TextInput...
>
>-abdul
>
>-Original Message-
>From: Tom Fitzpatrick [mailto:[EMAIL PROTECTED]
>Sent: Tuesday, March 15, 2005 6:01 AM
>To: flexcoders@yahoogroups.com
>Subject: [flexcoders] ComboBox databinding
>
>
>I'm trying to create an application based on the LoanCalculator example in
>the Webster/McLeod book.
>
>Everything's working fine for simple bindings between text inputs on a form
>and the value object. Where I'm having trouble creating a databinding
>between a comboBox in the form and the value object. When the user selects
>an item in the comboBox it should be stored as a string in the value
object.
>
>What's the way to accomplish this? All the value object variables are
>public, as in the book example.
>
>Specifically, what would the  statement look like? A simple
>example would be even better.
>
>Thanks.
>
>- Tom
>
>
>
>
>
>
>
>Yahoo! Groups Links
>
>
>
>
>
>
>
>
>Yahoo! Groups Sponsor
>ADVERTISEMENT
><http://us.ard.yahoo.com/SIG=129m8jrlh/M=298184.6018725.7038619.3001176/D=g
roups/S=1705007207:HM/EXP=1110937115/A=2593423/R=0/SIG=11el9gslf/*http://www
.netflix.com/Default?mqso=60190075>
>click here
>
>[]
>
>
>
>--
>Yahoo! Groups Links
> * To visit your group on the web, go to:
> * 
>
<http://groups.yahoo.com/group/flexcoders/>http://groups.yahoo.com/group/fle
xcoders/ 
>
> *
> * To unsubscribe from this group, send an email to:
> * 
>
<mailto:[EMAIL PROTECTED]>flexcoder
[EMAIL PROTECTED] 
>
> *
> * Your use of Yahoo! Groups is subject to the 
> <http://docs.yahoo.com/info/terms/>Yahoo! Terms of Service.







Yahoo! Groups Links











RE: [flexcoders] ComboBox databinding

2005-03-15 Thread Tom Fitzpatrick
Hi -
Your example works fine, but when I try to achieve a similar binding using 
a value object defined as an external class, I get a type mismatch error:

"Type mismatch in assignment statement: found Object where String is required".
Here are some more details of my test setup.
I have a value object defined as a class:
class EmployeeOptions
{
public var firstname:String;
public var lastname:String;
public var country:String;
}
In a component called Employee, I've instantiated the class as:

I'm trying to bind it from text fields and the comboBox this way:



To return values to my component, I've created a delegate called 
EmployeeDelegate. This is instantiated in the component as:


I'm trying to call methods in the delegate to populate the component with 
constructions such as:



This setup works just fine with the text fields, but the comboBox gives me 
the type mismatch error when I use the above bindings.

Help!
- Tom


At 08:38 PM 3/14/2005, you wrote:
Hi,
I don't have the book so couldn't look at the code...I know code is
available somewhere online, but me being lazy :)
However, following code might help you...
###mxBindingTest.mxml###

xmlns:mx="<http://www.macromedia.com/2003/mxml>http://www.macromedia.com/2003/mxml"; 
>



















India
USA











/












Notice how combobox box is bound to a Model and Model is bound to
TextInput...
-abdul
-Original Message-
From: Tom Fitzpatrick [mailto:[EMAIL PROTECTED]
Sent: Tuesday, March 15, 2005 6:01 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] ComboBox databinding
I'm trying to create an application based on the LoanCalculator example in
the Webster/McLeod book.
Everything's working fine for simple bindings between text inputs on a form
and the value object. Where I'm having trouble creating a databinding
between a comboBox in the form and the value object. When the user selects
an item in the comboBox it should be stored as a string in the value object.
What's the way to accomplish this? All the value object variables are
public, as in the book example.
Specifically, what would the  statement look like? A simple
example would be even better.
Thanks.
- Tom



Yahoo! Groups Links



Yahoo! Groups Sponsor
ADVERTISEMENT
<http://us.ard.yahoo.com/SIG=129m8jrlh/M=298184.6018725.7038619.3001176/D=groups/S=1705007207:HM/EXP=1110937115/A=2593423/R=0/SIG=11el9gslf/*http://www.netflix.com/Default?mqso=60190075>
click here
[]

--
Yahoo! Groups Links
* To visit your group on the web, go to:
* 
<http://groups.yahoo.com/group/flexcoders/>http://groups.yahoo.com/group/flexcoders/ 

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

*
* Your use of Yahoo! Groups is subject to the 
<http://docs.yahoo.com/info/terms/>Yahoo! Terms of Service.





RE: [flexcoders] ComboBox databinding

2005-03-15 Thread Abdul Qabiz
Hi,

I don't have the book so couldn't look at the code...I know code is
available somewhere online, but me being lazy :)

However, following code might help you...

###mxBindingTest.mxml###
http://www.macromedia.com/2003/mxml"; >











  







India
USA 












/




















Notice how combobox box is bound to a Model and Model is bound to
TextInput...

-abdul 

-Original Message-
From: Tom Fitzpatrick [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, March 15, 2005 6:01 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] ComboBox databinding


I'm trying to create an application based on the LoanCalculator example in 
the Webster/McLeod book.

Everything's working fine for simple bindings between text inputs on a form 
and the value object. Where I'm having trouble creating a databinding 
between a comboBox in the form and the value object. When the user selects 
an item in the comboBox it should be stored as a string in the value object.

What's the way to accomplish this? All the value object variables are 
public, as in the book example.

Specifically, what would the  statement look like? A simple 
example would be even better.

Thanks.

- Tom







Yahoo! Groups Links











ComboBox databinding

2005-03-15 Thread Tom Fitzpatrick
I'm trying to create an application based on the LoanCalculator example in 
the Webster/McLeod book.

Everything's working fine for simple bindings between text inputs on a form 
and the value object. Where I'm having trouble creating a databinding 
between a comboBox in the form and the value object. When the user selects 
an item in the comboBox it should be stored as a string in the value object.

What's the way to accomplish this? All the value object variables are 
public, as in the book example.

Specifically, what would the  statement look like? A simple 
example would be even better.

Thanks.
- Tom