{ "id": "61914", "key": "TIMOB-1282", "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": [ { "id": "11242", "name": "Release 1.6.0 M09", "archived": true, "released": true, "releaseDate": "2011-02-14" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2011-04-17T01:55:44.000+0000", "created": "2011-04-15T02:48:28.000+0000", "priority": { "name": "Trivial", "id": "5" }, "labels": [ "1.3.3", "4", "defect", "ios", "os", "picker", "release-1.6.0", "sdk" ], "versions": [], "issuelinks": [], "assignee": { "name": "blainhamon", "key": "blainhamon", "displayName": "Blain Hamon", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2011-04-17T01:55:44.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}

A customer reported that with SDK 1.3.2, after adding a picker\nto a window, using the setSelectedRow worked and this does not work\nin 1.3.3 from HEAD.

\n

I was able to reproduce this with picker_basic.js in the Kitchen\nSink. I was able to get it to work with a setTimeout of 100ms\nthough which leaves me to believe that there is a delay in\ncomponent creation and being able to use methods on a component. My\npicker_basic.js is attached and the setTimeout is at the bottom of\nthe file.

{html}", "attachment": [ { "id": "17965", "filename": "picker_basic.js", "author": { "name": "ctredway1", "key": "ctredway1", "displayName": "ctredway", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-04-15T02:48:29.000+0000", "size": 1185, "mimeType": "application/x-javascript" } ], "flagged": false, "summary": "Picker setSelectedRow OS 4 SDK 1.3.3 (HEAD)", "creator": { "name": "ctredway1", "key": "ctredway1", "displayName": "ctredway", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "ctredway1", "key": "ctredway1", "displayName": "ctredway", "active": true, "timeZone": "America/Los_Angeles" }, "environment": null, "comment": { "comments": [ { "id": "125244", "author": { "name": "ranguard", "key": "ranguard", "displayName": "ranguard", "active": true, "timeZone": "America/Los_Angeles" }, "body": "{html}

It's obviously a known bug (since June 10th) as a work around\nwas added to the end of contacts_groups.js here:

\n

\nhttp://github.com/appcelerator/titanium_mobile/commit/2998e9d0dc293...

\n

Maybe you could ask your developers to raise tickets when they\nfind bugs - rather than waiting for your clients to find them?

{html}", "updateAuthor": { "name": "ranguard", "key": "ranguard", "displayName": "ranguard", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-04-15T02:48:29.000+0000", "updated": "2011-04-15T02:48:29.000+0000" }, { "id": "125245", "author": { "name": "jhaynie", "key": "jhaynie", "displayName": "Jeff Haynie", "active": false, "timeZone": "America/Los_Angeles" }, "body": "{html}

(from [958778c249da2a20f4af1f7d663a0595ad263d49])\n[#1282 state:resolved] Picker now delays row\nselection until view attached if necessary. \nhttp://github.com/appcelerator/titanium_mobile/commit/958778c249da2...

{html}", "updateAuthor": { "name": "jhaynie", "key": "jhaynie", "displayName": "Jeff Haynie", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2011-04-15T02:48:29.000+0000", "updated": "2011-04-15T02:48:29.000+0000" }, { "id": "125246", "author": { "name": "ranguard", "key": "ranguard", "displayName": "ranguard", "active": true, "timeZone": "America/Los_Angeles" }, "body": "{html}

I create a view, then a picker, add the picker to the view, then\ncreate a window and add the view to the window.

\n

THEN I call Ti.Ui.currentTab.open(win, { animated: true });

\n

Calling setSelectedRow BEFORE the open doesn't work, calling it\nAFTER does.

\n

So not sure this is 100% fixed - much better though - thanks

\n

p.s. you may want to update your contacts_groups.js example

{html}", "updateAuthor": { "name": "ranguard", "key": "ranguard", "displayName": "ranguard", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-04-15T02:48:29.000+0000", "updated": "2011-04-15T02:48:29.000+0000" }, { "id": "125247", "author": { "name": "stephentramer", "key": "stephentramer", "displayName": "Stephen Tramer", "active": true, "timeZone": "America/Los_Angeles" }, "body": "{html}

We are currently working on some internal changes which will\nlikely go in post-1.4.0 that may be able to solve this problem. For\nnow, I recommend that you call setSelectedRow() in an event\nlistener for win.open().

{html}", "updateAuthor": { "name": "stephentramer", "key": "stephentramer", "displayName": "Stephen Tramer", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-04-15T02:48:29.000+0000", "updated": "2011-04-15T02:48:29.000+0000" }, { "id": "125248", "author": { "name": "ranguard", "key": "ranguard", "displayName": "ranguard", "active": true, "timeZone": "America/Los_Angeles" }, "body": "{html}

Great thanks - could you open a new ticket for '1.5' to that\neffect - just so others can find out it is a know problem.

{html}", "updateAuthor": { "name": "ranguard", "key": "ranguard", "displayName": "ranguard", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-04-15T02:48:30.000+0000", "updated": "2011-04-15T02:48:30.000+0000" }, { "id": "125249", "author": { "name": "stephentramer", "key": "stephentramer", "displayName": "Stephen Tramer", "active": true, "timeZone": "America/Los_Angeles" }, "body": "{html}

Re-opening. This can probably be fixed by Blain's changes to the\nview loading system; we'll need to look into it. Right now it looks\nlike a view can attach before a window is properly opened, a little\nmore work is necessary.

{html}", "updateAuthor": { "name": "stephentramer", "key": "stephentramer", "displayName": "Stephen Tramer", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-04-15T02:48:30.000+0000", "updated": "2011-04-15T02:48:30.000+0000" }, { "id": "125250", "author": { "name": "fspencer", "key": "fspencer", "displayName": "Fred Spencer", "active": true, "timeZone": "America/Los_Angeles" }, "body": "{html}

Hey guys - Worked on this for about an hour and can't really\nfind a way to get this to work when opening a Picker in a Popover.\nThe Popover and Picker are instantiated within an Event\nHandler.

\n

Picker populates just fine, but setSelectedRow won't work. Tried\nfireEvents and timing changes. Bringing this up as Picker in\nPopover are part of the HIG.

\n

\"Present a picker or date and time picker only within a\npopover.\"

\n

Cheers! :-)

{html}", "updateAuthor": { "name": "fspencer", "key": "fspencer", "displayName": "Fred Spencer", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-04-15T02:48:31.000+0000", "updated": "2011-04-15T02:48:31.000+0000" }, { "id": "125251", "author": { "name": "blainhamon", "key": "blainhamon", "displayName": "Blain Hamon", "active": true, "timeZone": "America/Los_Angeles" }, "body": "{html}

I'm quite sure I fixed this one due to a different bug, but I'll\nhave to look after 1.5.0

{html}", "updateAuthor": { "name": "blainhamon", "key": "blainhamon", "displayName": "Blain Hamon", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-04-15T02:48:31.000+0000", "updated": "2011-04-15T02:48:31.000+0000" }, { "id": "125252", "author": { "name": "stephentramer", "key": "stephentramer", "displayName": "Stephen Tramer", "active": true, "timeZone": "America/Los_Angeles" }, "body": "{html}

Appears to be an Apple bug involving when a picker row can be\nset (it must, apparently, be attacked to the topmost level view).\nGoing to look into a workaround.

{html}", "updateAuthor": { "name": "stephentramer", "key": "stephentramer", "displayName": "Stephen Tramer", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-04-15T02:48:32.000+0000", "updated": "2011-04-15T02:48:32.000+0000" }, { "id": "125253", "author": { "name": "jhaynie", "key": "jhaynie", "displayName": "Jeff Haynie", "active": false, "timeZone": "America/Los_Angeles" }, "body": "{html}

(from [2fab4fc209b2277dc41ea4fd841848523a6509c1])\n[#1282 state:fixed-in-qa] Workaround for cute\nApple bug involving animating a picker when it might maybe not be\nquite attached to a view yet! \nhttps://github.com/appcelerator/titanium_mobile/commit/2fab4fc209b2...

{html}", "updateAuthor": { "name": "jhaynie", "key": "jhaynie", "displayName": "Jeff Haynie", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2011-04-15T02:48:32.000+0000", "updated": "2011-04-15T02:48:32.000+0000" }, { "id": "125254", "author": { "name": "stephentramer", "key": "stephentramer", "displayName": "Stephen Tramer", "active": true, "timeZone": "America/Los_Angeles" }, "body": "{html}

TESTING THIS BUG:

\n

The behavior for the Popover test on KS-iPad has changed. The\nbehavior should now be:

\n
{html}", "updateAuthor": { "name": "stephentramer", "key": "stephentramer", "displayName": "Stephen Tramer", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-04-15T02:48:32.000+0000", "updated": "2011-04-15T02:48:32.000+0000" }, { "id": "125255", "author": { "name": "thomashuelbert", "key": "thomashuelbert", "displayName": "Thomas Huelbert", "active": true, "timeZone": "America/Los_Angeles" }, "body": "{html}

closing using Rc1 and ipad wifi 3.2 and 3g 4.2 based on Stephens\nnotes above

{html}", "updateAuthor": { "name": "thomashuelbert", "key": "thomashuelbert", "displayName": "Thomas Huelbert", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-04-15T02:48:32.000+0000", "updated": "2011-04-15T02:48:32.000+0000" } ], "maxResults": 12, "total": 12, "startAt": 0 } } }