Guide to IBM Notes and Domino 9.0 Development Certification

The development updates are out and it’s time after the summer to start thinging of dooing the update test. because everybody wants to be a Notes/Domino 9 certified developer right?

I have added resources as links to allmost all parts of the LOT-408 certification requirements list if you find more resources let me know and I will update/add more references to the list.

Let’s check what the requiements to do the test. (from the cert page)

What’s new in Notes Domino 9 resources (Entries above with no link can be found in the resources below)

Wiki Designer 9 News Video1 Video2 cheatsheet pdf from TLCC

Detecting runtime environment in HCL Notes applications

There are several ways to detects where a HCL Notes application is running depending what you want to detect.

@Platform – Detect the operating system where the application is running. post

@ClientType – Are you application running in the Notes Client or on the webb. @ClientType will return Notes or Webb as a textstring. hcl support post

@IsInCompositeApp – Running inside a composite application. returns True(1)/False(0)

@IsEmbeddedInsideWCT – Is the application running inside the Standard Notes Client it returns true or if it’s running inside the basic client then it returns False

@IsNotesBrowserPlugin – New in HCL Notes 9 to check if your application is running in the browser plugin. It returns True if it does and if not it returns False

@GetMachineInfo – This @Formula was created to handle explicit policy selections but it can be using is ordinary applications also. The great thing is that you can use this to detect if the machine is a Laptop, get the ip adress, mac adress, available memory and alot more. Check out this post

One thing to remember is that most of these functions is Notes client only.

Adding a second Component palette profile to Domino Designer

Designer has a customization option and that is component palette profiles. Right click on Other and click on Customize

Snap2

Click on New to create a new palette

Snap3

 

Give the palette a name och click on OK

Selects the components you want to have in this palette

Select Components

 

Select Active Component Palette

This makes it possible for you to create different palettes of components depending of what you are developing. One for Mobile apps one for ordinary apps. if you are using your own framework in some application and this framework has special components, your can create a special palette for that.

Customization, Customization we love that.

view.postscript the connection between backend and frontend JS

Have you ever needed to call a client script after you run some some serverside code.

The answer is view.postScript=”your client side function” this function is available from 8.5.3

The code in view.postScript will be sent back to the browser and executed like onComplete but you can control it from SSJS. Great news or what do you think?

What can I use this for you might ask .

1. Change UI design when the partial refresh has brought up new data

2. If you have a multi window solution use the script to update parent window or close the current

3. Depending of the result do a secondary partial refresh on a case selected panel

If you already used view.postscript, please write a comment about your use case. 

Hide the XPage name in the url, get better web urls.

There is a simple way of hiding the XPage name. Autolaunch an XPage using the database properties.

Notes Autolaunch Tab

But there is a catch, it will only work for the first XPage so if you navigate way to another xpage the magic is gone. there is also another catch the relative path is broken so you need to add a trailing slash. Prev post about that

But that isn’t a problem when you are using XPages so If you build your main XPage and open it using auto launch options, and load the different sub pages / custom controls using partial refresh and the rendered property, the switch control or another control that can load content using a partial refresh.

Also you need to add a trailing slah at the end of the url otherwise you will get problem with dead images and resources not loading.

Your page should work as expected anyway, enjoy.

Tuesday is a buzy day 4 webinars

In my original post I had two webinars listed but Howard and Niklas did comments that there is actually two more webinars at the same day.

TLCC Dojo Grids

And also

How to use the social business toolkit

So four webinars with great content on the same day, hopefully they will be available for later viewing.

Two webinars you don’t want to miss next week

On Tuesday there are two interesting webinars the first one is June Collaboration Talk, IBM Forms is the talk of the day and also a short Intro by me and what I do.

Signup for Collaboration Talk

The second Gamification with XPages presented by Chris Toohey
Gamification webinar sign up here

QuickTip: Get right path when autolaunching an XPage

If you are using relative urls to you resources you might have got the problem with dead images and resources that doesn’t load. The obvious choice is to add the full url to the images.

Snap181

The problem is often related to when you autolaunch an XPage on database open.

Notes Autolaunch Tab

But there is another way than adding the full url for the problem. You need to add a trailing slash to your path then everything will work as expected again. And using these few javascript lines added to your front page onload event or in a script on the page will fix the problem.

var h=window.location.href;
if(h.indexOf(".xsp")==-1){
if(h.substring(h.length,h.length−1)!="/"){
 window.location.href+="/"

}}

Can lifeblogging gadgets help solve crime

Both Google Glasses, Narratives (Memotos) that record and takes photos more or less without the surrounding knowing it does, it’s debated that these gadgets  is a intrusion of privacy. But what if the gadget recorded a violent crime and that could be solved because of the recording. Then I would expect that many of the people concerned about these new devices would think that the gadget was very good. So there is always a god and a bad side of things. I think that these kind of devices could help solving crimes when they get out into the public. I believe that people will be more willing to record ongoing crimes and send the movies to the police than ever before, because there is less chance that the criminals see that they are recorded.

And hopefully they will do more good than evil, only the future can tell.

Simple Social – It doesn’t have to be difficult

IBM is talking about social business, the press is talking about Social media. 

It all comes down to doing things together breaking down barriers and software like IBM Connections makes the gap between you and your customers/colleagues smaller. Your company can works as one because everybody knows what is happening and the interaction with your customers are faster.

If you have the possibility get together with your customers at their location and take a FIKA (Swedish for Coffee break) and listen to your customers that is how simple social can be.

Or if you can’t, do a Social Online Coffee break thru IBM Smartcloud meetings (Get a free trial) send a Cake to your customers in advance (Sweden: Skicka Tårta  US:Bake Me a Wish UK: thebrilliantbakers). Who doesn’t like Cake and a friendly talk.

Get together do Simple Social, it doesn’t have to be complicated.