Archive

Archive for the ‘Lotus Notes Tutorial’ Category

Lotus Notes Refresh Parent document When Closing Child document

During development of a new application, we ran across a situation that I’m sure some of you have seen. We have a parent document and children documents. The children are only displayed in an embedded view in the parent document. So, when you open up the parent, you see an embedded view with “show single category” enabled that shows all the children of that parent. Those children don’t show up in any other view, so you must open up the parent to see them. There’s buttons in the parent to create a child, edit a child, delete a child, etc.
Read more…

Viewed 7536 times by 1858 viewers

Lotus Notes Formula Using @TextToTime In USA And Europe

Most of you know that in the United States dates are shown in MM/DD/YYYY format, where many parts outside the U.S. use DD/MM/YYYY format. (And us Americans are also clueless about the metric system that everyone else uses, but that’s another topic). Anyway, on to the tip. What if you have a text date in a certain format and need to convert it to a Notes date-time value?
Read more…

Viewed 7452 times by 2078 viewers

Prevent Validation Errors When F9 Is Pressed in Lotus Notes

There’s always the trouble with validation formulas executing when you don’t want them to execute. For example, if you have a radio button set to “Refresh Fields On Keyword Change”, then validation formulas will execute when the value changes and your users will get prompted with their errors. This would be a case where you don’t want the users to be prompted.
Read more…

Viewed 6621 times by 1792 viewers

Determine User Screen Resolution in Lotus Notes

If you would like to open a different navigator based on the user’s screen resolution, there is a pretty easy way to do it using the Windows API (assuming your clients are Windows clients).
Read more…

Viewed 4655 times by 1201 viewers

How to Check Is Valid Lotus Notes ID

This JavaScript regular expression will validate a Notes ID. To use the function, call “isValidNotesID” and pass in the Notes ID to be checked and an optional parameter of the number of slashes that should be in the ID. If the parameter is omitted, it defaults to 1 slash. For example, if the ID is supposed to be in the format of “John Doe/MyCompany”, then you can call isValidNotesID(myString). But if the format is supposed to be “John Doe/MyCity/MyCompany”, then you’ll need to call isValidNotesID(myString, 2).
Read more…

Viewed 7572 times by 2060 viewers

Lotus Notes Quick Formula Computation

Notes has provided access to the formula language in any text field. If you place a valid @-formula into a text field and press SHIFT+F9, the formula will be computed and the value for the text field replaced with the results of the formula.
Read more…

Viewed 7774 times by 2217 viewers

Lotus Notes Java Capturing Keystrokes

Why would you want to?

Well, there’s a few reasons we can think of. First, you may want to capture the ESC key and trigger a JavaScript history.back() function so the ESC key on the browser will mimic the ESC key in the Notes client.
Read more…

Viewed 5583 times by 1590 viewers

Lotus Notes Agents: Run As Web User vs. Signer

We were working on a web application recently. The application was to be used on the client’s server and had only one “foreground” agent (accessed through the ?OpenAgent URL). Since we wouldn’t have access to run agents on their server, the agent was set up to run as the current web user. The agent, when this setting is enabled, runs under the authority of the currently logged-on web user (or under “Anonymous” if the user hasn’t authenticated). Or so we thought…
Read more…

Viewed 6514 times by 1885 viewers

You Cannot Copy, Forward or Print a Form or Message in Lotus Notes

You Cannot Copy, Forward or Print a Form or Message in Lotus Notes  You Have Created Even Though You Did Not Choose To Prevent This.

There are occasions when you are unable to forward, print or copy a message or form despite the fact that you have not chosen this option. How does this occur, and what are all the ways of adding the $KeepPrivate field to a document in order to discourage copying, printing and forwarding?

Read more…

Viewed 9021 times by 2596 viewers

Lotus Notes Refresh Design In LotusScript

Starting with version 5.03 of the Notes API, the ability to refresh the design of a database through the API has been exposed. The API call, in its most basic form, is surprisingly easy to use in LotusScript. This tip shows you how to do it.
Read more…

Viewed 5665 times by 1549 viewers