I have to remind myself to use tools now and again. Frequently in Domino development, I will slog through and do things the way I know how to do them, whether or not it is the best or most efficient way, simply because it is the comfortable way.
That’s just plain dumb. I admit it.
I maintain an application, like many others it has documents and responses to those documents. Occasionally users need to “re-assign” the responses to a different parent document (and of course, it needs to be done ASAP!). Fine, there is a mechanism within the application to do so. However, life being the way it is, sometimes for reasons too lengthy and boring to get into in this post, the documents needing to be re-assigned don’t get re-assigned.
So, what to do? I could write some code that gets the UNID of the correct parent and replaces the value in the $REF field in the response documents, but I don’t want to do that. And better still, I don’t NEED to do that. There is a TOOL that already does that for me.
Enter Noteman. I received a copy of this to review sometime ago and honestly just didn’t get around to playing with it. The icon is a little Swiss Army Knife looking thing, and I think that is completely appropriate, as it is one of those tools that does a million things. I am lazy and never fully explore it, so am not even aware of all the possibilities. Heck I don’t even know what half of those things are for. BUT, if you take the time and figure out what is there, it can save you a ton of time. Just think how long it would take you to open a bottle of wine without a corkscrew…
Anyway, back to Noteman, which has an “Editor” tool. Right there in the Editor screen is the button “Make Response…”, which does EXACTLY what I needed the other day. I didn’t have to code anything, test it, fix it, re-test it and then update the documents. I opened the parent document in Noteman, SELECTED and COPIED the UNID (can you hear me weeping tears of joy?), then opened the response docs, hit “Make Response…”, put in the new UNID, saved and closed. There is a Multi-Editor tool as well for changing a bunch of docs at once.
It is a cliche, but don’t reinvent the wheel. Use the tools available to you. Save yourself the time and effort that could be spent writing better code!
