I use the Domino Wiki template from OpenNTF for most of the projects that I work on. It has its quirks but it is none the less very useful.
We are launching a new XPages product and I wanted the relevant wiki to be a bit more engaging so I added a .swf ( Adobe Shock Wave ) feature that displays the video as an embedded object. I guess this doesn’t work for iPads ??
Anyhow, it is very simple to do and the end result is a form that looks like this
and a wiki page that looks like this (click here )
Step 1 : Add a new field to the underlying Notes form CONTENT NOTES
Step 2 : Add a computed field to the Custom Control prtContent
This field displays the html code for the video if the field above is populated.
The value of the field is calculated as shown below. The field is set to display as HTML ( see attached file also )
In Xpages resource files can be used to store settings. This is a great way of increasing the configurability of your application ( labels, keyword choices etc ) without having to carry the overhead of frequent look-ups to Notes configuration documents. This approach is a core part of the Steve Castledines OpenNTF Xpages Framework and has also been recommended by Matt White.
This article describes how to create a resource file via DXL using a stream so that an intermediate file on the hard drive is not needed. The code incorporates other code from Julian Robichaux for managing the Base64 encoding.
Entering the configuration
The application has a series of configuration documents. As each is saved in the UI it calls a back end LotusScript agent which creates a file resource. The Xpage application pulls the settings directly from this file resource rather than from the documents themselves. The system does not attempt to update the file resource but creates a new one from scratch by cycling though the view and adding information for each record.
The structure of the file resource
Retrieving the settings
The settings can be retrieved using the code below, note that you also need to include the file as a resource bundle
The code to create the resource file
The crux to creating the file resource is that it is in base64 so you will need to use some code originally developed by Julian Robichaux and published on OpenNTF I have attached the whole script library at the end of the article. The entry point called by the agent is Sub s_CreateFileResourceFromView_6_01
I have posted the code as an attachment. Apologies for not including a demo database but I would need to strip the functionality out of a commercial system. The attached code has plenty of commenting .
I’ve been working on a concept for new Notes application. I’ve used Balsamic a few times before but this was the first time I have tried to sit down and flush out a scheme in a day.
The results are below, its obviously still at concept stage but a day with the client and a day with Balsamic has left me with something that I can use for a reality check with the client and then put a fixed price against. I find that the process of working through the screens gives me the discipline to look through the users eyes and see both what they need to capture but also what they need to contend with in terms of its usability. The usability will be key in this case because the business process is quite demanding.
It has felt like quite hard going at times, I wish Balsamic had the equivalent of subforms for some of the elements so that if they were changed in one place they would change everywhere – e.g. the navigation bar. Each mesh diagram is essentially a totally separate image so when you add an extra tab into one you need to go back and add it to the others. Having said that it will still be a lot easier to change it as a Balsamic than it would be with Notes and probably even more so if your were using another development platform .