Is there a way to get the current view entry? (inViewEdit event)

I have a view that categorizes documents using a multi-value field, which means the document appears mulitple times in the view under several categories. I am trying to use the inViewEdit event to process a document where the script needs to use the category that it appears in. Is there any way to get the current view entry, or, more importantly, the data of the current category(ies) in the view of the location where I click?

Unfortunately, NotesUIView does not appear to have a getCurrentEntry method nor do any other objects. I tried to use CaratCategory in the NotesUIView object, but it only returns the last categorized column value and there are multiple categories in the view that I need to get the value of.

Any guidance or ideas would be most appreciative.

Subject: Is there a way to get the current view entry? (inViewEdit event)

Just thinking out loud here, but could you use CaratNoteID to get a handle on the selected doc in the view and then use the ColumnValues property of the NotesDocument object to test for your category?

brandt

Subject: RE: Is there a way to get the current view entry? (inViewEdit event)

Thanks for the quick reply…

I am hoping to get that information while using the inViewEdit event. Unfortunately, while in the inViewEdit event, I do not know which category was selected.

Good thought, I will try to see if that approach gets me anywhere.

Subject: RE: Is there a way to get the current view entry? (inViewEdit event)

well, assuming your categories are a finite list from a keyword field, why not create an array that contains those values and checks them against the category you are looking for? the columnvalues property should allow you to pick your Categorized column and discover what the value is, which once you made a match could be placed in another variable for processing.

let us know how it works out.

brandt

Subject: RE: Is there a way to get the current view entry? (inViewEdit event)

I may not have properly explained the original problem…

I have a view:

Category 1

…>Subcategory 1

…Document 1

.

.

Category 5

…>Subcategory 1

…Document 1

.

.

. and potentially so on…

Please note: The same document appears mulitple times in the view in different categories.

In the inViewEdit event, I would like to get the Category 5 - Subcategory 1 values to process information in the document since that is where the user clicked in the view. If I could get the current view entry, theoretically, I would have the category information. Or is there is another way to get the category information in the line that the user selected?

Thanks for the ideas!

Stan

Subject: RE: Is there a way to get the current view entry? (inViewEdit event)

Stan,

How are your users making the choice? is it based on choosing the document from a view that lists all categories and sub-categories? I have an idea, but I want to know how your users are choosing the categories.

basically, answer this…do they know the category and subcategory before they try and access the document?

brandt

Subject: RE: Is there a way to get the current view entry? (inViewEdit event)

Yes. They see the document in the view under the category and click on the field within that category. I want to process the information based on the category where the user clicked.

Subject: RE: Is there a way to get the current view entry? (inViewEdit event)

I haven’t tested this but try to use the following on your single document

To get: Set notesDocumentCollection = notesDatabase.UnprocessedDocuments

Thanks.