{ "id": "154089", "key": "TIMOB-20188", "fields": { "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "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": [], "resolution": { "id": "5", "description": "All attempts at reproducing this issue failed, or not enough information was available to reproduce the issue. Reading the code produces no clues as to why this behavior would occur. If more information appears later, please reopen the issue.", "name": "Cannot Reproduce" }, "resolutiondate": "2019-09-20T16:37:51.000+0000", "created": "2016-01-04T05:34:19.000+0000", "priority": { "name": "Low", "id": "4" }, "labels": [ "reprod", "searchbar" ], "versions": [], "issuelinks": [], "assignee": null, "updated": "2019-09-20T16:37:51.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": "10206", "name": "iOS", "description": "iOS Platform" } ], "description": "Setting Titanium.UI.SearchBar value after creating tableview (or listview) is not reflecting in search results.\r\nUse the following code\r\n{code}\r\nvar fruits = [ {title: 'Apples'}, {title: 'Bananas'}, {title: 'Strawberry'}, {title: 'Pineapple'},{title: 'Apples'}, {title: 'Bananas'}, {title: 'Strawberry'}, {title: 'Pineapple'}, {title: 'Apples'}, {title: 'Bananas'}, {title: 'Strawberry'}, {title: 'Pineapple'},{title: 'Apples'}, {title: 'Bananas'}, {title: 'Strawberry'}, {title: 'Pineapple'}, {title: 'Apples'}, {title: 'Bananas'}, {title: 'Strawberry'}, {title: 'Pineapple'},{title: 'Apples'}, {title: 'Bananas'}, {title: 'Strawberry'}, {title: 'Pineapple'}, {title: 'Apples'}, {title: 'Bananas'}, {title: 'Strawberry'}, {title: 'Pineapple'},{title: 'Apples'}, {title: 'Bananas'}, {title: 'Strawberry'}, {title: 'Pineapple'} ];\r\n \r\nvar sampleWindow = Ti.UI.createWindow();\r\nvar navWindow = Ti.UI.iOS.createNavigationWindow({\r\n window: sampleWindow\r\n});\r\n \r\nvar search = Ti.UI.createSearchBar({hintText: \"search by name\", showCancel: true});\r\nsearch.addEventListener(\"return\", searchBarReturn);\r\n \r\nvar tableView = Ti.UI.createTableView();\r\ntableView.addEventListener(\"click\", tableClicked);\r\n \r\ntableView.search = search;\r\ntableView.searchHidden = true;\r\ntableView.filterAttribute = 'customAttr';\r\n \r\nsampleWindow.add(tableView);\r\n \r\nfillTableData(fruits);\r\n \r\nfunction fillTableData(_data){\r\n var tempData = [];\r\n for(var i=0, j=_data.length;i