{ "id": "63446", "key": "TIMOB-2814", "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": "2012-08-30T23:23:07.000+0000", "created": "2011-04-15T03:30:17.000+0000", "priority": { "name": "Medium", "id": "3" }, "labels": [], "versions": [], "issuelinks": [ { "id": "20477", "type": { "id": "10003", "name": "Relates", "inward": "relates to", "outward": "relates to" }, "outwardIssue": { "id": "94532", "key": "TIMOB-9901", "fields": { "summary": "TiAPI: Review and clean up platform bugs and reduce bug count by 20%.", "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": "High", "id": "2" }, "issuetype": { "id": "7", "description": "gh.issue.story.desc", "name": "Story", "subtask": false } } } } ], "assignee": { "name": "ngupta", "key": "ngupta", "displayName": "Neeraj Gupta", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2012-08-30T23:23:15.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": "{html}
Here i using five textfields are added to row in tableview with\nsame instance of textfield how to reterive the value from the\ntextfield
\nhere i attached my sample code
\n\n// this sets the background color of the master UIView (when there are no windows/tab groups on it)\nTitanium.UI.setBackgroundColor('#000');\n\n\n//\nvar win1 = Titanium.UI.createWindow({ \n title:'Tab 1',\n backgroundColor:'red'\n});\nwin1.open();\n\nvar data = [];\n\ndata[0] = Ti.UI.createTableViewSection({ headerView:'headerView' });\ndata[1] = addRow('First Name');\ndata[2] = addRow('Middle Name');\ndata[3] = addRow('Last Name');\ndata[4] = addRow('DOB');\ndata[5] = addRow('DOR');\n\ntableView = Ti.UI.createTableView({\n data:data,\n style: Titanium.UI.iPhone.TableViewStyle.GROUPED\n\n\n});\n\nwin1.add(tableView);\n\nfunction addRow(labelName)\n{\n row = Ti.UI.createTableViewRow({height:50});\n label = Titanium.UI.createLabel({\n font:{fontSize:13,fontFamily:'Helvetica Neue', fontWeight:'bold'},\n color: '#666',\n text: labelName,\n left: 5,\n height:'auto',\n width:'auto',\n textAlign:'left'\n });\n row.add(label);\n\n tf1 = Titanium.UI.createTextField({\n font:{fontSize:18,fontFamily:'Marker Felt', fontWeight:'bold'},\n color:'#888',\n height:35,\n top:10,\n right:10,\n width:190,\n hintText:labelName,\n textAlign: 'right',\n clearButtonMode: Titanium.UI.INPUT_BUTTONMODE_ALWAYS,\n borderStyle:Titanium.UI.INPUT_BORDERSTYLE_NONE\n });\n\n if((labelName == 'First Name') || (labelName == 'Last Name'))\n {\n tf1.autocorrect = false;\n }\n if((labelName == 'DOB') || (labelName == 'DOR'))\n {\n //tf1.enabled=false;\n tf1.editable=false;\n }\n row.add(tf1);\n row.selectionStyle = Ti.UI.iPhone.TableViewCellSelectionStyle.NONE;\n return row;\n}\n\n\n\n\n\nvar addToLocalDB = Titanium.UI.createButton({\n width:280,\n height:66,\n top:300\n});\nwin1.add(addToLocalDB);\n\naddToLocalDB.addEventListener('click',function(e)\n{ \n alert(label.text);\n if(label.text=='DOB')\n {\n alert(tf1.value);\n }\n\n});
\n