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, it is only generated at run-time by the browser. That means the contents can’t be passed into a repeat control as a datasource: at the time the repeat is created, the data is null.