Over the weekend, as part of the third XPages contest on OpenNTF and based upon the series on this blog, I contributed the Mobile Value Picker project to OpenNTF. Niklas Heidloff has written a great blog post about the project and also recorded a video demonstrating the control. The control allows you to use a Notes View, a Notes Document or a static list as the source of the list. I did some investigation into using a REST service, but that proved difficult. The reason takes a little understanding, but the REST service data is not generated server-side, ...
I started off this tutorial series on mobile value picker with a discussion about some key differences between desktop browser development and mobile browser development. One of the key differentiators I discussed was connectivity. That was why this series has so far focussed on an approach that predominantly used Client-Side JavaScript and avoided interaction with the server as much as possible. But when I first discussed the approach with David Leedy many weeks ago, his requirement was somewhat different. The users of his mobile application would always be connected; they would not be roaming; so connectivity was not an issue and ...
To support the tutorial on Mobile Controls and client-side value pickers I created a video, which David Leedy has kindly published on NotesIn9. If you would like to see the full video, follow the link above.
From some feedback to yesterday's post, that code works fine if all you want to do is create a new document. So, I've gone away and come up with some amendments and improvements. First of all, I've moved the New User button into the Page Heading control's action facet. Again I use the Move to Application Page simple action, setting targetPage to "user" and setting forceFullRefresh to "true". It's important to do this. Otherwise, the user will be editing the previous contact instead of creating a new one. The code for this button will look very familiar:
During February Bob Balfe has been blogging 28 days of Dojo. To tie in with that I've decided now is a good time to blog about a couple of charting enhancements I included in my Lotusphere session with Dave Leedy, XPages: Enter The Dojo. The first is new functionality available with Dojo 1.5.0 to add gradients to your charts. First of all, Dojo 1.5.0 is not installed by default with Domino 8.5.2, so it will require an install on the server and (if you're using your charts for XPages in Notes Client) also on the clients. The ...
It's been a while since I last wrote anything on dojox charting, but there is always more. Anyone who was at BLUG or has downloaded the sample database I created for that session will have seen that I extended dojox charting to allow the user to click on a pie chart and navigate through the database to specific documents. For me, this is the real power of XPages, using repeat controls to produce innovative and dynamic methods of navigation. Outlines or menus are okay, but we can do so much more. Dashboards look nice, but allow your users to ...
Dojox Charting Tutorial – Part Six: Appendices
As I said in Part One, this series came about through an awareness of dojox charting and a desire to investigate its suitability to replace our current third-party solution. At the time I was not aware of NotesReconn on OpenNTF, which recently won second place in the TeamStudio Spotlight awards, and that's definitely on my radar now as a product to investigate further. In this series I've references a number of useful references, but I've also come across more while writing up the series. So I wanted to put together a one-stop shop of useful resources on dojox charting. Obviously the first point ...
Dojox Charting Tutorial – Part Five: Line Chart HTML Markup
In the previous parts of this tutorial (accessible from the link on the left-hand side of this page) I have shown how to use the dojox charting code to create pie charts, bar charts, column charts, and a line chart via javascript. In this part, I will create a line chart similar to the one created in the previous part, but this time using an HTML table data store and markup HTML. This took a bit of trial and error because, although there are plenty of examples on the web of charts created with javascript, the examples of charts created using HTML ...
Dojox Charting Tutorial – Part Three: Column and Bar Charts
In Part One I have given some background and generic code quired on any page showing a dojo chart. In Part Two I added a series using javascript onto my XPage and generated a pie chart. In Part Three I will cover the other two chart types shown on my first demo page, column charts and bar charts. Adding the Series If you try to apply the series we generated for the pie chart to a column or bar chart, you will find you get no data plotted. This is because of a limitation on the ...
Dojox Charting Tutorial – Part Two: Creating Series and Generating the Pie Chart
In Part One I covered the generic code elements required on the XPage before we get as far as creating the data for the chart and the chart itself. Now we get into the interesting stuff. Creating a Series The first part of the chart is the series. What I'm looking to produce is an array of JSON objects as a variable, one per portion of the pie, holding the value along with all the other parameters I want to use for my pie. If you view the source of Chart 1, you will see the full variable. The ...
XPages: Validation for Radio Buttons, Check Boxes and List Boxes: Part One
I recently had the need to add validation to radio buttons, check boxes and list boxes for an XPages app. Sounds straightforward, surely it's just the same as for any other control. However, I was creating the Radio button group, Checkbox group and List Box controls for Domino documents in a repeat control. So for each document, the output might need to be a Radio button group, or a Checkbox group, or a List Box, or some other input control. And furthermore the control might be mandatory or not, and the validation message was also configurable. So within my repeat control ...






