{ "id": "76231", "key": "AC-2954", "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": "7", "description": "", "name": "Invalid" }, "resolutiondate": "2011-06-25T04:35:30.000+0000", "created": "2011-06-10T14:30:44.000+0000", "labels": [], "versions": [], "issuelinks": [], "assignee": { "name": "tguntharp", "key": "tguntharp", "displayName": "Tony Guntharp", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2016-03-08T07:47:57.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": [], "description": "I have a SearchBar and a TableView. The SearchBar is not added as tableview.search = searchbar, because I have custom TableViewRows whose titles do not play nicely with this functionality. Additionally, I want to start with an empty TableView when nothing has been typed in the SearchBar, because the list of possible matches (> 1000 custom TableViewRows) is too long and takes too much time to display on the device.\r\n\r\nIn the SearchBar's change event listener I update the TableView. This works flawlessly. I expect the TableView to clear when pressing the cancel button in the SearchBar. I do this by adding the following code:\r\n\r\n search.addEventListener('cancel', function(event) {\r\n tableview.data = [];\r\n });\r\n\r\nThis method is not executed when pressing the cancel button and hence my TableView still shows the rows before I pressed cancel. The hintText is shown as expected.", "attachment": [], "flagged": false, "summary": "SearchBar cancel event not fired", "creator": { "name": "morinel", "key": "morinel", "displayName": "Jeroen van Vianen", "active": true, "timeZone": "Europe/Berlin" }, "subtasks": [], "reporter": { "name": "morinel", "key": "morinel", "displayName": "Jeroen van Vianen", "active": true, "timeZone": "Europe/Berlin" }, "environment": "1.7.0 RC 1, iPhone 4.3.2, both Simulator and device", "comment": { "comments": [ { "id": "156561", "author": { "name": "pdowsett", "key": "pdowsett", "displayName": "Paul Dowsett", "active": true, "timeZone": "Europe/London" }, "body": "Jeroen\r\n\r\nPlease provide the following in order for us to progress this ticket:\r\n\r\n* date and build hash of Titanium SDK being used (use the latest 1.7.X available at the time)\r\n* provide a proper [Use-case|http://wiki.appcelerator.org/display/guides/Contributing+to+Titanium#ContributingtoTitanium-CreatingGoodUsecases]\r\n* a link to the Q&A question that you posted about the problem, where you asked the community for advice about it, as per [The Bug-Reporting Lifecycle|http://wiki.appcelerator.org/display/guides/Contributing+to+Titanium#ContributingtoTitanium-TheBugReportingLifecycle]\r\n\r\nAlso kindly read the [Submitting Bug Reports|http://wiki.appcelerator.org/display/guides/Contributing+to+Titanium#ContributingtoTitanium-SubmittingBugReports] guide in full before raising tickets.\r\n\r\nThank you", "updateAuthor": { "name": "pdowsett", "key": "pdowsett", "displayName": "Paul Dowsett", "active": true, "timeZone": "Europe/London" }, "created": "2011-06-13T01:47:17.000+0000", "updated": "2011-06-13T01:47:17.000+0000" }, { "id": "156692", "author": { "name": "morinel", "key": "morinel", "displayName": "Jeroen van Vianen", "active": true, "timeZone": "Europe/Berlin" }, "body": "OK, never mind. Found the issue. When pressing the 'x' in the SearchBar the change event is fired rather than the 'cancel' event. Please close this issue.", "updateAuthor": { "name": "morinel", "key": "morinel", "displayName": "Jeroen van Vianen", "active": true, "timeZone": "Europe/Berlin" }, "created": "2011-06-14T00:33:23.000+0000", "updated": "2011-06-14T00:33:23.000+0000" }, { "id": "157784", "author": { "name": "pdowsett", "key": "pdowsett", "displayName": "Paul Dowsett", "active": true, "timeZone": "Europe/London" }, "body": "Closing, as per reporter's request.", "updateAuthor": { "name": "pdowsett", "key": "pdowsett", "displayName": "Paul Dowsett", "active": true, "timeZone": "Europe/London" }, "created": "2011-06-25T04:35:30.000+0000", "updated": "2011-06-25T04:35:30.000+0000" }, { "id": "163099", "author": { "name": "pdowsett", "key": "pdowsett", "displayName": "Paul Dowsett", "active": true, "timeZone": "Europe/London" }, "body": "Closing after 30 days of inactivity.", "updateAuthor": { "name": "pdowsett", "key": "pdowsett", "displayName": "Paul Dowsett", "active": true, "timeZone": "Europe/London" }, "created": "2011-08-16T16:54:39.000+0000", "updated": "2011-08-16T16:54:39.000+0000" } ], "maxResults": 4, "total": 4, "startAt": 0 } } }