This is my first SnTT post for absolutely ages, but, hopefully I’ll be able to do quite a few more over the next few months as I am just starting a brand new XPages project for a customer that runs through until August.
One of the first things I have been bashing my head against the development wall over is how to get a view to act as a picklist in a dialog. In theory, it should be pretty easy, you just add the “dijit.Dialog” to your XPage resources like so:
Don’t forget to also enable the dojoParseOnLoad and dojoTheme properties at the same time.Then inside your XPage you’ll want to actually create the dialog HTML:
At this point I had assumed that I could just add my view control inside the div and Bob, as they say, would be my mother’s brother. But I hadn’t catered for Dojo taking control of the HTML in the XPage once it was rendered. Basically what happens is that after the page loads, Dojo moves the div I created out of the Domino generated form and makes it a child of the body element. This displays fine, until you try and navigate through the view using the pager control, which no longer works as the javascipt requires the HTML to beinside the Domino form. So as far I can tell you have a couple of options, either move the div back inside the form, but I’m assuming that Dojo moved it out for a reason so I wanted to avoid that.
I am glad you are starting an xPages project. I have been working on one for about 2 months now and have found the answers to most things I have needed. Sorry, I don’t have an answer to your issue. I did read something about dojo pulling it out of the form. I also read that IBM was working on getting this changed, but I am sure that will be down the road. If you have any other questions let me know and I will see what I can do to help you.