{ "id": "171273", "key": "TIMOB-25850", "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": [ { "id": "20238", "description": "", "name": "Release 7.5.0", "archived": false, "released": true, "releaseDate": "2018-11-15" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2018-08-24T17:30:31.000+0000", "created": "2018-03-08T20:48:57.000+0000", "priority": { "name": "High", "id": "2" }, "labels": [ "qe-7.1.0" ], "versions": [ { "id": "19957", "description": "", "name": "Release 7.1.0", "archived": false, "released": true, "releaseDate": "2018-03-14" } ], "issuelinks": [ { "id": "56456", "type": { "id": "10003", "name": "Relates", "inward": "relates to", "outward": "relates to" }, "inwardIssue": { "id": "171318", "key": "TIMOB-25866", "fields": { "summary": "iOS : TiUISearchBar getter is returning value from proxy not from searchbar view ", "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" } }, "priority": { "name": "Medium", "id": "3" }, "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false } } } } ], "assignee": { "name": "vijaysingh", "key": "vijaysingh", "displayName": "Vijay Singh", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2018-08-24T17:30:48.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": "When showBookmark is set to true on creation of the searchbar and it is in a TableView, the bookmark button does not show.\r\n\r\n*Steps to reproduce issue*\r\n1. Create a new project with the below code\r\n2. Run the project\r\n\r\n*Expected Results*\r\nThe searchbar has the bookmark button shown\r\n\r\n*Actual Results*\r\nThe searchbar does not have the bookmark button shown\r\n\r\n*Notes*\r\nThe bookmark button can be toggled to show it, but the toggle has to be tapped twice, since it thinks it is being shown.\r\nAlso, if you just create a searchbar with showBookmark = true, then the button will show. Having the searchbar in the tableview does not show the bookmark button.\r\n\r\n*Code*\r\nClassic:\r\n{code:js}\r\nvar win = Ti.UI.createWindow();\r\n\r\nvar searchBar = Titanium.UI.createSearchBar({\r\n showBookmark: true\r\n});\r\n\r\nvar table = Ti.UI.createTableView({\r\n data: [{\r\n title: \"Toggle Bookmark button\"\r\n }],\r\n search: searchBar\r\n});\r\n\r\ntable.addEventListener('click', function(e){\r\n\tsearchBar.showBookmark = !searchBar.showBookmark;\r\n});\r\n\r\nwin.add(table);\r\nwin.open();\r\n{code}\r\n\r\nAlloy:\r\nindex.xml\r\n{code:xml}\r\n\r\n \r\n \r\n \r\n \r\n \r\n \r\n\r\n{code}\r\n\r\nindex.js:\r\n{code:js}\r\nfunction toggle() {\r\n\t$.search.showBookmark = !$.search.showBookmark;\r\n}\r\n\r\n$.index.open();\r\n{code}", "attachment": [], "flagged": false, "summary": "iOS: SearchBar doesn't show Bookmark button when set on creation in TableView", "creator": { "name": "ewieber", "key": "ewieber", "displayName": "Eric Wieber", "active": false, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "ewieber", "key": "ewieber", "displayName": "Eric Wieber", "active": false, "timeZone": "America/Los_Angeles" }, "environment": "MacOS 10.13.3 (17D47)\r\nStudio 5.0.0.201712081732\r\nTi SDK 7.1.0.v20180302141418\r\nAppc NPM 4.2.12\r\nAppc CLI 7.0.2\r\nAlloy 1.11.0\r\nXcode 9.2 (9C40b)", "closedSprints": [ { "id": 1065, "state": "closed", "name": "2016 Sprint 17 SDK", "startDate": "2018-08-13T17:39:36.846Z", "endDate": "2018-08-27T17:39:00.000Z", "completeDate": "2018-08-29T16:10:57.013Z", "originBoardId": 114 } ], "comment": { "comments": [ { "id": "435530", "author": { "name": "vijaysingh", "key": "vijaysingh", "displayName": "Vijay Singh", "active": true, "timeZone": "America/Los_Angeles" }, "body": "PR - https://github.com/appcelerator/titanium_mobile/pull/9932\r\n\r\nTest Case - \r\n\r\n\r\n{code:java}\r\nvar win = Ti.UI.createWindow();\r\n \r\nvar searchBar = Titanium.UI.createSearchBar({\r\n showBookmark: true,\r\n hintText: 'Search text',\r\n hintTextColor: 'red',\r\n showCancel: true,\r\n color : 'blue',\r\n keyboardType: Ti.UI.KEYBOARD_TYPE_NUMBER_PAD,\r\n});\r\n \r\nvar table = Ti.UI.createTableView({\r\n data: [{\r\n title: \"Toggle Bookmark button\"\r\n }],\r\n search: searchBar\r\n});\r\n \r\ntable.addEventListener('click', function(e){\r\n\tsearchBar.showBookmark = !searchBar.showBookmark;\r\n});\r\n \r\nwin.add(table);\r\nwin.open();\r\n{code}\r\n\r\n*EDIT* - Changes of this PR is included in PR of TIMOB-25866. ", "updateAuthor": { "name": "vijaysingh", "key": "vijaysingh", "displayName": "Vijay Singh", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2018-03-13T07:13:16.000+0000", "updated": "2018-03-20T09:43:24.000+0000" }, { "id": "439349", "author": { "name": "smohammed", "key": "smohammed", "displayName": "Samir Mohammed", "active": true, "timeZone": "America/Los_Angeles" }, "body": "*Closing ticket*, Verified fix in SDK Version: {{7.4.0.v20180717131401}}\r\n\r\n*FR Passed (Test Steps):*\r\n\r\n# Created a titanium Application\r\n# Added the following code above in to the app.js\r\n# Ran the program\r\n# Able to see Bookmark button on creation \r\n# Pressed the toggle button\r\n# Able to see the bookmark toggle on/off\r\n\r\n*Test Environment*\r\n{code:java}\r\nAPPC Studio: 5.0.0.201712081732\r\nAPPC CLI: 7.0.4\r\niPhone 6 simulator (11.2)\r\nOperating System Name: Mac OS High Sierra\r\nOperating System Version: 10.13\r\nNode.js Version: 8.9.1\r\nXcode 9.2\r\n{code}\r\n", "updateAuthor": { "name": "smohammed", "key": "smohammed", "displayName": "Samir Mohammed", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2018-07-19T19:26:22.000+0000", "updated": "2018-07-19T19:26:22.000+0000" } ], "maxResults": 4, "total": 4, "startAt": 0 } } }