Ask the Expert

Problems closing a page with a JavaScript function

I am presently working on a new Lotus Notes project using version 6.5. I'm using Web pages, not Lotus Notes client. I'm having difficulty closing a page with a JavaScript function and hiding some page elements depending access control of the logon user. Do you have any pointers?
Closing a Web page using JavaScript -- you could use window.close(0). When hiding elements on a Page (which is a design element in a Lotus Notes database), I would have a look at the property box. Say, if you want to hide some text, mark the text, open the property box (Edit-> Properties), then switch to tab number five, it will say "Hide paragraph from" at the top of this tab.

Click "Hide paragraph if formula is true." Then fill in a formula in the formula window at the bottom of the tab. Here is an example:

@IsNotMember("[Admin]"; 
@UserRoles)

This example will hide the text if the user does not have the [Admin] role in the ACL of the current database.

Do you have comments on this Ask the Expert question and response? Let us know.

This was first published in January 2005