Notes 6 agents introduced the ability to run a client agent in a background thread. This is a very powerful feature, but you have to know how to properly use it. First off, you cannot perform any UI tasks. However, this is not a drawback. Print statements do work – the results go to the status bar just like any other agent running on the client. The MessageBox LotusScript statement also works. A message will be popped up for the user, and you can proceed in your agent based on the answer (your agent waits until the box is clicked).
Read more…
Viewed 7594 times by 2589 viewers
What causes this error and what do you do about it?
Well, if the error is in some LotusScript, then you should get a pop up of “Object Variable Not Set” or whatever the error happens to be. If the error is with a computed or computed for display field, that error should pop up also. If you are composing a document and the error is in a default field value for an editable computed or with a computed when composed field, that error also will pop up in front of you. So what does that leave?
Read more…
Viewed 7129 times by 1874 viewers
Has this ever happened to you: all of a sudden you see thousands of documents that were deleted months ago back in your application. Just about everyone I know who has created an application with local replicas has seen this happen. And everyone who has seen it wants to find out who did it so they can give them 20 lashes with a wet noodle. (Or at least a replication lesson).
Read more…
Viewed 11588 times by 2731 viewers
When creating a new application recently, I was given a logo image by the customer to be included in the upper left corner of the application (it was a Notes client application). The customer wanted also to have the application name appear on top of the image.
Read more…
Viewed 5199 times by 1445 viewers
The Notes Designer help on color fields is a little confusing. It’s talking about having your column formula go against a profile and all kinds of confusing items. That’s the way it was described because that’s the way the mail template uses color fields. But let’s say you have an application and you want different documents to show up with different foreground and background colors in the views, but you want these values to be controlled by an administrator. It’s an application used by many people, but the color control only comes from a few people. Do you have to do this the way the profile talks about?
Read more…
Viewed 6190 times by 1911 viewers
For a recent customer, we were using quite a few views on the web, and there was one view template for all the views. With a couple of the views there was a chance for the view to be empty, which leads to the standard No documents found Domino message. This customer wanted to customize this message. Luckily, the site was for an intranet and all their employees used IE, so the solution was quite a bit easier than what we’ve done in the past.
Read more…
Viewed 7037 times by 1841 viewers
We really like the @IsValid formula to check to see if a document is valid before performing another operation, but sometimes we’re not using formula language, so a script equivalent is needed.
When writing script and you want to find out if the current document has any validation errors, use this code:
Read more…
Viewed 5395 times by 1477 viewers
Recently a developer of ours had a need to swap two rich text fields on a form. The rich text fields were going to be text only (no attachments or images) but the customer wanted to be able to use things like bold and colors in the two fields that were to be swapped, so they had to be rich text. If the two fields were regular text fields, then swapping their values is pretty straightforward – you swap the two fields in the back end, perform a reload and a refresh in the front end, and you’re done.
Read more…
Viewed 7609 times by 2538 viewers
Recently, we were working on a project where one requirement was to have, according to the specifications, “one view per department showing…”. It turns out that the design of the views were going to be identical, they just wanted to see only one department at a time.
Read more…
Viewed 5762 times by 1557 viewers
Custom classes in LotusScript have been around as long as LotusScript (since version 4 of Notes), but with the introduction of Web Services in version 7, they are going to become more and more important. If you don’t already know, when creating a web service you have to code things in a custom class when the web service is coded in LotusScript. This quick article tells you how I work with custom classes in LotusScript, which might be of some help to you.
Read more…
Viewed 5421 times by 1418 viewers