Basically, the code connects to the remote server and checks to see if the template log.ntf can be found and it has a valid replica ID. If the template can be found and has a valid replica ID, then the server is up. Otherwise, assume the server is down. Our testing of this function amounted to running it as a scheduled agent with the remote server up and after we shut the remote server down.
Read more…
Viewed 9977 times by 2907 viewers
Although we have heard of an @-function that will decode a URL, but it is undocumentend at this time. In the mean time, here is a generic LotusScript function that will decode any URL.
Update: We have been made aware that the older version of this function did not handle Unicode characters. They are encoded with a “%u” prefix and include 4 hex characters after the “%u”. The version below supports Unicode characters.
Read more…
Viewed 8713 times by 2149 viewers
When you do as much work with the Notes API as we do, you’ll end up running into errors at one point or another. When writing programs in C or C++, you can translate the error number to a string pretty easily. But we’re doing more and more with the API in LotusScriptand have many more examples). In this situation, we needed to be able to translate an error number into a text error message.
Read more…
Viewed 4884 times by 1258 viewers
we weren’t aware of the great new feature added to the @DbLookup function in Notes. The @DbLookup function now has an optional parameter at the end. This parameter takes one or more keywords in a list. I’ll describe these by showing an example.
Read more…
Viewed 7091 times by 1743 viewers
I know the title of this tip doesn’t mean much. But I couldn’t come up with a meaningful title in just a few words. So let me describe the situation. Let’s say you have a multi-value keyword fields that contains state names. And another multi-value keyword field that contains city names. The choices for the city names come from the selected state names. If you choose some cities, and then go back and remove a state, how do you eliminate those selected cities that are no longer choices?
Read more…
Viewed 7519 times by 2167 viewers
Every time we need one of the “HTML Escape Characters”, like the copyright character (©) or others, we have to go searching for it. We finally decided to put together a table of many of these escape characters. The table below has the HTML code, then a quick description of the html code (what the symbol should look like) then the character representation.
Read more…
Viewed 7376 times by 2036 viewers
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 8098 times by 2381 viewers
This interesting workaround comes It does cause a little bit of UI flicker, but works on the front-end and back-end:
Function IsRTFNull(rtfield As String) As Integer
‘This function tests a Rich Text field to see whether or not it is null. It returns TRUE if the field is null, and
‘returns FALSE if the field is not null. It works even if the rich text field contains a file attachment,
‘doclink, or OLE object but does not contain any text.
Read more…
Viewed 7375 times by 2225 viewers
Several threads cover the topic of preventing the attachment of overly large files to a Notes document, and one major hurdle seems to be how to do so without first saving the document, let alone without first attaching the file. Without covering all the reasons why this is a challenge, I thought it might be helpful for me to detail the solution that I came up with after reading several posts in this forum and piecing everything together.
Read more…
Viewed 8792 times by 2929 viewers
The outline Notes design element is pretty handy to build navigation for your Notes client, but we found one drawback. If you have collapsable entries, then you’re limited to the standard twisty images (the dark blue ones). This color may or may not go with your application’s color scheme.
Read more…
Viewed 6632 times by 2226 viewers