{"action":"created","issue":{"url":"https://api.github.com/repos/SAP/openui5/issues/890","repository_url":"https://api.github.com/repos/SAP/openui5","labels_url":"https://api.github.com/repos/SAP/openui5/issues/890/labels{/name}","comments_url":"https://api.github.com/repos/SAP/openui5/issues/890/comments","events_url":"https://api.github.com/repos/SAP/openui5/issues/890/events","html_url":"https://github.com/SAP/openui5/issues/890","id":139746443,"number":890,"title":"Enh. Suggestions for sap.m.PlanningCalendar","user":{"login":"jasper07","id":837243,"avatar_url":"https://avatars.githubusercontent.com/u/837243?v=3","gravatar_id":"","url":"https://api.github.com/users/jasper07","html_url":"https://github.com/jasper07","followers_url":"https://api.github.com/users/jasper07/followers","following_url":"https://api.github.com/users/jasper07/following{/other_user}","gists_url":"https://api.github.com/users/jasper07/gists{/gist_id}","starred_url":"https://api.github.com/users/jasper07/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jasper07/subscriptions","organizations_url":"https://api.github.com/users/jasper07/orgs","repos_url":"https://api.github.com/users/jasper07/repos","events_url":"https://api.github.com/users/jasper07/events{/privacy}","received_events_url":"https://api.github.com/users/jasper07/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/SAP/openui5/labels/contribution%20welcome","name":"contribution welcome","color":"207de5"},{"url":"https://api.github.com/repos/SAP/openui5/labels/enhancement","name":"enhancement","color":"0000ff"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2016-03-10T00:38:45Z","updated_at":"2016-03-24T11:03:36Z","closed_at":null,"body":"OpenUI5 version: 1:36.0\r\n\r\nI have been working on an extension of the PlanningCalendar, below are some the changes i have made which i think could be included. All changes came from customer feature requests. I would make a PR but guessing some changes already in pipeline.\r\n\r\n1. SubIntervals can be set on the PlanningCalendarView but not directly on the PlanningCalendar, customer wants to see intervals every 15 minutes when on hour view  \r\n\r\n2. Min and Max dates, customer wants to control how far into the past and future users can go\r\n\r\n3. EndDate, needed for Selecting Data for the current view,  need to be able to determine both the StartDate and the EndDate \r\n   eg \r\n```sql\r\n SELECT * FROM Appointments WHERE Start < EndDate AND End > StartDate \r\n```\r\n\r\nexample code\r\n\r\n```javascript\r\n  metadata: {\r\n         properties: {\r\n              minDate: { type: \"object\", group: \"Data\" },\r\n              maxDate: { type: \"object\", group: \"Data\" },\r\n              showSubIntervals: { type: \"boolean\", group: \"Appearance\", defaultValue: false}\r\n\r\n   ....\r\n \r\n              PlanningCalendar.prototype.setViewKey = function(sKey) {\r\n               ..\r\n                oView.setShowSubIntervals(this.getShowSubIntervals()); //1  a getView would be nice\r\n\r\n                if (this.getMinDate() &&  this._oTimeInterval) {  //2\r\n                    this._oTimeInterval._oMinDate = new UniversalDate(this.getMinDate());\r\n                }\r\n\r\n                if (this.getMaxDate() && this._oTimeInterval) { //2\r\n                    this._oTimeInterval._oMaxDate = new UniversalDate(this.getMaxDate());\r\n                }     \r\n            },\r\n...\r\n            PlanningCalendar.prototype.getRowEndDate = function() {\r\n                // this._iRowSize = oCalendarRow._iRowSize; - derived @ onBeforeRendering\r\n                return new Date(this.getStartDate().getTime() + this._iRowSize);  //3\r\n            },\r\n\r\n```"},"comment":{"url":"https://api.github.com/repos/SAP/openui5/issues/comments/200788337","html_url":"https://github.com/SAP/openui5/issues/890#issuecomment-200788337","issue_url":"https://api.github.com/repos/SAP/openui5/issues/890","id":200788337,"user":{"login":"Michadelic","id":6791333,"avatar_url":"https://avatars.githubusercontent.com/u/6791333?v=3","gravatar_id":"","url":"https://api.github.com/users/Michadelic","html_url":"https://github.com/Michadelic","followers_url":"https://api.github.com/users/Michadelic/followers","following_url":"https://api.github.com/users/Michadelic/following{/other_user}","gists_url":"https://api.github.com/users/Michadelic/gists{/gist_id}","starred_url":"https://api.github.com/users/Michadelic/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Michadelic/subscriptions","organizations_url":"https://api.github.com/users/Michadelic/orgs","repos_url":"https://api.github.com/users/Michadelic/repos","events_url":"https://api.github.com/users/Michadelic/events{/privacy}","received_events_url":"https://api.github.com/users/Michadelic/received_events","type":"User","site_admin":false},"created_at":"2016-03-24T11:03:36Z","updated_at":"2016-03-24T11:03:36Z","body":"Contacted the content expert to let him know about your suggestions. @rpanneel @jasper07 You can also think about a contribution, this will definitely be faster than if we do it by ourselves as we usually have a lot of feature backlog on our tables.\r\n\r\nFirst, we should clarify however if these suggestions make sense for all our stakeholders\r\nGet in touch with us if you plan to contribute some of the features.\r\n\r\n@thomaskoetter what do you think about these suggestions?\r\n\r\nKind Regards,\r\nMichael"}}