Tommy, thanks for your post.
I looked at your suggestions but am not sure if they really address the problem. Maybe I am not understanding or explaining.
I am able to get a handle on the number of documents in the view. The crux of the issue is how to fire a partial refresh on the data panel at the top of the form after the view is recomputed. The events go like this:
The Xpage loads. The top 1/3 is a picture of the CEO and data.
The middle 1/3 is a search field.
The bottom third is a view.
The user types something into the search field, which fires a partial refresh on the view and the view is subsetted.
The user an at any time click on the data in column one (persons name) and that fires a partial refresh on the data panel, loading the person's picture and data.
If the user continues to type and gets down to one element in the view I want to grab that UNID of the document, which I can do, and then fire the partial update on the data panel.
But there are no events for a view? Can I add an event? There is a postopenView "event" in the data properties of the view. I got a long way coding that - got everything I need EXCEPT I can't fire a partial refresh because I am in SSJS.
I am somewhat new to Xpages so sorry if this is actually easy or I misunderstood you. Any suggestions would be much appreciated!!!
Bryan