XPages - Undocumented Feature that will help you build Plug-n-Play Custom Controls05/07/2009 07:06 AM1. Jens Polster05/07/2009 08:05:04 AM
Homepage: http://www.DomBlog.de
Thanks, this is excellent news. I have been using currentDocument but wasn't sure if it was safe.
Btw: Thanks for your many contributions in the XPages area. Really appreciated!
2. David Leedy05/07/2009 08:23:27 AM
Homepage: http://www.lotusnotebook.com
That's awesome! Great find! I'm glad it's going to be documented.
I second Jens's comment about really appreciating your contributions!
3. barry mcgovern05/08/2009 02:54:05 AM
Great find! I have been creating all sorts of work arounds for this.
I wonder how it will work if you have multiple document references on one page.
4. John Mackey05/08/2009 04:10:37 AM
Homepage: http://www.jmackey.net
@Barry, it seems to default to the main or first datasource on the page. I was thinking about the exact same thing and was hoping for an array when there are multiple datasources.
Place the following in a computed field on the form and you'll see the keys available in the requestScope: requestScope.keySet()
I'm still looking for a simple solution to that. If anyone has any ideas, please post your suggestions...
5. Nick Hopkins05/13/2009 01:19:49 AM
Hi John,
Having read your blog & examined your examples I launched my first xpage application this week.
Without your guidance I would have launched sometime around Christmas!
This is just an unrelated post to say thank you very much for all of your help
Rgds
Nick
6. cao shangping09/01/2009 01:39:33 AM
thank you
7. Barry10/23/2009 04:09:54 AM
Hi John,
Just wanted to document a problem here that I found with the currentDocument object in 851. It appears to have a bug when used inside a facet.
Here's the link to the entry I posted in the 8.5 forum.
{ Link }
I fell in love with this property and now I'm getting burned by it. Ugh - the dangers of using an undocumented feature.