Function EN Version 4.50

@GetSchedListEntry

Database NotesAdmin

Syntax

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

Description

Returns the data for a specific entry FN POSITION2 of the SCHEDLIST SCHEDLIST1 is returned.
In UID UID3 the UID of the document to which this entry refers is returned.
In TDLIST TDLRANGE4 the time span of this entry is returned.
   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: @GetSchedListEntry(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("Elements :"+@Text(n2e);3);
   n2:=1;
   WHILE(n2<=n2e)
   {
      Ret:=@GetSchedListEntry(EventList[noteh1];n2;UID;TDL;FLAGS);
      @LogReport(" Position :"+@Text(n2);3);
      @LogReport(" Return :"+@Text(Ret);3);
      @LogReport(" UID :"+@Text(UID);3);
      @LogReport(" TDRANGE :"+@Implode(@Text(TDL);"-");3);
      @LogReport(" FLAGS :"+@Text(FLAGS;"*");3);
      @Increment(n2);
   }
   noteh1:=@CloseNote(noteh1;0);
   @Increment(n1);
}

DBHANDLE1:=@CloseDB(DBHANDLE1);
All documents are searched and the details of each entry in the SCHEDLIST (EventList[noteh1]) of each document are output.

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