{ "id": "131875", "key": "TIMOB-17354", "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": "2017-05-02T20:33:34.000+0000", "created": "2014-06-17T23:29:00.000+0000", "priority": { "name": "None", "id": "6" }, "labels": [ "KitchenSink", "TCSupport", "qe-3.4.0" ], "versions": [], "issuelinks": [], "assignee": { "name": "emerriman", "key": "emerriman", "displayName": "Eric Merriman ", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2017-05-02T20:33:34.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": "h4. Problem Description \r\nIf you execute the FB Query example in the KitchenSink (after logging into Facebook) your friends are pulled into the app, but I couldn't figure out a way to escape that view without rebuilding the app from TIS. There may be a way; I didn't try for very long. \r\n\r\n\r\nh5. TESTING ENVIRONMENT:\r\n\r\nMac OS X 10.9\r\nTi CLI 3.3.0\r\nTitanium SDK: 3.3.0.GA\r\niOS 7.1\r\n\r\nh5. STEPS TO TEST\r\n- Import Kitchen Sink project\r\n- Run the project on iOS simulator 7.1\r\n- Go to mashups -->Facebook --> Query --> Run Query\r\n- Facebook Query window doesn't escape \r\n\r\n\r\nh5. WORKAROUND\r\n\r\nFacebook Query window is a modal window. If we use Navigation Window for iOS then it works as expected.\r\n\r\nUpdated runQuery function \r\n{code}\r\n\r\n\tfunction runQuery() {\r\n\t\tb1.title = 'Loading...';\r\n\t\r\n\t\tvar tableView = Ti.UI.createTableView({minRowHeight:100});\r\n\t\tvar win = Ti.UI.createWindow({title:'Facebook Query'});\r\n\t\twin.add(tableView);\r\n\tvar win1 = Titanium.UI.iOS.createNavigationWindow({\r\n window: win\r\n});\r\n\t\t// create close button on window nav\r\n\t\tvar close = Titanium.UI.createButton({\r\n\t\t\ttitle:'Close'\r\n\t\t});\r\n\t\tclose.addEventListener('click', function() {\r\n\t\t\twin1.close();\r\n\t\t});\r\n\t\tif (Ti.Platform.osname == 'iphone' || Ti.Platform.osname == 'ipad') {\r\n\t\t\twin.setRightNavButton(close);\r\n\t\t}\r\n\t\r\n\t\t// run query, populate table view and open window\r\n\t\tvar query = \"SELECT uid, name, pic_square, status FROM user \";\r\n\t\tquery += \"where uid IN (SELECT uid2 FROM friend WHERE uid1 = \" + facebook.uid + \")\";\r\n\t\tquery += \"order by last_name limit 20\";\r\n\t\tTi.API.info('user id ' + facebook.uid);\r\n\t\tfacebook.request('fql.query', {query: query}, function(r) {\r\n\t\t\tif (!r.success) {\r\n\t\t\t\tif (r.error) {\r\n\t\t\t\t\talert(r.error);\r\n\t\t\t\t} else {\r\n\t\t\t\t\talert(\"call was unsuccessful\");\r\n\t\t\t\t}\r\n\t\t\t\treturn;\r\n\t\t\t}\r\n\t\t\tvar result = JSON.parse(r.result);\r\n\t\t\tvar data = [];\r\n\t\t\tfor (var c=0;c