Function EN Version 4.50

@SetSchedListEntry

Database NotesAdmin

Syntax

@SetSchedListEntry(SCHEDLIST1;POSITION2;UID3;TDLRANGE4;FLAGS5)

Description

Sets the data for a specific entry FN POSITION2 of the SCHEDLIST SCHEDLIST1.

In UID UID3 receives the UID of the document to which this entry refers.

In TDLIST TDLRANGE4 specifies the time range of this entry.
   1st element: start time.
   2nd element: end time.

FN FLAGS5:
BIT   DEC   HEX   MEANING if set

01   000001   00001   If busy entry: free time / if free entry: this is a "pencil" entry
02   000002   00002   
03   000004   00004   
04   000008   00008   This is a busy entry
05   000016   00010   Used by gateways to return external UIDs
06   000032   00020   
07   000064   00040   
08   000128   00080   
09   000256   00100   
10   000512   00200   
11   001024   00400   
12   002048   00800   
13   004096   01000   
14   008192   02000   
15   016384   04000   
16   032768   08000   

Example: @SetSchedListEntry(SCHEDLIST1;POSITION2;UID3;TDLRANGE4;FLAGS5)

DBHANDLE1:=@OpenDB("BUSYTIME.NSF");

IDL:=@ScanDB(DBHANDLE1;"@All";@AnyAllDay;1;1);
n1:=1;
n1e:=@Elements(IDL);

WHILE(n1<=n1e)
{
   ID:=@GetListElement(IDL;n1);
   noteh1:=@OpenNoteByID(DBHANDLE1;ID;noteh1);
   @PrtVStack("noteh1";1;2048);
   n2e:=@Elements(EventList[noteh1]);
   @LogReport(n2e;3);
   n2:=1;
   WHILE(n2<=n2e)
   {
      Ret:=@GetSchedListEntry(EventList[noteh1];n2;UID;TDL;FLAGS);
      EventList[noteh1]:=@SetSchedListEntry(EventList[noteh1];n2;UID;TDL;8);
      @Increment(n2);
   }
   noteh1:=@CloseNote(noteh1;1);
   @Increment(n1);
}

DBHANDLE1:=@CloseDB(DBHANDLE1);

All documents are searched, and the flags (FN FLAGS) of each entry in the SCHEDLIST (EventList[noteh1]) of each document are set to busy.

Note : This text was machine-translated and may contain inaccuracies.