Saturday, August 25, 2012

Get all field values in a document

Sometimes for debugging I am required to check all the field values in a document. It can get tiresome (and boring). So for this purpose I had created a small formula code snippet that would loop through all the fields in a document, get its values and put it in an email to the current user. I simply put this in a toolbar button of my Notes client and its good to go. Here's the code:

Thursday, August 23, 2012

Reading Windows registry from Lotus Notes using formula

I can't remember what exactly I was searching for when I ran into this question on N/D 8.5 forum which introduced me to the function @RegQueryValue. Basically this function allows you to read the Windows registry.

So if you want to read CPU information on a particular machine then you would write code as:


Unfortunately I couldn't find any function to write registry value.