First document in category

Hi,

in a categorized view, the cursor is on a category, not on a document.

How can I find the first document after the category ?

This code doesn’t work:

sId = uiview.CaretNoteID

Set doc = db.GetDocumentByID(sId)

Set entry = view.GetEntryByKey(sId)

doc and entry are nothing

Example:

Cursor is on Cat 3, how can I find Doc 3.1 ?

Cat 1

__Cat 2

__Cok 2.1

__Cok 2.2

____Cat 3 (cursor is here)

____Doc 3.1

____Doc 3.2

Thanks and regards,

Appi

Subject: First document in category

You used to be able to get the information for the first document in a category through Formula. You could try:

cat = Evaluate(|CategoryField|)

set entry = view.GetEntryByKey(cat(0))