[flexcoders] Re: get selected datagrid dynamically

2009-01-12 Thread Jason B
also tried

create_test.text =
parentApplication.reftables_grid.selecteditem.this[fieldname];



RE: [flexcoders] Re: get selected datagrid dynamically

2009-01-12 Thread Tracy Spratt
Bracket notation replaces dot notation, so try:

create_test.text =
parentApplication.reftables_grid.selectedItem[fieldname];

 

Tracy Spratt 
Lariat Services 

Flex development bandwidth available 



From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On
Behalf Of Jason B
Sent: Monday, January 12, 2009 10:00 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: get selected datagrid dynamically

 

also tried

create_test.text =
parentApplication.reftables_grid.selecteditem.this[fieldname];

 



[flexcoders] Re: get selected datagrid dynamically

2009-01-12 Thread Jason B
It's funny after i posted i tried that but then it still threw an
error, it wasn't until you posted the same thing i went back and seen
i had a lowercase I in selecteditem instead of selectedItem
:( i need some coffee


--- In flexcoders@yahoogroups.com, Tracy Spratt tspr...@... wrote:

 Bracket notation replaces dot notation, so try:
 
 create_test.text =
 parentApplication.reftables_grid.selectedItem[fieldname];
 
  
 
 Tracy Spratt 
 Lariat Services 
 
 Flex development bandwidth available 
 
 
 
 From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On
 Behalf Of Jason B
 Sent: Monday, January 12, 2009 10:00 AM
 To: flexcoders@yahoogroups.com
 Subject: [flexcoders] Re: get selected datagrid dynamically
 
  
 
 also tried
 
 create_test.text =
 parentApplication.reftables_grid.selecteditem.this[fieldname];