{ "id": "147208", "key": "AC-437", "fields": { "issuetype": { "id": "4", "description": "An improvement or enhancement to an existing feature or task.", "name": "Improvement", "subtask": false }, "project": { "id": "12217", "key": "AC", "name": "Appcelerator - INBOX", "projectCategory": { "id": "10000", "description": "", "name": "Customer Service" } }, "resolution": { "id": "8", "description": "", "name": "Needs more info" }, "resolutiondate": "2015-11-13T18:23:43.000+0000", "created": "2015-04-23T06:03:38.000+0000", "labels": [ "alloy", "onclick", "tableview", "tableviewrow", "tableviewsection", "titanium" ], "versions": [], "issuelinks": [], "assignee": { "name": "shossain", "key": "shossain", "displayName": "Shak Hossain", "active": false, "timeZone": "America/Los_Angeles" }, "updated": "2015-11-13T18:23:43.000+0000", "status": { "description": "A resolution has been taken, and it is awaiting verification by reporter. From here issues are either reopened, or are closed.", "name": "Resolved", "id": "5", "statusCategory": { "id": 3, "key": "done", "colorName": "green", "name": "Done" } }, "components": [ { "id": "14544", "name": "Alloy", "description": "Please enter tickets related to the Alloy here." }, { "id": "14550", "name": "Appcelerator Modules", "description": "Please enter tickets related to Modules here." }, { "id": "14551", "name": "Studio", "description": "Please enter tickets related to Titanium Studio here." } ], "description": "I have developed one application based a below tree structure:\r\n\r\nDefault :\r\n\r\n Category\r\n Category\r\n Category\r\n\r\nWhile clicking the category :\r\n\r\n Category\r\n Sub Category\r\n Product\r\n\r\n Category\r\n\r\n Category\r\n\r\nSome times:\r\n\r\n Category\r\n\r\n Category\r\n Product\r\n\r\n Category\r\n\r\nHere i have to implement this concept using the tableview.\r\n\r\nYes i have created the tableview and then i have created the tableviewsection .i have added the categories in the tableviewsection.i have created the tableviewrow within the tableviewsection. If i have clicking the selected category, i have added the subcategory values in these tableviewrow. But some category having the subcategory ... some of the category doesnot have the subcategory.straightly having the products.So can you please explain me \r\n\r\nHere the categories are listed.But if am clicking the category it will listed out the subcategory.But i can't view the subcategory. Can you check with this and give me a solution \r\n\r\nPlease see my attachment code:", "attachment": [ { "id": "55059", "filename": "sample.js", "author": { "name": "krishnaveni", "key": "krishnaveni", "displayName": "krishnaveni", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2015-04-23T13:46:05.000+0000", "size": 4009, "mimeType": "application/x-javascript" }, { "id": "55053", "filename": "sample.js", "author": { "name": "krishnaveni", "key": "krishnaveni", "displayName": "krishnaveni", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2015-04-23T06:03:38.000+0000", "size": 6035, "mimeType": "application/x-javascript" } ], "flagged": false, "summary": "TableViewSection click event is not working in titanium mobile application", "creator": { "name": "krishnaveni", "key": "krishnaveni", "displayName": "krishnaveni", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "krishnaveni", "key": "krishnaveni", "displayName": "krishnaveni", "active": true, "timeZone": "America/Los_Angeles" }, "environment": "Titanium Studio 3.5.1GA, MAC", "comment": { "comments": [ { "id": "366040", "author": { "name": "ahossain", "key": "ahossain", "displayName": "Amimul Hossain", "active": false, "timeZone": "Asia/Dhaka" }, "body": "Hello Can you take a look at the below code? Event listener in tableview custom section is working when you click on the custom view. Thanks.\r\n{code}\r\nTi.UI.backgroundColor = 'white';\r\nvar win = Ti.UI.createWindow();\r\n\r\nvar tableView = Ti.UI.createTableView({\r\n\theight : '100%',\r\n\twidth : '100%',\r\n\tseparatorColor : '#111214',\r\n\tallowsSelection : true,\r\n});\r\n\r\nwin.add(tableView);\r\n\r\nvar dataArray = [];\r\n\r\nfor (var i = 0; i < 20; i++) {\r\n\tvar customsection = Ti.UI.createView({\r\n\t\twidth : Ti.UI.FILL,\r\n\t\theight : Ti.UI.SIZE,\r\n\t\tid : i,\r\n\t\ttop : 0,\r\n\t\tbottom : 0,\r\n\t});\r\n\r\n\tvar text = Ti.UI.createLabel({\r\n\t\ttext : 'Fred Smith ' + i,\r\n\t\tleft : 20,\r\n\t\tcolor : '#000'\r\n\t});\r\n\tcustomsection.add(text);\r\n\r\n\trow = Ti.UI.createTableViewSection({\r\n\t\theaderView : customsection,\r\n\t});\r\n\r\n\tdataArray.push(row);\r\n\t\r\n\tcustomsection.addEventListener('click', function(e) {\r\n\t\tTitanium.API.info(\"You clicked the button \" + e.source.id);\r\n\t});\r\n};\r\ntableView.setData(dataArray);\r\n\r\nwin.open();\r\n{code}", "updateAuthor": { "name": "ahossain", "key": "ahossain", "displayName": "Amimul Hossain", "active": false, "timeZone": "Asia/Dhaka" }, "created": "2015-10-07T07:12:18.000+0000", "updated": "2015-10-07T07:12:18.000+0000" } ], "maxResults": 1, "total": 1, "startAt": 0 } } }