{ "id": "85618", "key": "TIMOB-7447", "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": "10100", "description": "This issue won't be actioned.", "name": "Won't Do" }, "resolutiondate": "2020-01-09T19:38:37.000+0000", "created": "2012-01-27T07:46:20.000+0000", "priority": { "name": "Low", "id": "4" }, "labels": [ "parity" ], "versions": [ { "id": "12570", "name": "Release 1.7.5", "archived": true, "released": true, "releaseDate": "2011-11-02" }, { "id": "12580", "description": "Dual Runtime 1.8.0", "name": "Release 1.8.0.1", "archived": true, "released": true, "releaseDate": "2011-12-22" }, { "id": "12677", "description": "Release 1.8 Service Pack 1", "name": "Release 1.8.1", "archived": true, "released": true, "releaseDate": "2012-01-31" } ], "issuelinks": [], "assignee": { "name": "ingo", "key": "ingo", "displayName": "Ingo Muschenetz", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2020-01-09T19:38:37.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": "10202", "name": "Android", "description": "Android Platform" } ], "description": "h3. Expected:\r\n With tables and other objects, you can pass either explicit objects or anonymous objects. I expected to be able to do this with the picker, too. \r\n\r\nh3. Actual:\r\n On iOS, you can create a picker with anonymous objects. On Android, you cannot. You get an empty picker. \r\n\r\nAdditionally, if you set the useSpinner=true property with a picker created with anonymous objects, it causes a force-close of the app.\r\n\r\n{code}\r\nvar picker = Ti.UI.createPicker({\r\n\t/*useSpinner: true*/\r\n});\r\n\r\nvar data = [];\r\n/*\r\n// this works on Android\r\ndata[0]=Ti.UI.createPickerRow({title:'Bananas',custom_item:'b'});\r\ndata[1]=Ti.UI.createPickerRow({title:'Strawberries',custom_item:'s'});\r\ndata[2]=Ti.UI.createPickerRow({title:'Mangos',custom_item:'m'});\r\ndata[3]=Ti.UI.createPickerRow({title:'Grapes',custom_item:'g'});\r\n*/\r\n// this does not, but works on iOS\r\ndata[0]={title:'Bananas',custom_item:'b'};\r\ndata[1]={title:'Strawberries',custom_item:'s'};\r\ndata[2]={title:'Mangos',custom_item:'m'};\r\ndata[3]={title:'Grapes',custom_item:'g'};\r\n\r\n\r\n// turn on the selection indicator (off by default)\r\npicker.selectionIndicator = true;\r\n\r\npicker.add(data);\r\n\r\nwin1.add(picker);\r\n{code}", "attachment": [], "flagged": false, "summary": "Android: Picker - Can't create rows with anonymous objects", "creator": { "name": "skypanther", "key": "skypanther", "displayName": "Tim Poulsen", "active": true, "timeZone": "America/New_York" }, "subtasks": [], "reporter": { "name": "skypanther", "key": "skypanther", "displayName": "Tim Poulsen", "active": true, "timeZone": "America/New_York" }, "environment": "Tested on 1.7.5, 1.8.0.1 (release), and 1.8.1.v20120126144634\r\nOSX 10.7.2, Android emulator 2.2 & 4\r\niOS Simulator, iOS 5", "comment": { "comments": [ { "id": "453585", "author": { "name": "ahutton", "key": "ahutton", "displayName": "Alan Hutton", "active": true, "timeZone": "America/Los_Angeles" }, "body": "It has been decided that this issue should be closed as “Won’t do.” This issue is out of date with our current supported SDK release (7.5.2.GA as of the date of closure), and out of date with mobile OS versions. \r\n\r\nIf community members feel that the issue is still valid, please create a new ticket. Please reference this closed ticket number, include SDK used, comments, and code that demonstrates/reproduces the issue.", "updateAuthor": { "name": "ahutton", "key": "ahutton", "displayName": "Alan Hutton", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2020-01-09T19:38:37.000+0000", "updated": "2020-01-09T19:38:37.000+0000" } ], "maxResults": 1, "total": 1, "startAt": 0 } } }