SetViewInfo and CaretCategory

Hello everybody,

I made up an application using categorized views. Some of them are used with the @SetViewInfo function in order to display a single category.

Now I need to find the currently selected category of the view in LotusScript. Since @GetViewInfo has no LotusScript equivalent I decided to do this by using NotesUIView.CaretCategory.

When I run the view in test mode (and no @SetViewInfo has been applied to the view), I can find the category of the selected item. Nice ! It works just like the documentation tells us.

But after the @SetViewInfo has been applied to the view, NotesUIView.CaretCategory returns “Not implemented yet”.

Am I doing something wrong ? Are there other methods getting the currently selected category >>>IN LOTUSSCRIPT<<< ?

Thank you for your help !

With best regards

Bernhard Gueth

Subject: SetViewInfo and CaretCategory

As I understand it, CaretCategory only works because it can be computed against the UI view display, since there’s no guarantee of a unique value until the UI display has been assembled. When you use @SetViewInfo, you are essentially doing the same thing as using a single-category embedded view. Both of those options remove the first categorized column from the UI, which is probably why CaretCategory can no longer get a handle on the value. The answer in your case is probably to throw the @SetViewInfo value to the environment and get it from there.