{ "id": "107102", "key": "TIMOB-12157", "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": "7", "description": "", "name": "Invalid" }, "resolutiondate": "2013-01-25T23:35:23.000+0000", "created": "2012-12-27T03:16:14.000+0000", "priority": { "name": "High", "id": "2" }, "labels": [], "versions": [], "issuelinks": [], "assignee": { "name": "ingo", "key": "ingo", "displayName": "Ingo Muschenetz", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2014-06-19T12:43: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": [], "description": "According to the docs, searchbar is not supported on MobileWeb. But search bar appears in landscape mode but not in portrait. In the customer app, we can see the above behavior. I have a simple test case below which throws a blank red screen giving undefined error. Any clarification would be helpful.\r\n{code}\r\nvar win = Titanium.UI.createWindow({\r\n backgroundColor:'white',\r\n});\r\n\r\n// create table view data object\r\nvar data = [];\r\n\r\ndata[0] = Ti.UI.createTableViewRow({hasChild:true,title:'Row 1'});\r\ndata[1] = Ti.UI.createTableViewRow({hasDetail:true,title:'Row 2'});\r\ndata[2] = Ti.UI.createTableViewRow({hasCheck:true,title:'Row 3'});\r\ndata[3] = Ti.UI.createTableViewRow({title:'Row 4'});\r\n\r\n var search = Titanium.UI.createSearchBar({\r\n barColor:'#385292',\r\n showCancel:false,\r\n hintText:'search'\r\n});\r\n\r\n// create table view\r\nvar tableview = Titanium.UI.createTableView({\r\n data:data,\r\n search:search,\r\n // searchHidden:true\r\n hideSearchOnSelection : false,\r\n filterAttribute : 'title'\r\n});\r\n\r\n\r\n// create table view event listener\r\ntableview.addEventListener('click', function(e)\r\n{\r\n // event data\r\n var index = e.index;\r\n var section = e.section;\r\n var row = e.row;\r\n var rowdata = e.rowData;\r\n Titanium.UI.createAlertDialog({title:'Table View',message:'row ' + row + ' index ' + index + ' section ' + section + ' row data ' + rowdata}).show();\r\n});\r\n\r\n// add table view to the window\r\nwin.add(tableview);\r\n\r\n\r\nwin.open();\r\n{code}", "attachment": [], "flagged": false, "summary": "MobileWeb : SearchBar does not appear in portrait but works in landscape mode", "creator": { "name": "anagesh", "key": "anagesh", "displayName": "Anirudh Nagesh", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "anagesh", "key": "anagesh", "displayName": "Anirudh Nagesh", "active": true, "timeZone": "America/Los_Angeles" }, "environment": "Ti SDK 3.0GA and Mobileweb", "comment": { "comments": [ { "id": "236050", "author": { "name": "bhughes", "key": "bhughes", "displayName": "Bryan Hughes", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Not sure what's going on here or where this ticket came from. Mobile Web doesn't even have a search bar implementation. Ti.UI.createSearchBar is undefined.", "updateAuthor": { "name": "bhughes", "key": "bhughes", "displayName": "Bryan Hughes", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-01-25T23:35:23.000+0000", "updated": "2013-01-25T23:35:23.000+0000" }, { "id": "236053", "author": { "name": "ingo", "key": "ingo", "displayName": "Ingo Muschenetz", "active": true, "timeZone": "America/Los_Angeles" }, "body": "@Anirudh...can you please attach screenshots?", "updateAuthor": { "name": "ingo", "key": "ingo", "displayName": "Ingo Muschenetz", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-01-25T23:38:05.000+0000", "updated": "2013-01-25T23:38:05.000+0000" }, { "id": "236056", "author": { "name": "bhughes", "key": "bhughes", "displayName": "Bryan Hughes", "active": true, "timeZone": "America/Los_Angeles" }, "body": "To clarify, that test app is supposed to crash on line 13. If it doesn't, that means you are using some unofficial 3rd party implementation, which we obviously don't support.", "updateAuthor": { "name": "bhughes", "key": "bhughes", "displayName": "Bryan Hughes", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-01-25T23:40:00.000+0000", "updated": "2013-01-25T23:40:41.000+0000" }, { "id": "240509", "author": { "name": "sbhadauria", "key": "sbhadauria", "displayName": "Shyam Bhadauria", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Closing as it is giving the mentioned error of no method 'createSearchBar' at line 13.\r\nEnvironment used for verification -\r\nTitanium SDK: 3.1.0.v20130228214607\r\nTitanium  Studio:3.0.2.201302141201", "updateAuthor": { "name": "sbhadauria", "key": "sbhadauria", "displayName": "Shyam Bhadauria", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-03-04T09:07:53.000+0000", "updated": "2013-03-04T09:07:53.000+0000" } ], "maxResults": 4, "total": 4, "startAt": 0 } } }