PC SOFT

FOROS PROFESIONALES
WINDEVWEBDEV y WINDEV Mobile

Inicio → WINDEV 2024 → [WD20] Scheduler/Organizer
[WD20] Scheduler/Organizer
Iniciado por guest, 04,sep. 2015 21:50 - 5 respuestas
Publicado el 04,septiembre 2015 - 21:50
Anyone have issues using 'RESULT False' in Scheduler and Organizer controls to stop default processes? Whenever the 'Moving an appointment' or 'Resizing an appointment' code hits I do some calculations to see if I want to allow the movement or resize. If I don't want to allow the movement or resize I use 'RESULT False' to stop it.

Unfortunately this isn't working on every process. It doesn't work on the moving process in the Scheduler and it doesn't work on the resizing process in the Organizer. I even commented everything out and just made 'RESULT False' the first line of code in each process.
Publicado el 05,septiembre 2015 - 19:20
Hi,

You can set in the control that you donnot allow movement and resize.


regards
Allard
Publicado el 08,septiembre 2015 - 15:57
I would like to allow the movement an resize. I wish it would just work as advertised.
Publicado el 09,septiembre 2015 - 02:54
If the Scheduler Control is displaying stored data then this makes it easier to prevent certain operations.
In my case I run code on the "Move" and "Resize" processes that first validates the operation. If it is OK I update the stored data.
Either way I redisplay the schedule and I get the desired result i.e. either is has succeeded or not as per my code check.
Publicado el 10,septiembre 2015 - 07:40
Hi,

What ditd you exactly do. Did you connect to a file or querie? what are the calculations about?
What do you want to achief when the organizer is complete?

I ask this questions since there afe lots of ways to work with the control. From just connecting to a file. This can be don by walking thruogh a wizzard. To completely programming the control.

Last year I had issues with the control in Webdev. And I can say in webdev it can be even more a challange since the control is more limited then the one in windev.

I ended up getting exactly what I want. But had to do quite a bit resurch on the functions.
So dep[ending on what you want to acheif there is a verry easy way and a quite complex way of doing things.

Please discribe, in detail, what you want to achief. I will then try to give you a detailed discription on how you can achief that.

Regards
Allard
Publicado el 10,septiembre 2015 - 18:30
I think I'll have to use Steve's method of redisplaying the schedule every time.

I have appointments that have an optional alert. If I move an appointment with an alert I check to see if the new date is before the alert date. If the alert date is after the new date then the user is prompted to modify the alert or cancel. I would like for cancel(Result=False) to stop the visual movement of the appointment, but it doesn't work for all processes.