When i was doing my pet project. I had the need to have picklist functions , I knew that there was a great example from Mark T Hughes (OpenNTF ) . It was very easy to use and a great addon to Xpages usability. I highly recommend it. Here is a video of it on youtube.
But this solution only let you populate one field with many items or just one item. To populate many FIELDS you would need to use the SSJSFunction.
I will be blogging about that in next blog and give you an sample db how to pick from a VIEW and populate many FIELDS from one data source.