So i finally figured it out, by piecing many sources of code from around the internet.
Updated to say go get the custom control on Openntf.org!!!
It is much easier to use and set up. It is also reusable.
Step 1. create a custom control.
Create a custom control and put your view on it, and put a search bar and a select button above it like this, make the first column have a check box option
Configure this for searching…. click here if you do not know how to do this.
On the select button “on click” event put this code in, it gets the selected documents, then it gets a value from the document and then adds it to the field on my main form. I got this code form the developer wiki
This closes the dialog we will create in a moment. Save and close that custom control.
Next add this to the source of your page, notice the<> is the picklist custom control we just created
At the top of the XPage in source view, you need to add the onload function to call the function to create the dialog
Then you will have something that works like a picklist, once you do it once it gets much easier.
I was wondering because it would be nice to have a button to pop up a dialog with a view in it, have check boxes and be able to return values back to the underlying webpage when done.
I have created a dialog inside an iframe for a simple pop up form, so i am familiar with that step. I guess i could put an xpage view inside the dialog and then when the select button is pushed, transfer the values, but how would one get the values of the selected document?
Any help is appreciated, this seems to be the only big thing missing from xpages, and maybe they will add an @picklist function in the future