Tuesday, 5 July 2011

An update on what I have been doing

I have finally left a company that I had the pleasure of work at for more than three years.  As a contractor, that is a long time.  It turned out to be 43 months in all, which I really enjoyed. 

I left at the end of May and moved straight into to a new contract for a large supermarket chain in England.   The work is not what I expected.  I am tasked with leading a small team to upgrade machines from Lotus Notes v7 to v8.5.1.  This was sold to me as a development team leader role, but is in fact a desktop migration project and not a coding project.

…. hence the lack of technical blog posts recently.

I am making the most of this opportunity to improve my Team Leading and PM skills,  I have even picked up my MS Access skills since being here.  I do not have access to the developer client for Lotus Notes (first time since 1998) and therefore I had to improvise.  The previous team leader had set up a large spreadsheet which was being maintained by many people and was struggling from size and usage, so I suggested we simply import this into a multi-user access database.

It is strange to lead a team and a project in an area where my skill set only touches part of the project.  I do not have in-depth details of how to install software on machines using SMS/SCCM and how firewalls setting must be configured, login scripts written in vb and many other intricate details… but I do know Notes and how it works and is configured. 

I can contribute to the technical discussions when discussing details around roaming and Single Sign-on, location documents and ID Vault.  Thankfully, I have a Technical Lead in the team and another guy that seems to have a wealth of knowledge of notes, machines, vb and a is a general all-rounder.  It is strange, but enjoyable, to be hands off and trust these guys to make the technical decisions, as I am the one that used to be in that position for development projects.

I have decided that I am liking the Team Leader / PM type of role and have committed myself to self-learning of Prince2.  I am planning to have passed my foundation by the end of this month and plan to take the Practioner (if I can) before my holiday in August.  More of that in a future post, I am sure.

Monday, 4 April 2011

Button to open db on a particular server

We have many servers in our environment and we try to make sure users use their local server for their applications.  Below is a simple button to force a user to open an application on a particular server, which will place this replica on top of their replica stack.

Saturday, 2 April 2011

Excel formula

I have a notes application as a replacement for MS Money 2008.  Every month I import all of my account transactions into a notes database, via CSV import and it checks previous entries to categorize each transaction.  This allows me to see where my wife spends all of my money each month!

Occasionally I get lazy and do not download the transactions within the statement period and so the only way to import the  transactions is to copy and paste the HTML table from the statement on the screen.  When I paste this into Excel, it thinks it is text.  The problems start when I try to convert the text into a number, so that it can be imported.  Everything I had tried failed, such as various paste special techniques, convert cell and copy paste from notepad etc...

Friday, 1 April 2011

XML - Part three - Import

This is the third XML article in this mini series.  Please take a look at Part One, which talks about the Script Library and Part Two, which talks about the export agent, if you have not already seen these.

The second agent I have written allows a user to import an XML file and replace all of the document fields with the values found in the XML document.

My code takes the first "Document" from the "Documents" tree and finds the <id> value, which is used as a key to find the document.  With the <id>, I can find the document and then run through all of the fields in the XML and replace the values within the document.  The field name is the same in the document as it is in the XML file, so no mapping is required in this example.

XML - Part Two - The Export

This is the second XML article in this mini series.  Once you have created the script library in your database (Part One), you can create the first of the two agents.

The agent below allows a user to export the selected documents as XML.  This creates an XML tree of "Documents", with each "Document" being a node.  This code fixes the file destination to "C:\Temp\Document.xml", so you will have to change this to fit your requirements.

I use a view to handle the field names to export, as I do not want to export every field.  My field configuration will be the subject of a further post.  For now, think of it as a list of field names where there is one document per field.

XML - Part One - The Script Library

I am going to write a three part post on how to handle the importing and exporting of XML files into Lotus Notes.

Recently, I had a requirement to export a number of documents to XML.  The file would then be read into a customers helpdesk, which was not Lotus Notes based.

I have exported to XML before and have kept a Script Library in my "black box" for this very purpose.  I did not write the script library, but I will share the code here.

Google stop me embarrassing myself

I was just sending an important email, with a very important attachment... When I pressed the Send button, it stopped me and warned me that I have written "I have attached", and it then realised that I had forgotten to attach my document.



Thank you Google for reminding me to attach my document.