Despite the small version number increment, there’s a heap of new stuff in Notes / Domino version 8.0.1 (made available this week). There’s some new compression technology which can see your mail box and other valuable Notes application shrink in size by around 35%. There’s some new stuff in the calendar form, like a dedicated place for conference call information rather than putting it in the subject field… get the picture? You know who you are. Sametime 8 is integrated throughout the client, the Symphony editors are mail-enabled, and there’s the Quickr side-shelf (once Quickr 8.1 is made available later this quarter). On the Domino server there’s free in-the-box mobile e-mail in the form of Traveler.

Notes WidgetsHowever, the big new feature is ‘My Widgets’ – but I should say “features” as My Widgets is a set of capabilities. Here’s what you can do:

  • Add a Notes view, web page, RSS feed or Google Gadget to the Notes sidebar – the cool thing about this is that the sidebar is no longer necessarily the domain of the developer, it’s in the hands of the end user.
  • See recognised ‘live text’ which has associated actions – and create your own recognisers to recognise items which are important to you. More on this later.
  • Associate your own actions with selected text – see below.

widgets2.gifMy frolleague and long-time Lotus stalwart Alan Lepofsky posted (internally to IBM) some examples of widgetising your Notes client, and I only had to look at one before getting the idea. The first thing I did was followed Alan’s example of performing a Wikipedia search on highlighted text from an e-mail. Easy. And following the same process I then created another action for finding a person in IBM’s corporate directory BluePages. And then a highlighted word in dictionary.com – this was all too easy. How about a bit more of a challenge?

So, wouldn’t it be cool if you saw a postcode in an e-mail or calendar appointment, and that postcode was ‘live’ so that clicking on it plotted the location on a Google map? Answer: yes.

Okay, the first thing Notes had to do was recognise the text. UK postcodes (usually) have a format like TW18 3AG. A bit of hunting in Dogear (part of Lotus Connections) produced some info on recogniser formats, and thus a UK postcode requires the following format:

[A-Z]{2}[0-9]{2}[ ]{1}[0-9]{1}[A-Z]{2}

Once this recogniser has been created, Notes will put a green dotted line (default option) under postcodes and any other text it recognises. But now you need an action to go with the recognised postcode. The key to doing this is to grab the format of the URL that Google Maps (UK) will use – so for Lotus Park in Staines it will be:

http://maps.google.co.uk/maps?f=q&hl=en&geocode=&q=TW18+3AG

widgets3.gifYou then create the widget via the ‘Getting started with widget’s toolbar button and select ‘Web Page’ from the list. Hit ‘Next’ and then select ‘Web page by URL’ and paste in that URL. Hit ‘Next’ again and then select ‘This Web Page’. Hit ‘Next’ again, the web page will display, but carry onto the next stage. Edit the component name, and then you see that one of the input field contains TW18 3AG. Turn on this field with the check box, but remove the postcode from the right-hand side to leave the field blank. At the bottom select ‘ Wire as an action’ and hit ‘Next’. In the next stage you utilise your recogniser by selecting ‘Recognised content’ and then ‘Postcode’ from the drop-down list (you can create a new recogniser at this point). Select where you want to see the results – sidebar panel, new window, floating window or new tab, that’s up to you. Hit ‘Next’ and you’re finished.

Now you can go find a postcode somewhere and try it out. The picture above shows a right-click, but you can set the action going with a single left-click.

Addendum: some UK postcodes have only digit in the first set (e.g. SE1 9PZ), so the recogniser expression needs an ‘or’ operator (|) followed by the other possible expression, as follows:

[A-Z]{2}[0-9]{2}[ ]{1}[0-9]{1}[A-Z]{2}|[A-Z]{2}[0-9]{1}[ ]{1}[0-9]{1}[A-Z]{2}

 

Note: I’m closing this post for comments as for some reason it’s attracting spammers’ comments (which are being blocked, but I have to clear them out). I’m guessing that after six years all of the legitimate comments have been made.

0