RE: [flexcoders] Re: DataGrid not displaying nested data

2006-10-31 Thread Joan Lafferty












Try setting the resultFormat to xml or e4x
in your HTTPService tag. The default value for the resultFormat property is object
which takes the returned XML and parses it into an Actionscript object.



Joan











From:
flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of greenfishinwater
Sent: Tuesday, October 31, 2006
8:16 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: DataGrid
not displaying nested data











No I did not find any solution.

I am getting my data via rails, and I added logic to the rails
controller to create extra fields all at the same level, so I don't
have to get a nested value. Its a pain in the neck. But I have to try
and resolve this in a better way soon.

Andrew






__._,_.___





--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com








   






  
  
SPONSORED LINKS
  
  
  

Software development tool
  
  
Software development
  
  
Software development services
  
  


Home design software
  
  
Software development company
  

   
  






  
  Your email settings: Individual Email|Traditional 
  Change settings via the Web (Yahoo! ID required) 
  Change settings via email: Switch delivery to Daily Digest | Switch to Fully Featured 
   
Visit Your Group 
   |
  
Yahoo! Groups Terms of Use
   |
  
   Unsubscribe 
   
 

  




__,_._,___






RE: [flexcoders] Re: DataGrid not displaying nested data

2006-10-31 Thread Tracy Spratt












I dont see where you mentioned or
anyone suggested a labelFunction(). Will that not work for you?



If your dataProvider item is an e4x xml
node, then it is easy to use the selection expressions to get data from any
nested level you want.



Tracy











From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of greenfishinwater
Sent: Tuesday, October 31, 2006
11:16 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: DataGrid
not displaying nested data











No I did not find any solution.

I am getting my data via rails, and I added logic to the rails
controller to create extra fields all at the same level, so I don't
have to get a nested value. Its a pain in the neck. But I have to try
and resolve this in a better way soon.

Andrew






__._,_.___





--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com








   






  
  
SPONSORED LINKS
  
  
  

Software development tool
  
  
Software development
  
  
Software development services
  
  


Home design software
  
  
Software development company
  

   
  






  
  Your email settings: Individual Email|Traditional 
  Change settings via the Web (Yahoo! ID required) 
  Change settings via email: Switch delivery to Daily Digest | Switch to Fully Featured 
   
Visit Your Group 
   |
  
Yahoo! Groups Terms of Use
   |
  
   Unsubscribe 
   
 

  




__,_._,___






Re: [flexcoders] Re: DataGrid not displaying nested data

2006-10-31 Thread Luis Eduardo


Tracy,

after some search and tests i found:
- labelFunction indeed works. But it is a implicit workaround for one 
limitation of the actionscript 3 and not the Datagrid itself. (there is 
one line of code inside the datagrid class that take the data using: 
data = data[dataField] and if dataField isn't a leaf of a xml, this 
isn't rigth evaluated )
- if we use the labelFunction, than re-sort with clicking on the 
datagridcolumn doesn't work anymore. So we need to code sorting too.
- another way to solve this problem is to extend datagrid and code the 
proper workaround OR give the data already on a format datagrid likes 
(like greenfishinwaterr made )

i cant use the solution of greenfishinwater because there are already 
too code on the servlets (and i dont want the idea of having a strange 
response xml format without any nested data) so i extend my datagrid and 
coded the labelFunction inside the new class.

it all works... but if data[dataField] evaluates rigth as we expect, too 
much people using datagrids would not need to code labelFunction for 
basic nested data manipulatiuons (i understand this function is great 
and have to be there... but if i would need some column that are 
calculations of another or something like that.. not to fetch nested data).

did you know when they will release a Flex 2.0.1 with some fixes?
did you know if xml evaluator like data[dataField] (when dataField is 
something like [EMAIL PROTECTED]) will be improved 
someday?

[]'s,

Luís Eduardo.



Tracy Spratt escreveu:

 I don’t see where you mentioned or anyone suggested a labelFunction(). 
 Will that not work for you?

 If your dataProvider item is an e4x xml node, then it is easy to use 
 the selection expressions to get data from any nested level you want.

 Tracy

 

 *From:* flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] 
 *On Behalf Of *greenfishinwater
 *Sent:* Tuesday, October 31, 2006 11:16 AM
 *To:* flexcoders@yahoogroups.com
 *Subject:* [flexcoders] Re: DataGrid not displaying nested data

 No I did not find any solution.

 I am getting my data via rails, and I added logic to the rails
 controller to create extra fields all at the same level, so I don't
 have to get a nested value. Its a pain in the neck. But I have to try
 and resolve this in a better way soon.

 Andrew

  







___ 
Você quer respostas para suas perguntas? Ou você sabe muito e quer compartilhar 
seu conhecimento? Experimente o Yahoo! Respostas !
http://br.answers.yahoo.com/


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