Showing posts sorted by date for query Notes/FX. Sort by relevance Show all posts
Showing posts sorted by date for query Notes/FX. Sort by relevance Show all posts

Wednesday, June 30, 2010

How to get Notes/FX working in IBM Lotus Notes 8.x - UPDATED

Here’s an easy way to update your Windows registry so that Notes/FX (field exchange) will work under Lotus Notes 8.

I’ve written previously about how a client of mine who’s long-time user of Lotus Notes was held back from upgrading to Lotus Notes 8.5 (from 6.5) when he discovered that Notes/FX no longer worked. This meant that automatic generation of  Lotus WordPro documents,  used pervasively throughout his Notes apps, could no longer be generated from Notes data.

Refer to my older postings for background on this issue. IBM Support didn’t ever come up with a solution to this bug. Apparently no IBMer could be located who knows about Notes/FX, or was willing to admit it!

Luckily I eventually stumbled upon the solution back in February this year. What I didn’t do then was pass on to you a tip that enables you easily to roll out the fix to across all of your Lotus Notes desktops.

So here’s that simple fix, better late than never!

  • STEP 1 - Using a text editor such as Notepad, enter the following (without the green line numbers). Please note that line 2 was updated to remove the spurious string “_catch22” at the end, which I used during testing and forgot to delete in this example: 

    01 REGEDIT4

    02 [HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Notes.link\Shell\open\command]

    03 @="C:\\Lotus\\Notes\\notes.exe -defini %1"

  • STEP 2 – Save this text file with a name such as NotesLink_command_adjust.reg or NotesFX_fix.reg (the important part being the .reg file extension)

  • STEP 3 – Mail this tiny text file out as an attachment to all your Lotus Notes users, telling them to double-click on it and allow it to execute.

In my case, Notes 8.5.1 is installed on the G: drive in the Notes851 folder, so that line 2 becomes:

@="G:\\Notes851\\notes.exe -defini %1"

After this, Notes/FX should start working again under Notes 8, that’s all there is to it.

DISCLAIMER:
The above tip is provided on an “as is” basis. I don’t claim to know all that much about registry files. If you don’t either, it’s probably wise for you to take a look here or here or here or here (or elsewhere) to find out a bit more about using them and the implications of altering the Windows registry.

Thursday, February 18, 2010

[UPDATED] Lotus Notes/FX 8.5.1 to Lotus Word Pro field exchange failure -- solved!

Last year I asked for assistance from the Lotus Notes community, on behalf of a client, relating to Notes/FX failure to exchange field data with Lotus Word Pro documents, see: http://notestoneunturned.blogspot.com/2009/08/does-notesfx-work-properly-with-lotus.html

Notes/FX – where “FX” represents “Field Exchange” -- is not something that many Notes users know about. It’s a nifty implementation of Windows OLE and you can read about it by searching for “Notes/FX” in the Domino Designer help database.

My client had been using it since the mid-1990s to send Notes document field data to Lotus Word Pro template documents and then print them for mailing off to their customers.

Notes/FX to Word Pro field exchange worked efficiently and unobtrusively all these years, until the customer decided to upgrade from Notes/Domino 6.5 to the exciting 8.5.1 release. He found during testing that everything except the Notes/FX field exchange worked seamlessly.

The field exchange simply would not operate. The Word Pro templates opened with their “click here” fields blank, instead of receiving data passed via OLE from the corresponding fields in the parent Notes document.

I did fiddle around with Windows registry settings, as suggested by respondents to my blog post, but didn’t seem to get anywhere. In the meantime, I started investigating other possible Notes to word processing document data transfer solutions.

These included Notes to OpenOffice, and after that (once Notes 8.5.1 was officially released towards the end of 2009) Notes to Lotus Symphony via the new LotusScript API. In short, these were fine for field exchange in one or two cases, but required quite a few lines of LotusScript to emulate what notes/FX was doing.

Particularly burdensome and worrying was the need to do hard-coding of field names (lots and lots of them). Of course, hard-coding of field names is quite satisfactory in a simple demonstration application which typically has only five or ten example fields (customer name, address, phone number, etc). But it’s intolerable for a production database like my client’s, which uses more than twenty such document templates, with some of them having dozens of fields to be exchanged.

As I said, I had originally fiddled with Windows registry settings and gotten nowhere back then. But for some reason, this morning I decided to have another quick go at it before giving up entirely on Notes/FX and starting into a very long haul with LotusScript and the Lotus Symphony API.

So I fired up the Windows registry editor (regedit.exe) and made the following change to the hive key (as highlighted in green):

HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Notes.Link\Shell\Open\Command

TIP - a quick way to get to the Notes.Link section of the registry is to do a registry search on “Notes.Link” -- and you’ll need to hit F3 (Find Next) several times until you get there:image

And this is where you should finish up (click to view a larger image):

Lotus_NotesFX_word_pro_registry_fix_for_Notes_851

Highlighted in green is the hive key, and in pink is the command setting for Lotus Word Pro in Notes 8.5.1 (and for all I know this might apply right back to Notes 8.0), as highlighted in pink:

