RE: [flexcoders] DataGrid DataProvider question

2006-09-07 Thread Tracy Spratt












I think the service object
is already at the root (result) node, try: 

dg.dataProvider = service.function_set;



Also, I am surprised lastResult works in
the AS code. As I understand, you should only use lastResult in binding
expressions, but use event.result in handler functions.



Tracy











From:
flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of sinacapho
Sent: Wednesday, September 06,
2006 11:58 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] DataGrid
DataProvider question











Dear all,
i have face a problem about dataprovider .Actually it is about
data model 
For example i can run this with no problem

dg.dataProvider = exec_function.lastResult // HttpService result

But when i assign it to a model , say:

mx:Model id=service
result
function_set{exec_function.lastResult}/function_set
/result
/mx:Model 

and then assign it to the datagrid

dg.dataProvider = service.result.function_set

Nothing have been show.

Can someone help me?

thx
capho






__._,_.___





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

  




__,_._,___






[flexcoders] DataGrid DataProvider question

2006-09-06 Thread sinacapho
Dear all,
  i have face a problem about dataprovider .Actually it is about
data model 
  For example i can run this with no problem

  dg.dataProvider = exec_function.lastResult  // HttpService result

  But when i assign it to a model , say:

  mx:Model id=service
 result
 function_set{exec_function.lastResult}/function_set
 /result
  /mx:Model 

  and then assign it to the datagrid

  dg.dataProvider = service.result.function_set

  Nothing have been show.


   Can someone help me?

thx
capho






 Yahoo! Groups Sponsor ~-- 
See what's inside the new Yahoo! Groups email.
http://us.click.yahoo.com/3EuRwD/bOaOAA/yQLSAA/nhFolB/TM
~- 

--
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: DataGrid / dataProvider question

2005-02-26 Thread viraf_bankwalla

Thanks - I ended up using a cellRenderer. Now another question - is 
the headerRenderer the same as a cellRenderer? 

- viraf

--- In flexcoders@yahoogroups.com, Matt Chotin [EMAIL PROTECTED] wrote:
 You're going to need to look into using labelFunction to return 
the values
 you want.
 
 
 
 Matt
 
 
 
 _ 
 
 From: viraf_bankwalla [mailto:[EMAIL PROTECTED] 
 Sent: Friday, February 25, 2005 7:14 PM
 To: flexcoders@yahoogroups.com
 Subject: [flexcoders] Re: DataGrid / dataProvider question
 
 
 
 
 Thanks. Can one specify a hierachy for the column name, such as 
 
 mx:DataGridColumn columnName=cat.product.123 ... ?
 
 --- In flexcoders@yahoogroups.com, Manish Jethani 
 [EMAIL PROTECTED] wrote:
  viraf_bankwalla wrote:
  
   I have an xml document that has the following form
   
   categories
   category id=123 name=abc
   products
   product id=123 name=def
   price12.54/price 
   /product
  
  [snip]
  
   of each product in the category. My question is how do I 
 specify 
   the reference to a specific 
   product in DataGridColumn? If someone has an example, I 
would 
 love 
   to see it.
  
  You could set your dataProvider to 
  {categories.category[0].products.product}, but that would only 
get 
 you 
  the products at the 0th category (abc).
  
  Manish
 
 
 
 
 
 
 
 
 Yahoo! Groups Sponsor
 
 
 
 ADVERTISEMENT
 
 
http://us.ard.yahoo.com/SIG=129pbsgbl/M=298184.6018725.7038619.30011
76/D=gr
 
oups/S=1705007207:HM/EXP=1109474042/A=2593423/R=0/SIG=11el9gslf/*http
:/www.n
 etflix.com/Default?mqso=60190075 click here
 
 
 
 http://us.adserver.yahoo.com/l?
M=298184.6018725.7038619.3001176/D=groups/S=
 :HM/A=2593423/rand=206981682 
 
 
 
 _ 
 
 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:
 [EMAIL PROTECTED]
 mailto:[EMAIL PROTECTED]
subject=Unsubscribe 
 
 * Your use of Yahoo! Groups is subject to the Yahoo!
 http://docs.yahoo.com/info/terms/ Terms of Service.







DataGrid / dataProvider question

2005-02-25 Thread viraf_bankwalla

Hi,

I have an xml document that has the following form

categories
category id=123 name=abc
products
product id=123 name=def
price12.54/price 
/product
product id=345 name=ghi
price12.54/price 
descdescription/desc
/product
/products
/category
category id=123 name=abc
products
product id=123 name=def
price12.54/price 
/product
product id=345 name=ghi
price12.54/price 
descdescription/desc
/product
/products
/category
/categories

I am trying to bind this to a data grid, in which the columns are 
the categoy name and price 
of each product in the category. My question is how do I specify 
the reference to a specific 
product in DataGridColumn? If someone has an example, I would love 
to see it.

the following is the basic grid that I have

mx:DataGrid id=display width=100% height=30% 
dataProvider={category.items} rowCount=10
mx:columns
mx:Array
mx:DataGridColumn columnName=name 
headerText=Category/
/mx:Array
/mx:columns
/mx:DataGrid

Thanks.

- viraf