|
| [WD19] Scheduler start finish dates |
| Iniciado por guest, 31,ago. 2015 08:03 - 6 respuestas |
| |
| | | |
|
| |
| Publicado el 31,agosto 2015 - 08:03 |
Hello All
I am experimenting with the Scheduler example and I have a question about the dates and the fonts and colours
The tasks have a start and a finish date and in the display the graphic element starts the display on the start date cell but it finishes in the cell prior to the end date. So a task that start on the 4th and finishes on the 9th shows cells 4,5,6,7 and 8 coloured in but the cell for the 9th - the finishing date - is not coloured in. Why ? Does the scheduler control think that nothing happens on the actual last day of the task ?
The example shows the coloured rows with a header colour and the body is a lighter shade of that colour. I can't find a way to do that when I create a new schedule. In the example, the title is displayed on the coloured row but when I create a schedule, the title is blank and only displays when I click on it.
I will keep investigating the colour and title issues but the end date not displaying is the real concern because it appears that the schedule control thinks that tasks finish at midnight on the day preceeding the stated last day and not at the end of the actual last day.
Regards Al |
| |
| |
| | | |
|
| | |
| |
| Publicado el 31,agosto 2015 - 08:51 |
Hi Al,
the startdate and enddate of a scheduler control are in fact datetime items. So I suppose, the enddate in the example does not have any endtime set. In fact, endtime is than "00:00:00:000". So the appointment ends on the end of the prior date. |
| |
| |
| | | |
|
| | |
| |
| Publicado el 31,agosto 2015 - 11:03 |
Hello Stephan
Thanks for the info - you are correct. inserting a time fixed the problem
Your post started me thinking in the direction of the other options and interestingly, leaving the dates as is - without hours - but setting ..wholeday as true added the missing last day but removed the start day ?
Regards Al |
| |
| |
| | | |
|
| | |
| |
| Publicado el 31,agosto 2015 - 11:55 |
Hi Al,
sorry, I don't use the ..WholeDay property. I've not not the problem with lost startdates. In my scheduler controls I have set "Appointment-Granularity of an appointment" on 24 hours, duration is then automatically grayed.
See example: |
| |
| |
| | | |
|
| | |
| |
| Publicado el 31,agosto 2015 - 12:14 |
Hello Stefan
Thanks for the follow up. I will kepp experimenting with the times and ..whole day. My control is set the same as yours in terms of the 24 hours
How did you get the graduated colours ?. Mine just display as a solid block of colour ? I am sending a numeric value to ..brushcolor
Regards Al |
| |
| |
| | | |
|
| | |
| |
| Publicado el 31,agosto 2015 - 14:17 |
Hi Al,
I am not aware that I set or do anything to change the backgroundcolor to gradiënt. I use ..BrushColor to change the background color. For the title I use the following code. Depending of a number of items of the databasefile there will be added a coloured square and/or a coloured circle to indicate type of appointment and/or type of animal. And I use an appointment variable laSlachting to add an appointment. That's faster than changing the appointment properties via MyScheduler[xxx]..Property = yyy.
VariableReset(laSlachting) laSlachting.Resource = gasaResourcesPDate[COL_PL_DATEGWSTAFRELCD[[1 TO 8]]] IF gasaDiertypeKleur[COL_PL_DIERTYPEID] > 0 THEN IF COL_PL_GEWDEF THEN likleur = gasaDiertypeKleurDef[COL_PL_DIERTYPEID] ELSE likleur = gasaDiertypeKleur[COL_PL_DIERTYPEID] END IF COL_PL_STATUSCOLOR > 0 THEN laSlachting.Title = gRectangle(0, 1, 12, 12, COL_PL_STATUSCOLOR, Black) + ... gCircle(16, 1, 30, 14, liKleur, Black) + " " + gPen(Black) + lsTitle ELSE laSlachting.Title = gCircle(0, 1, 14, 14, liKleur, Black) + " " + gPen(Black) + lsTitle END ELSE IF COL_PL_STATUSCOLOR > 0 THEN laSlachting.Title = gRectangle(0, 1, 12, 12, COL_PL_STATUSCOLOR, Black) + " " + gPen(Black) + lsTitle ELSE laSlachting.Title = gPen(Black) + lsTitle END END |
| |
| |
| | | |
|
| | |
| |
| Publicado el 01,septiembre 2015 - 11:19 |
Hello Stefan
I tried everything in terms of the colour grdient and titel display etc and nothing worked but..
I deleted my scheduler control and copied in the one from the WD Example and everything worked perfectly. Must be some hidden secret sauce in that control.
Thanks again for your help.
Regards Al |
| |
| |
| | | |
|
| | | | |
| | |
|