Re: [flexcoders] cell render problem
If Abdul's query is true about the data arriving later ... you should maybe call the initCellRenderer later. I assume you are calling initCellRenderer on initialize of the application. (I assumed so since there are traces of Steven's post (http://www.richinternetapps.com/archives/72.html) in your post. Try the following. 1. Call clTypeSrv.send() in the application tag 2. Call a function populateComboBox() in the HTTPService tag 3. Populate the values to the ComboBoxRenderer through the script (this ensures that the population happens after data is retrieved) 4. Maybe and a slight maybe that "type" in "clTypeSrv.result.types.type" is a reserved word and is creating a problem! (somebody with better knowledge on this can clarify!) "http://www.macromedia.com/2003/mxml" initialize="clTypeSrv.send()"> ... .. ... Regards Sree Abdul Qabiz wrote: When are you calling initCellRenderer? May be data has not yet arrived and this functiong gets called. Are you able to see data in initCellRenderer function? -abdul -Original Message- From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Rajesh Jayabalan Sent: Tuesday, May 17, 2005 2:12 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] cell render problem Hi, I am trying to create a combobox cell renderer. In my mxml file I am trying to set a httpserivce as the dataprovider for the cell renderer note:: clTypeSrv is my HTTPService and clTypeSrv.send() is called on application initilize. private function initCellRenderer() : Void { ComboBoxCellRenderer.dataProvider = clTypeSrv.result.types.type; } this is creating a empty combobox Note: There is data coming back from the httpserivce as I am using it in another place when I set it as static values I can see the combobox. i.e., ComboBoxCellRenderer.dataProvider = [ "Development Director", "Technical Director", "Technical Architect" ]; How can I make my combobox accept a httpservice as a dataprovider. Rajesh J Yahoo! Groups Links 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] cell render problem
When are you calling initCellRenderer? May be data has not yet arrived and this functiong gets called. Are you able to see data in initCellRenderer function? -abdul -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Rajesh Jayabalan Sent: Tuesday, May 17, 2005 2:12 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] cell render problem Hi, I am trying to create a combobox cell renderer. In my mxml file I am trying to set a httpserivce as the dataprovider for the cell renderer note:: clTypeSrv is my HTTPService and clTypeSrv.send() is called on application initilize. private function initCellRenderer() : Void { ComboBoxCellRenderer.dataProvider = clTypeSrv.result.types.type; } this is creating a empty combobox Note: There is data coming back from the httpserivce as I am using it in another place when I set it as static values I can see the combobox. i.e., ComboBoxCellRenderer.dataProvider = [ "Development Director", "Technical Director", "Technical Architect" ]; How can I make my combobox accept a httpservice as a dataprovider. Rajesh J Yahoo! Groups Links 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] cell render problem
Where are you calling: initCellRenderer()? It should be in the result handler for the http service. Tracy -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Rajesh Jayabalan Sent: Monday, May 16, 2005 4:42 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] cell render problem Hi, I am trying to create a combobox cell renderer. In my mxml file I am trying to set a httpserivce as the dataprovider for the cell renderer note:: clTypeSrv is my HTTPService and clTypeSrv.send() is called on application initilize. private function initCellRenderer() : Void { ComboBoxCellRenderer.dataProvider = clTypeSrv.result.types.type; } this is creating a empty combobox Note: There is data coming back from the httpserivce as I am using it in another place when I set it as static values I can see the combobox. i.e., ComboBoxCellRenderer.dataProvider = [ "Development Director", "Technical Director", "Technical Architect" ]; How can I make my combobox accept a httpservice as a dataprovider. Rajesh J Yahoo! Groups Links 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] cell render problem
On 5/17/05, Rajesh Jayabalan <[EMAIL PROTECTED]> wrote: > note:: clTypeSrv is my HTTPService and clTypeSrv.send() is called on > application initilize. > > private function initCellRenderer() : Void > { > ComboBoxCellRenderer.dataProvider = clTypeSrv.result.types.type; > } > > this is creating a empty combobox > > Note: There is data coming back from the httpserivce as I am using it > in another place Have you tried iterating over the values in 'clTypeSrv.result.types.type'? Is it an array containing only a single element? If that's the case, you'll have to use ArrayUtil.toArray() 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/
[flexcoders] cell render problem
Hi, I am trying to create a combobox cell renderer. In my mxml file I am trying to set a httpserivce as the dataprovider for the cell renderer note:: clTypeSrv is my HTTPService and clTypeSrv.send() is called on application initilize. private function initCellRenderer() : Void { ComboBoxCellRenderer.dataProvider = clTypeSrv.result.types.type; } this is creating a empty combobox Note: There is data coming back from the httpserivce as I am using it in another place when I set it as static values I can see the combobox. i.e., ComboBoxCellRenderer.dataProvider = [ "Development Director", "Technical Director", "Technical Architect" ]; How can I make my combobox accept a httpservice as a dataprovider. Rajesh J 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/