[flexcoders] one renderer forcing update of another
I have a datagrid with a renderer in each of 2 columns. The first column displays a combobox. When the combobox is changed on one row I want to update the data in the second column on the same row. Is there a way to do this?
[flexcoders] Combobox text does not render on some
I have form window with about 20 combobox fields. Each one is bound to a unique arraycollection which is bindable. When the window is first displayed there are 3 of the combobox firlds that do not display the text from the drop down list even though the value has been loaded correctly. As soon as I click on one of them, they all display correctly. From that point on while using the window they all work correctly as well.
[flexcoders] datagrid autoscrolls
I have a datagrid on a form with fields above and below. The datagrid displays 3 rows. I have custom renderers in the datagrid columns. When more than 3 rows exists, the datagrid will scroll when I move the cursor above or below the datagrid. When I open the combobox on the last visable row and move to the bottom of that list the datagrid autscrolls and closes the combobox list before I can make a selection.
[flexcoders] setFocus in DataGrid cell
Is there any way to setFocus in a DataGrid cell? I have tried the DataGrid.editedItemPosition property but that doesn't work.
[flexcoders] Re: setFocus in DataGrid cell
I am using custom renderers. What has to be done it that case? --- In flexcoders@yahoogroups.com, Alex Harui [EMAIL PROTECTED] wrote: If you've set editable=true, the cell should be editable. If you have a custom renderer you might have to do some more work. From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of darylgmyers Sent: Thursday, April 19, 2007 6:45 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] setFocus in DataGrid cell Is there any way to setFocus in a DataGrid cell? I have tried the DataGrid.editedItemPosition property but that doesn't work.
[flexcoders] Re: setFocus in DataGrid cell
I am using custom renderers. What has to be done it that case? --- In flexcoders@yahoogroups.com, Alex Harui [EMAIL PROTECTED] wrote: If you've set editable=true, the cell should be editable. If you have a custom renderer you might have to do some more work. From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of darylgmyers Sent: Thursday, April 19, 2007 6:45 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] setFocus in DataGrid cell Is there any way to setFocus in a DataGrid cell? I have tried the DataGrid.editedItemPosition property but that doesn't work.
[flexcoders] dataGrid - process each item
How can I go about processing each dataGrid item? I need to validate all items at time of update. I can walk through each item using the dataProvider but I can not find a way to know which dataGrid item to validate from just the dataProvider's information.
[flexcoders] dataGrid - process each item
How can I go about processing each dataGrid item? I need to validate all items at time of update. I can walk through each item using the dataProvider but I can not find a way to know which dataGrid item to validate from just the dataProvider's information.
[flexcoders] rendererArray - How to process each renderer in a DataGrid
I need to process each renderer in a DataGrid. I have found a property - rendererArray - on the DataGrid which looks like what I need. The first array element contains the headers and the rest of the elements contain the rows of data. When I debug Flex the rendererArray is visible and has what I need, but the application errors with ReferenceError: Error #1069: Property rendererArray not found on mx.controls.DataGrid and there is no default value. Is this the way I should be processing the DataGrid renderers or is there a better way?
[flexcoders] Re: Date format - internal and external
Still need help: I have to assume that this functionality is needed all the time when using Flex with a database application. I must be overlooking the solution. I have a currency field which is retrived via a remoting service and the data is 123.45. When I display it in a form I need to format it as $123.45. I have done that with the currencyformatter. But now when I need to return the data to the server I want the raw data (unformatted) as 123.45. --- In flexcoders@yahoogroups.com, darylgmyers [EMAIL PROTECTED] wrote: I have a VO which contains a date field formatted as 2007-01-01. This is how the HTTP service retrieves the data. I want to format the date as 01/01/2007 in the display but keep the internal date 2007-01-01 so that I can send the VO back for update. What is the best way to keep the internal date formatted one way and the external date formatted another. This same issue will come into play with currency fields, etc.
[flexcoders] Re: Date format - internal and external
What about when the data has been changed by the user? The TextInput.text is now the formatted data. How do I access the raw data and keep my model up to date with the raw data? --- In flexcoders@yahoogroups.com, Tracy Spratt [EMAIL PROTECTED] wrote: The formatter should just format the display, using a renderer or a labelfunction. The underlying data in the dataProvider will still be a plain number. Tracy From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of darylgmyers Sent: Monday, March 19, 2007 11:45 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: Date format - internal and external Still need help: I have to assume that this functionality is needed all the time when using Flex with a database application. I must be overlooking the solution. I have a currency field which is retrived via a remoting service and the data is 123.45. When I display it in a form I need to format it as $123.45. I have done that with the currencyformatter. But now when I need to return the data to the server I want the raw data (unformatted) as 123.45. --- In flexcoders@yahoogroups.com mailto:flexcoders% 40yahoogroups.com , darylgmyers darylgmyers@ wrote: I have a VO which contains a date field formatted as 2007-01-01. This is how the HTTP service retrieves the data. I want to format the date as 01/01/2007 in the display but keep the internal date 2007-01- 01 so that I can send the VO back for update. What is the best way to keep the internal date formatted one way and the external date formatted another. This same issue will come into play with currency fields, etc.
[flexcoders] Re: Date format - internal and external
What about when the data has been changed by the user? The TextInput.text is now the formatted data. How do I access the raw data and keep my model up to date with the raw data? --- In flexcoders@yahoogroups.com, Tracy Spratt [EMAIL PROTECTED] wrote: The formatter should just format the display, using a renderer or a labelfunction. The underlying data in the dataProvider will still be a plain number. Tracy From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of darylgmyers Sent: Monday, March 19, 2007 11:45 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: Date format - internal and external Still need help: I have to assume that this functionality is needed all the time when using Flex with a database application. I must be overlooking the solution. I have a currency field which is retrived via a remoting service and the data is 123.45. When I display it in a form I need to format it as $123.45. I have done that with the currencyformatter. But now when I need to return the data to the server I want the raw data (unformatted) as 123.45. --- In flexcoders@yahoogroups.com mailto:flexcoders% 40yahoogroups.com , darylgmyers darylgmyers@ wrote: I have a VO which contains a date field formatted as 2007-01-01. This is how the HTTP service retrieves the data. I want to format the date as 01/01/2007 in the display but keep the internal date 2007-01- 01 so that I can send the VO back for update. What is the best way to keep the internal date formatted one way and the external date formatted another. This same issue will come into play with currency fields, etc.
[flexcoders] Date format - internal and external
I have a VO which contains a date field formatted as 2007-01-01. This is how the HTTP service retrieves the data. I want to format the date as 01/01/2007 in the display but keep the internal date 2007-01-01 so that I can send the VO back for update. What is the best way to keep the internal date formatted one way and the external date formatted another. This same issue will come into play with currency fields, etc.
[flexcoders] Result to ArrayCollection - somtimes node is single, sometimes it's an array
When I use an HTTPService result as an ArrayCollection, certain nodes will be set as a single item or an array depending on the number of items in the node. Is there a simple way to always force a node to an array regardless of how many items there are?
[flexcoders] Re: addEventListener and additional arguments?
Gordon, I'm pretty new to Flex so I appologize for the additional question. Are you saying that I can add an instance property to the target so that it will be available in the event.target? What I'm actually doing is creating a set of form fields on the fly using action script. Some of these fields may be number types with a precision value. My formatting is done with an event listener which I need to be able to pass the precision value. --- In flexcoders@yahoogroups.com, Gordon Smith [EMAIL PROTECTED] wrote: There should be no need to pass additional arguments to the event handler method, because -- assuming it is indeed a method of a class -- it can access all the instance properties of that class. So just set an instance property. - Gordon From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of darylgmyers Sent: Tuesday, February 13, 2007 1:42 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] addEventListener and additional arguments? Is there a way to use the addEventListener method and pass additional arguments along with the event? I have a form where I must create the form objects dynamically so I need to use addEventListener for formatting, etc. I can not use inline mxml to add the listeners.
[flexcoders] Re: Using setSyle on dynamic created button not working
Gordon, Thanks for your suggestion. I tried 10 insteead of 10 and it still doesn't work. I'm trying to set other style properties as well and they do not seem to work on a dynamically created item. --- In flexcoders@yahoogroups.com, Gordon Smith [EMAIL PROTECTED] wrote: It would be newButton.setStyle(bottom, 10); because the 'bottom' style has type Number. - Gordon From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of darylgmyers Sent: Friday, February 09, 2007 1:46 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Using setSyle on dynamic created button not working I'm creating a number of objects dynamically in actionscript. then I'm using setStyle to set certain styles before addChild actually adds the object to the container. The setStyle is not working. Below is a small piece of the code. varnewButton:Button = new Button; newButton.label=Update; newButton.setStyle(bottom,10); newButton.addEventListener(MouseEvent.CLICK,clickUpdate); newHBox.addChild(newButton);
[flexcoders] Dynamically created list with AllowMultipleSelection=true-can not load selected
Dynamically created list with AllowMultipleSelection=true - I can not load selectedItems or selectedIndices. When I set either array, they are there at debug time, but do not show as selected in the list. //add list field var newList:List = new List; newList.percentWidth=100; newList.allowMultipleSelection=true; var newListDP:Array = new Array; var newListSelected:Array = new Array; //here's where the dataprovider (newListDP) array and selectedItems //(newListSelected) array. for (var y:int=0; yfieldsAC[x].dropdownvalues.value.length; y++) { newListDP[y] = fieldsAC[x].dropdownvalues.value[y]; for (var z:int=0; zfieldsAC[x].data.id.length; z++) { var indexString:String = fieldsAC[x].dropdownvalues.value[y].id if (indexString.indexOf(fieldsAC[x].data.id[z]) != -1) { newListSelected.push(fieldsAC[x].dropdownvalues.value[y].label); } } } newList.selectedItems = newListSelected; newList.dataProvider = newListDP; BindingUtils.bindProperty(fieldsAC [x],data,newList,selectedIndices); newFormItem.addChild(newList);
[flexcoders] addEventListener and additional arguments?
Is there a way to use the addEventListener method and pass additional arguments along with the event? I have a form where I must create the form objects dynamically so I need to use addEventListener for formatting, etc. I can not use inline mxml to add the listeners.
[flexcoders] Using setSyle on dynamic created button not working
I'm creating a number of objects dynamically in actionscript. then I'm using setStyle to set certain styles before addChild actually adds the object to the container. The setStyle is not working. Below is a small piece of the code. varnewButton:Button = new Button; newButton.label=Update; newButton.setStyle(bottom,10); newButton.addEventListener(MouseEvent.CLICK,clickUpdate); newHBox.addChild(newButton);
[flexcoders] Sending XMLListCollection with HTTPService
I am trying to send an XMLListCollection with HTTPService using .toXMLString(). The xml appears to be getting escaped - lt, quot, etc. Does anyone know how to do this?
[flexcoders] variable url on an httpservice
I am trying to make the url string a variable on the httpservice. I am passing the server in as a flashvar and want to use it as part of the httpservice url string. Can anyone point me in the right direction? Thanks.
[flexcoders] Best way to communicate with database
We have a web application which is built using Zope and has postgreSQL as the database backend. We are planning on adding/replacing functionality in sections with Flex 2. Over time the majority of the application will be done in Flex 2. We are trying to evaluate the many different ways we can communicate with the database - Flex Data Services, WebOrb for Ruby on Rails, Web Services we create, etc. Does anyone have advice and experience to help us make this decision? We are looking for the most efficient solution from a coding standpoint as our primary goal.