The first thing that we do is follow a set structure for all our LotusScript. If it’s a function or subroutine (in a script library, as part of an agent, as part of a form, etc), then here is the structure:
Read more…
Viewed 6310 times by 1698 viewers
After nearly punching a hole in my computer monitor recently, I learned something that I thought I’d share with all of my readers. (and it’s not “don’t punch a hole in your computer monitor”).
I was working on an application that has a lot of LotusScript code in forms, views, agents, script libraries, and everywhere else. I was trying to update a form but was getting the “error loading USE or USELSX” error. Notes couldn’t bring in one of the script libraries. OK. That’s fine. I’ve seen that before. I commented out the script library and the function calls in the script library so I was able to save my form. I went back in, removed the comments from everything, and got the same error.
Read more…
Viewed 7563 times by 2176 viewers
One of the drawbacks of computed text is that you can’t put a hotspot around it. But, if you’re using a form design element (either a regular form, or a $$Template), then there is a way to get the text of a hotspot to be dynamic.
What you want to do is create a computed for display text field. The value of the field is the same as what your computed text used to be. So now this field will display a text value, and it will be the same as your computed text.
You can now put a hotspot around a compute for display field. Viola! You have a hotspot where the “clickable” text is computed.
Read more…
Viewed 8474 times by 2286 viewers
For those of you that write Java in Notes, you have probably realized that it doesn’t matter what version of the Java Virtual Machine (JVM) you have installed on your system (workstation or server) because Notes uses a set JVM version. But which one? This little piece of Java code can tell you what JVM is being used.
Read more…
Viewed 8570 times by 2527 viewers
In a Notes mail message, you can set all kinds of delivery options. One of the options is “Return Receipt”. If this setting is enabled on a message you send, you will receive an email back when the recipient opens the message. The only way the recipient knows about the “return receipt” setting is after the fact when they see “return receipt submitted for delivery” in their status bar. With this tip, you can identify messages that have this setting enabled.
Read more…
Viewed 12437 times by 4228 viewers
If you have a need to read the windows clipboard (or write to it) while in LotusScript, this custom class makes it easy. Create a Script Library, and call it Windows Clipboard. Go into the (Declarations) area of the script library, and put in this class definition.
Read more…
Viewed 13087 times by 3421 viewers
Are you one of those people who haven’t gotten away from the workspace in Notes 5 or 6? If so, you’ve probably come to love the little icons on each of the databases. This tip shows you how to programmatically change the icon using LotusScript by creating a nightly agent, so each day your users will have a new icon to see. You could even set it up so the icon is changed every time you open the database. Think this is stupid? I can tell you from experience that implementing this makes users want to go into the database. They want to see what the “icon of the day” is, and then they end up reading information in the database.
Read more…
Viewed 8052 times by 2637 viewers
I’m sure you’ve developed applications where it was important to know how many documents meeting a certain criteria there were in the database. There are multiple ways of doing this, but here we’ll point out one you might not have thought of. It makes use of Notes built-in ability to handle view indexes with efficiency.
Read more…
Viewed 9825 times by 3126 viewers
Recently I was working with arrays in LotusScript. Each element of the list was a text string. I had a need to remove an element from the list. There are lots of different ways to do this, and here is one more.
Read more…
Viewed 10777 times by 3769 viewers
Recently we had a situation where people have author access to a database, but a certain document in the database needed to be opened up to everyone. Normally, Authors fields contain a list of the people who can edit the document, and those with Author access to the database not listed in the Authors field cannot edit the document. An Authors field can take */O=YourCompany as a value to open up the document to everyone with that final qualifier in their ID file, but how do you open up a document to everyone, regardless of their ID file?
Read more…
Viewed 9061 times by 2307 viewers