[flexcoders] Multiple data grids

2008-05-12 Thread Dan Pride
I want to design a series of data grids each of which
simply lists out the data in a table. 
1) Do I do this in one app or one project? 
2) Can I use view stack to dynamically kick a php
query for each grid as it is displayed?
3) How do I handle the script references for each data
grid since the http service call is different for each
grid
thanks
Dan Pride


  

Be a better friend, newshound, and 
know-it-all with Yahoo! Mobile.  Try it now.  
http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ


RE: [flexcoders] Multiple data grids

2008-05-12 Thread Tracy Spratt
There are lots of ways to do this but here is one:

1 Project

1 application

1 ViewStack

1 Navigator component to control the ViewStack

1 globally available data model(variable) for each DG/Table.  These
can be bindable variables in the main App, or in a singleton object

1 RPC instance(HTTPService, WebService, RemoteObject)

For each Table, in the data model component implement a function that
invokes the data service call.  Use AsyncToken to set a callId value tht
identifies the table

In the data Model component, implement a result handler for the rpc
instance.  Read the Asynctoken Propery and assign the result to the
appropriate data model variable.

Implement the ViewStack views containing the Table DGs as components

In each DG component, in the creationComplete handler, call the DS
Query through the data model function.

Bind each dataGrid to its data model var.

 

Tracy

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Dan Pride
Sent: Sunday, May 11, 2008 11:27 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Multiple data grids

 

I want to design a series of data grids each of which
simply lists out the data in a table. 
1) Do I do this in one app or one project? 
2) Can I use view stack to dynamically kick a php
query for each grid as it is displayed?
3) How do I handle the script references for each data
grid since the http service call is different for each
grid
thanks
Dan Pride

__
Be a better friend, newshound, and 
know-it-all with Yahoo! Mobile. Try it now.
http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ
http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