{ "id": "159460", "key": "TIMOB-23187", "fields": { "issuetype": { "id": "4", "description": "An improvement or enhancement to an existing feature or task.", "name": "Improvement", "subtask": false }, "project": { "id": "10153", "key": "TIMOB", "name": "Titanium SDK/CLI", "projectCategory": { "id": "10100", "description": "Titanium and related SDKs used in application development", "name": "Client" } }, "fixVersions": [ { "id": "17706", "name": "Release 5.4.0", "archived": false, "released": true, "releaseDate": "2016-08-11" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2016-07-01T17:11:32.000+0000", "created": "2016-04-11T09:42:36.000+0000", "priority": { "name": "High", "id": "2" }, "labels": [ "qe-5.4.0" ], "versions": [], "issuelinks": [], "assignee": { "name": "kiguchi", "key": "kota", "displayName": "Kota Iguchi", "active": false, "timeZone": "America/Los_Angeles" }, "updated": "2016-07-01T17:11:42.000+0000", "status": { "description": "The issue is considered finished, the resolution is correct. Issues which are closed can be reopened.", "name": "Closed", "id": "6", "statusCategory": { "id": 3, "key": "done", "colorName": "green", "name": "Done" } }, "components": [ { "id": "12642", "name": "Windows", "description": "Windows authoring support" } ], "description": "list view search is not working correctly.Using the *searchableText* property on a listitem and the *searchText* property on the listview through text entered in a text field: the text \"Search Results\" appears with no search results below, even though the entered text should match with some list items. Are there any plans to return this functionality to the searchText property of the listview in upcoming releases?", "attachment": [], "flagged": false, "summary": "Windows: Implementation of search functionality using searchText property in listview ", "creator": { "name": "rmitro", "key": "rmitro", "displayName": "Rakhi Mitro", "active": false, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "rmitro", "key": "rmitro", "displayName": "Rakhi Mitro", "active": false, "timeZone": "America/Los_Angeles" }, "environment": "Operating System:Microsoft Windows 8.1 Enterprise N\r\nSDK Version = 5.2.0.v20160220080449,5.4.0.v20160307212310 \r\nWindows Phone emulator: 8-1-1 \r\nAppcelerator Command-Line Interface, version 5.2.0 \r\nAppcelerator Studio, build: 4.4.0.201511241829 \r\nNode.js Version: 0.12.7 \r\nnpm Version 2.11.3 \r\n", "closedSprints": [ { "id": 649, "state": "closed", "name": "2016 Sprint 13 SDK", "startDate": "2016-06-18T00:25:17.303Z", "endDate": "2016-07-02T00:25:00.000Z", "completeDate": "2016-07-04T04:25:16.889Z", "originBoardId": 114 }, { "id": 624, "state": "closed", "name": "2016 Sprint 09 SDK", "startDate": "2016-04-23T00:39:45.452Z", "endDate": "2016-05-07T00:39:00.000Z", "completeDate": "2016-05-09T03:43:10.279Z", "originBoardId": 114 } ], "comment": { "comments": [ { "id": "383773", "author": { "name": "kiguchi", "key": "kota", "displayName": "Kota Iguchi", "active": false, "timeZone": "America/Los_Angeles" }, "body": "https://github.com/appcelerator/titanium_mobile_windows/pull/644", "updateAuthor": { "name": "kiguchi", "key": "kota", "displayName": "Kota Iguchi", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2016-04-25T08:27:42.000+0000", "updated": "2016-04-25T08:27:42.000+0000" }, { "id": "389601", "author": { "name": "htbryant", "key": "htbryant", "displayName": "Harry Bryant", "active": true, "timeZone": "Europe/London" }, "body": "Tested with the demo code provided in the PR. searchText does not provide results, only in the case that I enter \"A\", otherwise no results are shown. Attempted both with {{ListView.caseInsensitiveSearch}} set to true / false. \r\n\r\nTested on: \r\nWindows 10 Pro \r\nWindows Phone 10.0 (Microsoft Lumia 640 LTE) \r\nAppc Studio: 4.7.0.201606220541\r\nTi SDK: 5.4.0.v20160630074247\r\nAppc NPM: 4.2.7-2\r\nAppc Core: 5.4.0-23\r\nNode: v4.4.4\r\n\r\n*Reopening Ticket.*", "updateAuthor": { "name": "htbryant", "key": "htbryant", "displayName": "Harry Bryant", "active": true, "timeZone": "Europe/London" }, "created": "2016-06-30T17:32:57.000+0000", "updated": "2016-06-30T17:33:18.000+0000" }, { "id": "389734", "author": { "name": "kiguchi", "key": "kota", "displayName": "Kota Iguchi", "active": false, "timeZone": "America/Los_Angeles" }, "body": "I could not reproduce the issue on 5.4.0.v20160630074247. [~htbryant] Could you try following code? I want to narrow it down to see if it's general issue or UI event / IME related issue or some kind.\r\n\r\n{code}\r\nvar win = Ti.UI.createWindow({ backgroundColor: 'green', layout: 'vertical' });\r\nvar searchText = Ti.UI.createTextField({ width: Ti.UI.FILL, height: '10%' });\r\n\r\nvar listView = Ti.UI.createListView({ width: Ti.UI.FILL, height: '90%', caseInsensitiveSearch: true });\r\nvar sections = [];\r\n\r\nvar fruitSection = Ti.UI.createListSection({ headerTitle: 'Fruits' });\r\nvar fruitDataSet = [\r\n { properties: { title: 'Apple', searchableText: 'Manzana' } },\r\n { properties: { title: 'Banana', searchableText: 'Plátano' } },\r\n];\r\nfruitSection.setItems(fruitDataSet);\r\nsections.push(fruitSection);\r\n\r\nvar vegSection = Ti.UI.createListSection({ headerTitle: 'Vegetables' });\r\nvar vegDataSet = [\r\n { properties: { title: 'Carrots', searchableText: 'Zanahorias' } },\r\n { properties: { title: 'Potatoes', searchableText: 'Patatas' } },\r\n];\r\nvegSection.setItems(vegDataSet);\r\nsections.push(vegSection);\r\n\r\nlistView.sections = sections;\r\n\r\nsearchText.addEventListener('change', function () {\r\n listView.searchText = searchText.value;\r\n});\r\n\r\nvar queries = [\r\n \"Man\", /* 'Apple' */\r\n \"Pl\", /* 'Banana' */\r\n \"ta\", /* 'Banana', 'Potatoes' */\r\n 'z', /* 'Apple', 'Carrots'*/\r\n 'zanah', /* 'Carrots' */\r\n 'horias', /* 'Carrots' */\r\n 'A' /* 'Apple', 'Banana', 'Carrots', 'Potatoes' */\r\n];\r\n\r\nvar index = 0;\r\nwin.addEventListener('open', function() {\r\n setInterval(function(){\r\n searchText.value = queries[index];\r\n index++;\r\n if (index >= queries.length) {\r\n index = 0;\r\n }\r\n }, 5000);\r\n});\r\n\r\nwin.add(searchText);\r\nwin.add(listView);\r\nwin.open();\r\n{code}", "updateAuthor": { "name": "kiguchi", "key": "kota", "displayName": "Kota Iguchi", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2016-07-01T09:56:36.000+0000", "updated": "2016-07-01T09:56:36.000+0000" }, { "id": "389762", "author": { "name": "htbryant", "key": "htbryant", "displayName": "Harry Bryant", "active": true, "timeZone": "Europe/London" }, "body": "[~kota] Tested the code you provided and it works correctly, repeated the test case manually with the test code in the PR and it works correctly too. I was testing for exact string matches, which I had misinterpreted.\r\n\r\nTested on: \r\nWindows 10 Pro \r\nWindows Phone 10.0 (Microsoft Lumia 640 LTE) \r\nAppc Studio: 4.7.0.201606220541\r\nTi SDK: 5.4.0.v20160630074247\r\nAppc NPM: 4.2.7-2\r\nAppc Core: 5.4.0-23\r\nNode: v4.4.4\r\n\r\n*Closing Ticket.*", "updateAuthor": { "name": "htbryant", "key": "htbryant", "displayName": "Harry Bryant", "active": true, "timeZone": "Europe/London" }, "created": "2016-07-01T17:11:26.000+0000", "updated": "2016-07-01T17:11:26.000+0000" } ], "maxResults": 4, "total": 4, "startAt": 0 } } }