You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@flex.apache.org by "Alex Harui (JIRA)" <ji...@apache.org> on 2017/08/04 15:34:01 UTC

[jira] [Updated] (FLEX-31948) When all the columns are invisible, pressing any character Key throws RTE

     [ https://issues.apache.org/jira/browse/FLEX-31948?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Alex Harui updated FLEX-31948:
------------------------------
    Fix Version/s:     (was: Apache Flex 4.16.0)
                   Apache Flex 4.17.0

> When all the columns are invisible, pressing any character Key throws RTE
> -------------------------------------------------------------------------
>
>                 Key: FLEX-31948
>                 URL: https://issues.apache.org/jira/browse/FLEX-31948
>             Project: Apache Flex
>          Issue Type: Bug
>          Components: Advanced Data Grid
>    Affects Versions: Adobe Flex SDK Previous
>         Environment: Affected OS(s): Windows
> Affected OS(s): Windows XP
> Language Found: English
>            Reporter: Adobe JIRA
>            Priority: Minor
>             Fix For: Adobe Flex SDK Previous, Apache Flex 4.17.0
>
>
>       Steps to reproduce:
> 1. Compile and run the below sample piece of code
> <?xml version="1.0" encoding="iso-8859-1"?>
> <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml">
> <mx:Script>
>     <![CDATA[
> 	    import mx.collections.ArrayCollection;
> 	    [Bindable]
> 	    public var myComponentAC:ArrayCollection = new ArrayCollection([
> 	    {product:"Procuct ", description:"Description 2 " , abcd:"oaak", efgh:"Yes", price:"2 " },
> 	    {product:"Procuct 3 " ,description:"Description 4 ",  abcd:"o23k" ,efgh:"Yes" ,price:"3 "},
> 	    { product:"Procuct 4 " ,description:"Description 4 " , abcd:"oaak", efgh:"Yes", price:"4 " },
> 	    {product:"Procuct 5 " ,description:"Description 5 " , abcd:"23ok" ,efgh:"no" ,price:"5 " },
> 	    {product:"Procuct 6 " ,description:"Description 6 " , abcd:"2222" ,efgh:"no", price:"6 " },
> 	    {product:"Procuct 7 " ,description:"Description 7 " , abcd:"#$%^" ,efgh:"no" ,price:"7 " } ]);
>     ]]
>       >
> </mx:Script>
>      <mx:AdvancedDataGrid dataProvider="{myComponentAC}" width="100">
> 	 <mx:columns>
> 	   <mx:AdvancedDataGridColumn headerText="Product" dataField="product" visible="false"/>
> 	   <mx:AdvancedDataGridColumn headerText="Description" dataField="description" visible="false"/>
> 	   <mx:AdvancedDataGridColumn headerText="Ok/Not Ok" dataField="abcd" visible="false"/>
> 	   <mx:AdvancedDataGridColumn headerText="Yes/No" dataField="efgh" visible="false"/>
> 	   <mx:AdvancedDataGridColumn headerText="Price" visible="false" dataField="price" />
>     	</mx:columns>
>      </mx:AdvancedDataGrid>
> </mx:Application>
> 2. Focus on the DataGrid
> 3. Press any character key. Below RTE is thrown
> TypeError: Error #1010: A term is undefined and has no properties.
> 	at mx.controls::AdvancedDataGridBaseEx/itemToLabel()[C:\Work\flex\dmv_automation\projects\datavisualisation\src\mx\controls\AdvancedDataGridBaseEx.as:5954]
> 	at mx.controls.listClasses::AdvancedListBase/findStringLoop()[C:\Work\flex\dmv_automation\projects\datavisualisation\src\mx\controls\listClasses\AdvancedListBase.as:7146]
> 	at mx.controls.listClasses::AdvancedListBase/findString()[C:\Work\flex\dmv_automation\projects\datavisualisation\src\mx\controls\listClasses\AdvancedListBase.as:7133]
> 	at mx.controls::AdvancedDataGridBaseEx/findKey()[C:\Work\flex\dmv_automation\projects\datavisualisation\src\mx\controls\AdvancedDataGridBaseEx.as:1631]
> 	at mx.controls.listClasses::AdvancedListBase/keyDownHandler()[C:\Work\flex\dmv_automation\projects\datavisualisation\src\mx\controls\listClasses\AdvancedListBase.as:7373]
> 	at mx.controls::AdvancedDataGridBaseEx/keyDownHandler()[C:\Work\flex\dmv_automation\projects\datavisualisation\src\mx\controls\AdvancedDataGridBaseEx.as:5925]
> 	at mx.controls::AdvancedDataGrid/keyDownHandler()[C:\Work\flex\dmv_automation\projects\datavisualisation\src\mx\controls\AdvancedDataGrid.as:3505]
>  
>  Actual Results: When all the columns are invisible, pressing any character Key throws RTE
>  
>  
>  Expected Results: No RTE
>  
>  
>  Workaround (if any): none
>     



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)