Personalized Views with features

Hi!

 I'm trying to create personalized views with some features all inclusive!

Here is my requirement:

 Personalized views using @Username with the ability to COLLAPSE ALL and option Evaluate actions for every document change.

I already created embedded views in a form, but the collapse all won’t work. I also created new views every time a user access the database using CreateView method in LS, but I can’t enable the option “Evaluate actions…” and I need it 'cause I need to show view actions depending on which documento the user is positioned.

I’d like to have the options to do this, either somebody tells me

  1. How can I enable the “–” (Shift -) tool in the Notes toolbar using embedded views (I already tried the SendKeys library and it doesn’t work either… “Shift -” doesn’t work even manually or…

  2. How to enable the option to show view actions when a user is positioned in a specific document, it means how to enable via code the option “Evaluate actions…” or its workaround or…

  3. Another way to do this…remember: with collapse all and Evaluate actions…

I know it’s possible, the only thing I don’t know is how…

tnx so much for your precious time,

Rafay2k

Subject: Personalized Views with features

Notes 6 has the new @SetViewInfo function which can be used to force a normal view to act as a Single Category view.

See here for a prior post on this

Subject: RE: Personalized Views with features

um… pardon me for breaking in, but what should I do to force calendar view to act as a single category view?

Subject: RE: Personalized Views with features

Away…AWAY WITH YOU !!! Oh, alright :wink:

If I understand this function, you can have a column (not necessarily the first column) and use the @SetViewInfo condition to filter values on that column.

So you could add a (hidden) column at the end of the view with a person’s name, and then only show the user those rows that contain their name.

Note : This is NOT a security feature as it can be bypassed with a private view !

Update : Indeed, the help states …

In Calendar views, filters a view to display only document that contain a specified string in a specified column.

Subject: Personalized Views with features

Some remarks:

As far as I remember, reading posts in this forum, collapsing and expanding is not possible in embedded view.

Sendkeys does not work when directed to the Notes client itself, only towards other applications.

If you want your newly created view to have some preset properties, then make a kind of template-view with all beasic properties set as you like. Then you can use:
Set NewView = db.CreateView(“MyView”,SelectionFormula$,“TemplateView”)
After that, you can still add columns as you like

Suggestion:

It’s clear you bumped to the limitations of embedded view … :slight_smile:

Maybe this is an alternative for you : make ‘shared, private on first use’-views where you can make use of @username in the selection formula. In this way, each user will have it"s own private view, without having to recreate the view every time. Or make use of single category views, categorized on the usernames.

If the collapsing/expanding thing is really important: think about showing the view in a seperate frame. Also check out the ‘auto frame’ option for forms, wich can be very handy.

Subject: RE: Personalized Views with features

Hey! Thanks a lot for your time to respond to this question, I tried the @SetViewInfo function, it worked well but unfortunatelly I can’t collapse and yes, it’s important to my client.

I’ve used create view, I set the properties to my template view including “Evaluate Actions…” and the LS CreateView method creates the view WITHOUT this option enabled and yes, I also need this option enabled so I can show actions depending on what document the user is positioned.

I really apreciate your help and mostly the time you invested to post a response, so if you have any other idea to get this done…pls…

tnx!

Raf@y2k

Subject: RE: Personalized Views with features

hmm … that makes it more difficult …Another way to go could be to use the same view over and over again.

You could modify the view selection formula and the column properties in LotusScript.

AFAIK there’s no way to remove columns from a view, but you can hide them. So you could make a ‘base view’ with for example 20 columns. When you have all the personalization data, you could personolize the first x columns needed, and make the rest hidden.

Personaly I don’t like this way of working. It’s expensive in terms CPU-load, and I found view created in LS only to be 100% reliable when closing and reopening the database.

How far goes this ‘personalization’ ? If it is only the selection formula, then a better way to go would be to use a folder, to do a db.search with the ‘personalized’ selection formula and put the found documents in the folder.

If the number of possible columns is limited, then you can create all the columns and hide them when nescessary. The end user can easily drag the columns in a different order when needed.