Password to access a view

I have a text hotspot link to a view that is displayed in a frameset and I want to modify the link so that the user is prompted for a simple password (can be static and stored in the code). If the password is correct it displays the view in its frameset but if it is wrong it does nothing.

Not even sure where to start with this as I am new to Notes Development. This is only the second very simple application I have worked on.

Any help appreciated

Subject: Password to access a view

You can set access control on any view, so that only people that are included can use it.

You should be aware that this is not security!!! Any user can create their own view and see all documents in the database (except documents that is protected with Readers fields). Users that are not allowed to store their views in the database will store them in their own workspace.

If you want real security, you should use readers fields and roles to protect the documents. The views should be accessible to anyone, unless you want to hide them from users that doesn’t need them.

/Peter

Subject: Password to access a view

As Peter said controlling access to a view is not the same thing as controlling access to the data in the documents.

You should control access to the view through the ACL – such as by assigning a role – and then hide the hotspot if !@IsMember( “[ThatRole]” ; @UserRoles ). No password needed.

Subject: Password to access a view

what is your current code in the hotspot link?

pwd := “let_me_in”;

ask := @Prompt([Password]; “Password required …”; “Enter the password to access this view”);

@If(pwd != ask; @Return(@Prompt([Ok]; “Access denied …”; “The password you entered is incorrect.”)); “”);

@PostedCommand([OpenFrameset]; “your frameset here>”)