{
"id": "126358",
"key": "AC-2344",
"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": "2014-02-22T19:29:27.000+0000",
"created": "2014-02-13T11:37:51.000+0000",
"labels": [
"ios7",
"picker",
"titanium"
],
"versions": [],
"issuelinks": [],
"assignee": {
"name": "ragrawal",
"key": "ragrawal",
"displayName": "Ritu Agrawal",
"active": true,
"timeZone": "America/Los_Angeles"
},
"updated": "2016-03-08T07:41:22.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": "14544",
"name": "Alloy",
"description": "Please enter tickets related to the Alloy here."
},
{
"id": "14548",
"name": "Titanium SDK & CLI",
"description": "Please enter tickets related to the MobileSDK here."
}
],
"description": "Alloy View\r\n{code}\r\n \r\n{code}\r\n\r\nI'm adding the columns and rows dynamically on click of a button in the controller. But it is not at all showing a single row / column. I have attached the screen shot.\r\n\r\nController\r\n{code}\r\nvar column1 = Ti.UI.createPickerColumn();\r\ncolumn1.addRow(Ti.UI.createPickerRow({title:'Bananas',custom_item:'b'}));\r\ncolumn1.addRow(Ti.UI.createPickerRow({title:'Strawberries',custom_item:'s', selected:true}));\r\ncolumn1.addRow(Ti.UI.createPickerRow({title:'Mangos',custom_item:'m'}));\r\ncolumn1.addRow(Ti.UI.createPickerRow({title:'Grapes',custom_item:'g'}));\r\n\t\r\nvar column2 = Ti.UI.createPickerColumn();\r\ncolumn2.addRow(Ti.UI.createPickerRow({title:'red'}));\r\ncolumn2.addRow(Ti.UI.createPickerRow({title:'green'}));\r\ncolumn2.addRow(Ti.UI.createPickerRow({title:'blue'}));\r\ncolumn2.addRow(Ti.UI.createPickerRow({title:'orange'}));\r\n\t\r\n// 2 columns as an array\r\n$.picker.add([column1,column2]);\r\n{code}",
"attachment": [
{
"id": "45890",
"filename": "iOS Simulator Screen shot 13-Feb-2014 5.05.39 PM.png",
"author": {
"name": "mano_mykingdom",
"key": "mano_mykingdom",
"displayName": "Manojkumar Murugesan",
"active": true,
"timeZone": "Asia/Kolkata"
},
"created": "2014-02-13T11:37:51.000+0000",
"size": 39855,
"mimeType": "image/png"
}
],
"flagged": false,
"summary": "Picker - Unable to add rows / columns dynamically",
"creator": {
"name": "mano_mykingdom",
"key": "mano_mykingdom",
"displayName": "Manojkumar Murugesan",
"active": true,
"timeZone": "Asia/Kolkata"
},
"subtasks": [],
"reporter": {
"name": "mano_mykingdom",
"key": "mano_mykingdom",
"displayName": "Manojkumar Murugesan",
"active": true,
"timeZone": "Asia/Kolkata"
},
"environment": "Mac OSX 10.8.5\r\niOS Simulator 7.0.3\r\nXCode 5.0.2\r\nTitanium Studio 3.2.0\r\nAlloy 1.3.0\r\n",
"comment": {
"comments": [
{
"id": "292945",
"author": {
"name": "ragrawal",
"key": "ragrawal",
"displayName": "Ritu Agrawal",
"active": true,
"timeZone": "America/Los_Angeles"
},
"body": "Please attach a complete and runnable test case to diagnose the issue further.",
"updateAuthor": {
"name": "ragrawal",
"key": "ragrawal",
"displayName": "Ritu Agrawal",
"active": true,
"timeZone": "America/Los_Angeles"
},
"created": "2014-02-13T18:04:35.000+0000",
"updated": "2014-02-13T18:04:35.000+0000"
},
{
"id": "293126",
"author": {
"name": "mano_mykingdom",
"key": "mano_mykingdom",
"displayName": "Manojkumar Murugesan",
"active": true,
"timeZone": "Asia/Kolkata"
},
"body": "Here I have attached the sample code I used to test.\n\nOn Click of the button I'm loading the picker columns and rows. \n\nI need this use case as I want to change the rows and columns based on the selected text field. Like a dropdown component. If you see the screen shot I attached earlier above you can understand my use case well.\n\nindex.xml\n{code}\n\n\t\n\t\t\n\t\t\n\t\n\n{code}\n\nindex.js\n{code}\n\nvar heightDataSource = [];\nvar feets = [];\nfor (var i = 1; i <= 10; i++) {\n\tfeets.push({\n\t\ttitle : i\n\t});\n}\nheightDataSource.push(feets);\nheightDataSource.push([{\n\ttitle : L(\"feet\")\n}]);\nvar inches = [];\nfor (var i = 0; i < 12; i++) {\n\tinches.push({\n\t\ttitle : i\n\t});\n}\nheightDataSource.push(inches);\nheightDataSource.push([{\n\ttitle : L(\"inches\")\n}]);\n\nfunction doClick(e) {\n\tvar pickerColumns = [];\n\tfor (var i in heightDataSource) {\n\t\tvar column = Ti.UI.createPickerColumn();\n\t\tfor (var j in heightDataSource[i]) {\n\t\t\tcolumn.addRow(Ti.UI.createPickerRow(heightDataSource[i][j]));\n\t\t}\n\t\tpickerColumns.push(column);\n\t}\n\t$.picker.add(pickerColumns);\n}\n\n$.index.open();\n\n{code}",
"updateAuthor": {
"name": "mano_mykingdom",
"key": "mano_mykingdom",
"displayName": "Manojkumar Murugesan",
"active": true,
"timeZone": "Asia/Kolkata"
},
"created": "2014-02-14T05:41:30.000+0000",
"updated": "2014-02-14T05:41:30.000+0000"
},
{
"id": "293343",
"author": {
"name": "mano_mykingdom",
"key": "mano_mykingdom",
"displayName": "Manojkumar Murugesan",
"active": true,
"timeZone": "Asia/Kolkata"
},
"body": "Any update on this?",
"updateAuthor": {
"name": "mano_mykingdom",
"key": "mano_mykingdom",
"displayName": "Manojkumar Murugesan",
"active": true,
"timeZone": "Asia/Kolkata"
},
"created": "2014-02-15T18:35:50.000+0000",
"updated": "2014-02-15T18:35:50.000+0000"
},
{
"id": "294268",
"author": {
"name": "ragrawal",
"key": "ragrawal",
"displayName": "Ritu Agrawal",
"active": true,
"timeZone": "America/Los_Angeles"
},
"body": "Titanium does not support adding rows / columns to a picker dynamically. You can create your own picker if you need this functionality.",
"updateAuthor": {
"name": "ragrawal",
"key": "ragrawal",
"displayName": "Ritu Agrawal",
"active": true,
"timeZone": "America/Los_Angeles"
},
"created": "2014-02-22T19:29:27.000+0000",
"updated": "2014-02-22T19:29:27.000+0000"
},
{
"id": "294285",
"author": {
"name": "mano_mykingdom",
"key": "mano_mykingdom",
"displayName": "Manojkumar Murugesan",
"active": true,
"timeZone": "Asia/Kolkata"
},
"body": "Strange! I was able to do the same on 3.1.0 GA and it was working fine. I don't know what is wrong now.",
"updateAuthor": {
"name": "mano_mykingdom",
"key": "mano_mykingdom",
"displayName": "Manojkumar Murugesan",
"active": true,
"timeZone": "Asia/Kolkata"
},
"created": "2014-02-23T08:04:23.000+0000",
"updated": "2014-02-23T08:04:23.000+0000"
}
],
"maxResults": 6,
"total": 6,
"startAt": 0
}
}
}