{ "id": "154658", "key": "TIMOB-20358", "fields": { "issuetype": { "id": "2", "description": "A new feature of the product, which has yet to be developed.", "name": "New Feature", "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": "2", "description": "The problem described is an issue which will never be fixed.", "name": "Won't Fix" }, "resolutiondate": "2016-02-08T12:28:15.000+0000", "created": "2016-02-02T19:52:55.000+0000", "priority": { "name": "Critical", "id": "1" }, "labels": [], "versions": [], "issuelinks": [], "assignee": { "name": "emerriman", "key": "emerriman", "displayName": "Eric Merriman ", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2017-03-23T22:29:32.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": "Hi Team, \r\nThis is in context with moveable property available with TableView for iOS platform. Right now if any tableview is having moveable property set to true, then we can the rows around.\r\n\r\nAnd it's always moving the rows, now what if we want to reorder rows if any condition is met.\r\n\r\nFor example, any tableview is having 2 sections. Now we don't want rows of section2 to be moved into section1.\r\nSo there must be way to check for this condition and move the rows back if such a condition is not satisfied\r\n\r\n", "attachment": [], "flagged": false, "summary": "IOS : Conditional row movement", "creator": { "name": "speedyankur@gmail.com", "key": "speedyankur@gmail.com", "displayName": "ankur garha", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "speedyankur@gmail.com", "key": "speedyankur@gmail.com", "displayName": "ankur garha", "active": true, "timeZone": "America/Los_Angeles" }, "environment": "IOS", "comment": { "comments": [ { "id": "375992", "author": { "name": "sdarda", "key": "sdarda", "displayName": "Sharif AbuDarda", "active": false, "timeZone": "Asia/Dhaka" }, "body": "Hello, Please provide the native iOS documentation link to the property. Our engineering team will look through the inquiry and decide whether to implement the function in our platform. The process is time consuming. Thanks. ", "updateAuthor": { "name": "sdarda", "key": "sdarda", "displayName": "Sharif AbuDarda", "active": false, "timeZone": "Asia/Dhaka" }, "created": "2016-02-04T06:10:56.000+0000", "updated": "2016-02-04T06:10:56.000+0000" }, { "id": "376017", "author": { "name": "speedyankur@gmail.com", "key": "speedyankur@gmail.com", "displayName": "ankur garha", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Hi Sharif, \r\n\r\nHere you go :-\r\nhttp://docs.appcelerator.com/platform/latest/#!/api/Titanium.UI.TableView-property-moving\r\n\r\nIt would be really great if you can send some alternates for now, So that I can apply those patches and keep the project going on.\r\n\r\nRegards,\r\nAnkur garha", "updateAuthor": { "name": "speedyankur@gmail.com", "key": "speedyankur@gmail.com", "displayName": "ankur garha", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2016-02-04T14:05:45.000+0000", "updated": "2016-02-04T14:05:45.000+0000" }, { "id": "376204", "author": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "body": "[~speedyankur@gmail.com] The provided link if our documentation. As far as I know from the official iOS docs (which are asked for), it's part of your application logic to do these checks. ", "updateAuthor": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "created": "2016-02-07T20:25:21.000+0000", "updated": "2016-02-07T20:25:21.000+0000" }, { "id": "376219", "author": { "name": "speedyankur@gmail.com", "key": "speedyankur@gmail.com", "displayName": "ankur garha", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Hi Hans, \r\n\r\nThere is no way to to check for Preconditions, we have only one event (i.e onMove), which is triggered once the row has finished the moving. And it makes no sense to check for conditions here because that row has already moved, then there is no way to put it back.\r\n\r\nSo we need an event where it should check for these preconditions and then only, it should be allowed for moving \r\nOr there should be a way to put back that row to its original place if it is failing some conditional logic.\r\n\r\nI believe ", "updateAuthor": { "name": "speedyankur@gmail.com", "key": "speedyankur@gmail.com", "displayName": "ankur garha", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2016-02-08T12:20:32.000+0000", "updated": "2016-02-08T12:20:32.000+0000" }, { "id": "376220", "author": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "body": "[~speedyankur@gmail.com] You can just set the `canMove` property of every cell to true or false and apply your logic to your ListView. That's all we can do from our point. If you feel like there is another way to do it, you can always contribute to the SDK, since it's open source on [Github|https://github.com/appcelerator/titanium_mobile]. Thank you!", "updateAuthor": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "created": "2016-02-08T12:27:28.000+0000", "updated": "2016-02-08T12:27:45.000+0000" }, { "id": "415438", "author": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Closing ticket as Won't Fix with reference to the above comments.", "updateAuthor": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2017-03-23T22:29:32.000+0000", "updated": "2017-03-23T22:29:32.000+0000" } ], "maxResults": 6, "total": 6, "startAt": 0 } } }