{ "id": "117985", "key": "TIMOB-14771", "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": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2013-08-07T18:47:04.000+0000", "created": "2013-08-05T11:22:46.000+0000", "priority": { "name": "Low", "id": "4" }, "labels": [ "blackberry", "parity" ], "versions": [], "issuelinks": [], "assignee": { "name": "penrique", "key": "penrique", "displayName": "Pedro Enrique", "active": false, "timeZone": "America/Los_Angeles" }, "updated": "2017-03-14T21:08:39.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": "10230", "name": "BlackBerry", "description": "BlackBerry Platform" } ], "description": "*Problem*\r\nNothing happens when I try to add a View to TableViewRow.\r\n\r\nAlso, I want to show Image in imageView through a URL, but that's not showing either.\r\n\r\n*Note*\r\nIt works with iOS and Android.\r\n\r\n*Test case*\r\nUse the following, not the attachment:\r\n{code:javascript}\r\n// My Questions are added in Comment. There are 2 Questions.\r\n// This is working with iOS and Android. not working with BB10\r\nvar tableData = [];\r\n\r\nvar win = Ti.UI.createWindow({\r\n\tbackgroundColor : 'white'\r\n});\r\n\r\nvar table = Ti.UI.createTableView({\r\n\tobjName : 'table'\r\n});\r\n\r\nfor (var i = 0; i <= 20; i++) {\r\n\t//Row Creating\r\n\tvar row = Ti.UI.createTableViewRow({\r\n\t\tclassName : 'row',\r\n\t\tobjName : 'row',\r\n\t\ttouchEnabled : true,\r\n\t\theight : 100\r\n\t});\r\n\t// View Creating\r\n\tvar enabledWrapperView = Ti.UI.createView({\r\n\t\tbackgroundColor : '#008FD5',\r\n\t\tobjName : 'enabledWrapperView',\r\n\t\trowID : i,\r\n\t\twidth : Ti.UI.FILL,\r\n\t\theight : '100%'\r\n\t});\r\n\r\n\tvar disabledWrapperView = Ti.UI.createView({\r\n\t\tbackgroundColor : '#A2E0FF',\r\n\t\tobjName : 'disabledWarpperView',\r\n\t\ttouchEnabled : false,\r\n\t\twidth : 300,\r\n\t\theight : '80%'\r\n\t});\r\n\tenabledWrapperView.add(disabledWrapperView);\r\n\r\n\tvar label = Ti.UI.createLabel({\r\n\t\tbackgroundColor : '#313F48',\r\n\t\tcolor : 'white',\r\n\t\tobjName : 'label',\r\n\t\ttext : i,\r\n\t\ttouchEnabled : false,\r\n\t\tleft : 0,\r\n\t\twidth : 200\r\n\t});\r\n\t/* \t\t\t\t\t1 Question ...\r\n\r\n\t Here We add the View on TableViewRow.\r\n\t This is working fine with iOS and android. But not with Blackberry10.\r\n\t when we add any View or object the this is not display on Row material.\r\n\r\n\t */\r\n\tdisabledWrapperView.add(label);\r\n\trow.add(enabledWrapperView);\r\n\ttableData.push(row);\r\n}\r\n\r\ntable.setData(tableData);\r\n\r\ntable.addEventListener(\"click\", function(e) {\r\n\tvar win2 = Ti.UI.createWindow({\r\n\t\tbackgroundColor : \"#fff\",\r\n\r\n\t});\r\n\tvar backBtn = Ti.UI.createButton({\r\n\t\ttitle : \"Back\",\r\n\t\ttop : \"0px\",\r\n\t})\r\n\tbackBtn.addEventListener(\"click\", function() {\r\n\t\twin2.close();\r\n\t});\r\n\t/* \t\t\t\t\t2 Question ...\r\n\t When we use any URL for display any Image then this is not working.\r\n\t If we use Local Image the woking fine.\r\n\t */\r\n\tvar imgView = Ti.UI.createImageView({\r\n\t\theight : Ti.UI.SIZE,\r\n\t\twidth : Ti.UI.SIZE,\r\n\t\timage : \"http://cdn.ajolab.com/uploads_show/1000/46/web.jpg\"\r\n\t});\r\n\twin2.add(imgView);\r\n\twin2.open();\r\n});\r\n\r\nwin.add(table);\r\nwin.open();{code}", "attachment": [ { "id": "41314", "filename": "app.js", "author": { "name": "mritunjayk477@gmail.com", "key": "mritunjayk477@gmail.com", "displayName": "Mritunjay Singh", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-08-06T08:01:56.000+0000", "size": 3635, "mimeType": "text/javascript" } ], "flagged": false, "summary": "BlackBerry: Cannot add view to tableViewRow", "creator": { "name": "mritunjayk477@gmail.com", "key": "mritunjayk477@gmail.com", "displayName": "Mritunjay Singh", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "mritunjayk477@gmail.com", "key": "mritunjayk477@gmail.com", "displayName": "Mritunjay Singh", "active": true, "timeZone": "America/Los_Angeles" }, "environment": "Titanium SDK 3.x.\r\nMac OS\r\nBlackberry 10", "comment": { "comments": [ { "id": "265003", "author": { "name": "dsefton", "key": "dsefton", "displayName": "Daniel Sefton", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Hi Mritunjay,\r\n\r\nPlease can you provide a simple reproducible test case that we can drop into an app.js and run?\r\n\r\nThanks!", "updateAuthor": { "name": "dsefton", "key": "dsefton", "displayName": "Daniel Sefton", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-08-05T22:05:27.000+0000", "updated": "2013-08-05T22:05:27.000+0000" }, { "id": "265071", "author": { "name": "mritunjayk477@gmail.com", "key": "mritunjayk477@gmail.com", "displayName": "Mritunjay Singh", "active": true, "timeZone": "America/Los_Angeles" }, "body": "I have attach a app.js.\nplease find that file and check it\nThanks for your revert..", "updateAuthor": { "name": "mritunjayk477@gmail.com", "key": "mritunjayk477@gmail.com", "displayName": "Mritunjay Singh", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-08-06T08:02:27.000+0000", "updated": "2013-08-06T08:02:27.000+0000" }, { "id": "265163", "author": { "name": "penrique", "key": "penrique", "displayName": "Pedro Enrique", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Please test the latest from 3.1.x It is working fine on my end.\n\nhttp://builds.appcelerator.com.s3.amazonaws.com/index.html#3_1_X", "updateAuthor": { "name": "penrique", "key": "penrique", "displayName": "Pedro Enrique", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2013-08-06T18:56:52.000+0000", "updated": "2013-08-06T18:56:52.000+0000" }, { "id": "265294", "author": { "name": "mritunjayk477@gmail.com", "key": "mritunjayk477@gmail.com", "displayName": "Mritunjay Singh", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Thanks for your revert...\r\nWhen I update my Titanium SDK with 3.1.2 then this is working fine for me. \r\nThanks a lot.. for your help..", "updateAuthor": { "name": "mritunjayk477@gmail.com", "key": "mritunjayk477@gmail.com", "displayName": "Mritunjay Singh", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-08-07T06:30:19.000+0000", "updated": "2013-08-07T06:30:19.000+0000" }, { "id": "412326", "author": { "name": "emerriman", "key": "emerriman", "displayName": "Eric Merriman ", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Closing as resolved.", "updateAuthor": { "name": "emerriman", "key": "emerriman", "displayName": "Eric Merriman ", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2017-03-14T21:08:39.000+0000", "updated": "2017-03-14T21:08:39.000+0000" } ], "maxResults": 5, "total": 5, "startAt": 0 } } }