{ "id": "106000", "key": "AC-2246", "fields": { "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false }, "project": { "id": "12217", "key": "AC", "name": "Appcelerator - INBOX", "projectCategory": { "id": "10000", "description": "", "name": "Customer Service" } }, "resolution": { "id": "8", "description": "", "name": "Needs more info" }, "resolutiondate": "2013-04-05T23:33:02.000+0000", "created": "2012-12-05T15:59:21.000+0000", "labels": [ "android", "bug" ], "versions": [], "issuelinks": [], "assignee": { "name": "mpmiranda", "key": "mpmiranda", "displayName": "Mauro Parra-Miranda", "active": true, "timeZone": "America/Mexico_City" }, "updated": "2016-03-08T07:41:14.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": "14548", "name": "Titanium SDK & CLI", "description": "Please enter tickets related to the MobileSDK here." } ], "description": "Hi, I created a tableview with custom lines, data from an external XML via XHR.\r\n\r\nBy feeding these lines add the following code to the possible combinations of search:\r\n\r\n{code}\r\nrow.filter = labelCode.text + \" \" + labelTitle.text + \" \" + labelLocal.text + \" \" + labelVenda.text;\r\n{code}\r\n\r\nMy tableView is set this way:\r\n\r\n{code}\r\nvar data = [];\r\nvar tableView = Titanium.UI.createTableView({\r\n data:data,\r\n top:'20dp',\r\n backgroundColor: 'transparent',\r\n search:search,\r\n filterAttribute: 'filter',\r\n});\r\n{code}\r\n\r\nWhen you type something in the SearchBar is triggered:\r\n\r\n{code}\r\nsearch.addEventListener('change',function(e){\r\n return e.value;\r\n});\r\n{code}\r\n\r\nHowever, the tableView is still showing the same results, does not filter content searched, as attached image.", "attachment": [ { "id": "33949", "filename": "Captura de Tela 2012-12-05 às 13.56.14.png", "author": { "name": "kalfels@msn.com", "key": "kalfels@msn.com", "displayName": "Luis Fernando Kalfels", "active": true, "timeZone": "America/Sao_Paulo" }, "created": "2012-12-05T15:59:21.000+0000", "size": 260687, "mimeType": "image/png" } ], "flagged": false, "summary": "Android: SearchBar not working with custom data row in TableView.", "creator": { "name": "kalfels@msn.com", "key": "kalfels@msn.com", "displayName": "Luis Fernando Kalfels", "active": true, "timeZone": "America/Sao_Paulo" }, "subtasks": [], "reporter": { "name": "kalfels@msn.com", "key": "kalfels@msn.com", "displayName": "Luis Fernando Kalfels", "active": true, "timeZone": "America/Sao_Paulo" }, "environment": "OS: OSX Mountain Lion.\r\nHardware: Mac Mini 2012.\r\nSoftware: Titanium Studio 2.1.2.20120830612\r\nEmulator: Android 2.3.3 WGA_854", "comment": { "comments": [ { "id": "230199", "author": { "name": "kalfels@msn.com", "key": "kalfels@msn.com", "displayName": "Luis Fernando Kalfels", "active": true, "timeZone": "America/Sao_Paulo" }, "body": "Thanks for move the issue to Titanium Community and sorry for my mistake when I posted.", "updateAuthor": { "name": "kalfels@msn.com", "key": "kalfels@msn.com", "displayName": "Luis Fernando Kalfels", "active": true, "timeZone": "America/Sao_Paulo" }, "created": "2012-12-06T10:25:43.000+0000", "updated": "2012-12-06T10:25:43.000+0000" }, { "id": "246105", "author": { "name": "dsefton", "key": "dsefton", "displayName": "Daniel Sefton", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Hi,\r\n\r\nPlease can you provide a complete runnable sample for this? Either as a simple app.js, or project.\r\n\r\nAlso, could you try against 3.0.2 GA to see if it still occurs?\r\n\r\nThanks!", "updateAuthor": { "name": "dsefton", "key": "dsefton", "displayName": "Daniel Sefton", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-04-05T23:33:02.000+0000", "updated": "2013-04-05T23:33:02.000+0000" } ], "maxResults": 2, "total": 2, "startAt": 0 } } }