Thanks for that Niklas - MobileControlsLite is certainly a much better place to start.
I am having trouble with accessing data from another database. To keep it simple, I copied the 'All' view to the other db changed the selection criteria and made sure that the columns were populated with data.
Then in the ViewAndDocument Xpage I have edited the database name in the XML source for the xc:mView tag. The Xpage displays but all I get is the 'Loading...' message in the 'home mPage' when I preview the XPage in the browser.
So I have a problem getting data from the view and even if it did work, It's not clear to me yet how the Custom Control accesses the document content from the view, because somehow I have to define which field I want the control to bind to in the target document so that I get some content. The documents in my application don't have the same fields as your lipsum test data documents.
thx