"C:\Notes851\notes.exe" -defini "%1"

The fix is very simple, in my case just the removal of all four double-quotes, finishing up (as highlighted in yellow) with:

C:\Notes851\notes.exe -defini %1

Once this simple Windows registry change was accomplished, the Notes/FX OLE data exchange from Notes fields to Word Pro fields worked properly again, what a relief!

HOWEVER… As is often the case, there’s a catch that makes this turn out not to be a universal solution. It will not succeed for most Notes 8 installations, which typically would be something like this:

"C:\Program Files\IBM\Lotus\Notes\notes.exe" -defini "%1"

And now you’re asking why this is so, aren’t you? Purely by empirical testing I discovered that you cannot have blanks in any of the folder names -- as between “Program” and “Files” (curse you again for this, Microsoft).

The presence of spaces is probably the reason for the double quotes being placed in the hive key for the Notes.Link registry entry, but apparently IBM has slipped up somehow in going from Notes 7 to Notes 8. It should be a very simple fix, and I hope they do it soon (Notes 8.5.2 would be nice).

In summary, if you’re one of the few Notes sites still using Notes/FX, you’ll need to install Notes 8 in a folder hierarchy that doesn’t contain any blanks, and also carry out the above simple registry change (which could be automated by scripting, I suppose).

Well, at long last I have a solution for my long-suffering client. Arrived at by chance or my twisted thinking and persistence perhaps, all the same I reckon that it’s a satisfactory workaround and some of you should be able to make use of it too.

Keep an eye on this post in case there are any corrections or updates after I liaise with IBM Support.

UPDATE #1 [19 February 2010]
Initial feedback from IBM Support was as follows:

Cause
----------------------------------------------------------------------
This parameter is used to prevent malicious URLs to launch Notes via  Windows registry by having an "=\\evilhost\notes.ini" on the command line.
----------------------------------------------------------------------
 
/defini %1 is used to provide an alternative Notes.ini file. If you replace this parameter you should not loose functionality.
 
"-defini %1" seems to be the best way to use this parameter. There has been issues using "/defini" as third party software like SmartSuite had troubles parsing this string.
----------------------------------------------------------------------

Aha, it’s the old “blame third party software” caper! Rather amusing, since in this case the third party is the same as the first party, so it’s the right hand smacking the left hand! Anyway, I’m not quite sure what will happen next. Will they (the Lotus SmartSuite team via IBM Support) get back to me with further advice as to what I should do for my client? Will they provide a fix so that this parameter parsing trouble gets resolved and Notes/FX works properly again for Lotus Word Pro? … Time will tell.

UPDATE #2 [22 February 2010]
My client has confirmed that the registry change works. He is able to use all his Notes/FX to Lotus Word Pro links, and is at last able to forge ahead with his delayed Notes Client 8.5.1 installation.

He decided to install Notes 8.5.1 in the C:\Lotus\Notes directory (remember, the golden rule is to avoid any spaces in the path string).

I provided him with a .reg file so that he doesn’t have to manually edit the Windows registry, the contents of which are as follows. In case of word wrap in this post, note that there are four lines, the second line being blank.

REGEDIT4

[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Notes.link\Shell\open\command]
@="C:\\Lotus\\Notes\\notes.exe -defini %1"

Save these lines with a file name such as NotesLink_command_adjust.reg and just double-click to apply the registry fix. Naturally, if you use some other folder than in this example, amend the fourth line being careful to use double backslashes for each single backslash in the path string. (Read more about such files at http://support.microsoft.com/kb/310516)

Tuesday, August 04, 2009

Does Notes/FX work properly with Lotus Notes 8.5? … Help badly needed.

A new client has asked me to help redesign and modernize their key revenue-generating Lotus Notes application. They want to add new function and utilize all the latest Notes/Domino 8.5 capabilities to implement up-to-date look and feel

Generating all sorts of official letters and forms is a crucial part of their operations. In the current application, Lotus Notes/FX is used to automate the transfer data fields between the Notes database and all sorts of Lotus WordPro documents. We’re aiming to replace WordPro with Lotus Symphony and use LotusScript (or whatever) to perform the field updates.

In one of their two offices, yesterday they upgraded Notes/Domino from Release 6.0 to Release 8.5 – and immediately ran into a problem. Notes/FX is not working properly in the Notes 8.5 Client, creating what appears to be a WordPro document with blank fields.

(However, when the WordPro docs are opened later they DO have the expected data in the various fields. It’s just that is is extremely off-putting, to say the least, for the fields not to be visible at the time of generation.)

Is this one of the known UI bugs under Notes 8.5, with Notes/FX and/or OLE and/or WordPro 9.8? I conducted a number of searches, but didn’t come up with any problem reports about it. (Indeed, there are surprisingly few mentions of Notes/FX in general.)

The redesign (to use Symphony, etc) is only in its formative stages, so we’re urgently looking for a fix or workaround that will enable the fields generated by Notes/FX to be visible [as they were under Notes 6.0, which fortunately is still installed in their other office].

Every day counts. Any rapid feedback/assistance from knowledgeable IBMers and the Notes community will be greatly appreciated.