@GetNoteIDsByPosition
Syntax
@GetNoteIDsByPosition(VIEWHANDLE1;VIEWPOSITION2);
Description
Gets in the view with the VIEWHANDLE VIEWHANDLE1 from the position VIEWPOSITION/VIEWPOS VIEWPOSITION2 the NoteIDs and returns them as IDLIST. In the position 10 of the VIEWPOSITION/VIEWPOS VIEWPOSITION2 is the number NoteIDs to be read are specified.
(Ist the position 10 of the VIEWPOSITION/VIEWPOS VIEWPOSITION2 equal to 0 (NULL) is up to next category or to end the view read.)
VIEWPOSITION2 is a FNLIST with 10 entries.
The 1st entry contains the number of categorized columns; the 10th entry contains the number of entries in the category.
In order to point to the first dosument in a not categorized view, VIEWPOSITION3 must have the following form: 0:1:0:0:0:0:0:0:0:0.
Example: @GetNoteIDsByPosition(VIEWHANDLE1;VIEWPOSITION2)
VIEWPOSITION2:=1:1:1:0:0:0:0:0:0:0;
DBHANDLE:=@OpenDB("TEST.NSF");
VIEWHANDLE1:=@OpenView(DBHANDLE;"TEST VIEW");
VIEWPOSITION2:=@FindCategoryByName(VIEWHANDLE1;"EINS";VIEWPOSITION2);
IDLIST:=@GetNoteIDsByPosition(VIEWHANDLE1;VIEWPOSITION2);
VIEWHANDLE1:=@CloseView(VIEWHANDLE1);
DBHANDLE:=@CloseDB(DBHANDLE);
This a database and a view opened.
The operation the category "EINS" searched for and then alle unter this category located documents IDLIST IDLIST assigned (@FindCategoryByname liefert automatisch im 10.ten element the returned VIEWPOSITION the number the unter this category located documents).
The database and the view are again closed.
Note : This text was machine-translated and may contain inaccuracies.
