Re: [flexcoders] Generating dynamic datagrid based on dynamic query result

2005-04-18 Thread Manish Jethani

On 4/18/05, Dzafer [EMAIL PROTECTED] wrote:

 How generating this one dynamically based on a query with a dynamic number
 of columns: 
[snip]

If you simply assign the web service result to the grid's dataProvider
property, that'll do it.

-- 
[EMAIL PROTECTED]
http://manish.revise.org/


 
Yahoo! Groups Links

* To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

* 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] Generating dynamic datagrid based on dynamic query result

2005-04-18 Thread Dzafer










Hi Manish,



Ok, but I will select with an action script
witch columns I will display my datagrid.



I use the Webservice result as a provider
for different flex object. 



For the datagrid I need to retrieve all
the column names from the provider to do something like this:



 If ( column[i]
== firstname) 

 {}

 If ( column[i]
== value + j) 

 {}















From:
flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Manish Jethani
Sent: Monday, April 18, 2005 12:35
PM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders]
Generating dynamic datagrid based on dynamic query result





On 4/18/05, Dzafer [EMAIL PROTECTED]
wrote:

 How generating this one dynamically based on
a query with a dynamic number
 of columns: 
[snip]

If you simply assign the web service result to the
grid's dataProvider
property, that'll do it.

-- 
[EMAIL PROTECTED]
http://manish.revise.org/












Yahoo! Groups Links

To visit your group on the web, go to:http://groups.yahoo.com/group/flexcoders/
To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.












Re: [flexcoders] Generating dynamic datagrid based on dynamic query result

2005-04-18 Thread Manish Jethani
On 4/18/05, Dzafer [EMAIL PROTECTED] wrote:


 For the datagrid I need to retrieve all the column names from the provider
 to do something like this: 

 
 If (  column[i] == firstname) 
 
 {} 

Ah, sorry about that.  I see what you're trying to do now, and here's
how I'd do it:

  if (myDataGrid.columns[i].columnName == firstName)
  {
...
  }

firstName is the name of the field in your data objects your column
maps to, and columnName is the property of DataGridColumn that stores
that value.

http://livedocs.macromedia.com/flex/15/asdocs_en/mx/controls/gridclasses/DataGridColumn.html
http://livedocs.macromedia.com/flex/15/asdocs_en/mx/controls/Tree.html

-- 
[EMAIL PROTECTED]
http://manish.revise.org/


 
Yahoo! Groups Links

* To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

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