First, I’ll address the accessibility side of the menu. To make the menu available to screen readers, the menu options are placed in standard HTML ordered and unordered lists. Each list element has clickable text that takes you to the appropriate location. I’ll omit the actual HREF values (you can view the source and see them for yourself), but here is the HTML used to generate the menu:
Read more…
Viewed 9246 times by 2429 viewers
In Lotus Notes Web, You’re probably familiar with the famous formula:
@ReplaceSubstring(@Subset(@DbName; -1); “\\” : ” “; “/” : “+”)
which will take the path to the current database and make it “browser-friendly”.
After getting sick of adding this to every single link and image tag that needed it, we decided there had to be a better way.
Read more…
Viewed 8031 times by 1947 viewers
Lotus Notes Web – This code was found on a Visual Basic web site and converted to LotusScript. It is a LotusScript class that allows you to convert a host name to its IP address. To use, create a new HostName object.
Then check the IPAddress property of the new object to get the IP address. The property is a string.
This code is best stored in a script library. Create a new script library, then go to the (Declarations) section. The first part of that section is some constants:
Read more…
Viewed 7771 times by 2226 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 7733 times by 1923 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 6420 times by 1797 viewers
The document I was updating was a profile document in the other database (not the one where the agent was running). One field on the profile is a path to the database – in the form of “http://server_host_name/” + @WebDbName. I couldn’t use a computed field with “compute with form” because the server host name couldn’t be looked up. In my script I would compute the host name (I had a hard-coded table of servers and hosts names) inside the script and then set the field value. How did I do the @WebDbName part since my agent was running in another database?
Read more…
Viewed 7143 times by 1863 viewers
When you use an LS2J agent to connect to an external database and retrieve large amounts of data, then create a new JavaObject for each row of data, the following error occurs:
“LS2J Error: Threw java.lang.StackOverflowError”
Read more…
Viewed 10433 times by 2403 viewers
If you are opening up a view in a browser, not using the Java applet (because the Java applet takes so much longer to open, especially over a phone line) and wish to have alternate row colors (yes, Rnext does this, but this is for those of you not on Rnext yet) then this is one way to do it. There are several ways to accomplish this, so this is by no means the only way.
Read more…
Viewed 8308 times by 2238 viewers