SNAPSHOT_v9.0d_2013-05-28/PowerEdition Deployment (built 2013-05-28)
We are working on a daily view with the timeline component, but we have some problems and need your help.
In our scenario we would like to show events for working hours for a given day only (we always get and put the events to the timeline control for that day only as it changes), and here are the points we need advice.
1. This code doesn't seem to work for timeline (it does work for calendar) We don't really need it, just having 1.a is a good solution for us.
1.a Specifying the visible range using timeline.setTimelineRange would work for us, but then we need to be able override the prev/next button to move one day back and forth. (We tried but it steps now the length of the defined range (actually 14 hours))
So either scrolling to the working hours (with or without highlighting) or moving prev/next with a day is OK.
2. We want to show only a day in the date label (with name of the day) (like we requested in http://forums.smartclient.com/showthread.php?t=26762 will check once it will be available later today)
Hope the same method is wrapped for range. Will update this thread if it is needed to be added too.
3. Is there any way to change the header format? We would like to show the same time formats for calendar and timeline view (vertically and horizontally) The following code has no effect (still displays 14:00 instead of 2:00pm. (we have DAY and HOUR header))
4. We use the date (getVisibleStartDate) from the timeline for querying the events. The very first time (while the component is empty) we get the following exception trying to get the current date (and the same for the ancestor calendar):
5. Not sure why, but using DateChangedHandler which loads and puts the new set of events doesn't seem to work. All the code runs OK but we can not see the events. Using scheduleDeferred command for the refresh resolves the problem. Just wanted to let you know.
Sorry for the count of the points (this order is also our priority), but they needs to be resolved to have the best solution. Thank you!
We are working on a daily view with the timeline component, but we have some problems and need your help.
In our scenario we would like to show events for working hours for a given day only (we always get and put the events to the timeline control for that day only as it changes), and here are the points we need advice.
1. This code doesn't seem to work for timeline (it does work for calendar) We don't really need it, just having 1.a is a good solution for us.
Code:
timeline.setWorkdayStart("6:00am"); timeline.setWorkdayEnd("8:00pm"); timeline.setScrollToWorkday(true);
So either scrolling to the working hours (with or without highlighting) or moving prev/next with a day is OK.
2. We want to show only a day in the date label (with name of the day) (like we requested in http://forums.smartclient.com/showthread.php?t=26762 will check once it will be available later today)
Hope the same method is wrapped for range. Will update this thread if it is needed to be added too.
3. Is there any way to change the header format? We would like to show the same time formats for calendar and timeline view (vertically and horizontally) The following code has no effect (still displays 14:00 instead of 2:00pm. (we have DAY and HOUR header))
Code:
timeline.setTimeFormatter(TimeDisplayFormat.TOSHORTTIME);
Code:
(TypeError) @com.smartgwt.client.widgets.calendar.Calendar::getVisibleStartDate()([]): Unable to get property 'getField' of undefined or null reference ... at com.smartgwt.client.widgets.calendar.Calendar.getVisibleStartDate(Calendar.java)
Sorry for the count of the points (this order is also our priority), but they needs to be resolved to have the best solution. Thank you!
Comment