Hy,
I encounter a problem with a @Formula action.
When i try it on my computer it works fine and the appointment is created with the specified StartTime and EndTime.
When i try it on different computer, they all do same wrong thing and created the appointment with a StartTime that is right but bypass the EndTime to “09:00:00”.
Here is my script :
travdate:=DebutConge;
delta := @Integer(((FinConge - DebutConge)/86400)+1);
@If(EntierDemi = “1” ;
@For( n:=1 ; n<=delta; n:=n+1;
@Command([OpenCalendar];@UserName);
@Command([CalendarGoTo];travdate);
travdate:=@Adjust(travdate;0;0;1;0;0;0);
@Command([Compose];“Appointment”);
@UpdateFormulaContext;
FIELD Subject:=“Congé Journée”;
FIELD StartTime:=[08:00:00];
FIELD EndTime:=[18:00:00];
FIELD SaveOptions := 1;
@Command([FileCloseWindow]));
EntierDemi = “2” ;
@Do(@Command([OpenCalendar];@UserName);
@Command([CalendarGoTo];DebutConge);
@Command([Compose];“Appointment”);
@UpdateFormulaContext;
FIELD Subject:=“Congé Matin”;
FIELD StartTime:=[08:00:00];
FIELD EndTime:=[12:00:00];
FIELD SaveOptions := 1;
@Command([FileCloseWindow]));
@Do(@Command([OpenCalendar];@UserName);
@Command([CalendarGoTo];DebutConge);
@Command([Compose];“Appointment”);
@UpdateFormulaContext;
FIELD Subject:=“Congé Après Midi”;
FIELD StartTime:=[12:00:00];
FIELD EndTime:=[18:00:00];
FIELD SaveOptions := 1;
@Command([FileCloseWindow])));
@Command([FileCloseWindow])
Does anyone have a clue ?
Thanks in advance.
Steve