332 Lotus blogs updated hourly. Who will post next? Home | Downloads | Events | Jobs | Twitter | Bookmarks | Pods | Blogs | Search | myPL | About 
 
Latest 7 Posts
A Challenging Customer Experience with Lessons for All
Mon, May 13th 2013 169
Follow up to my Spark Ideas Talk on Why I Ride My Bike
Tue, Feb 19th 2013 122
A Happy Lotusphere Mistake
Thu, Jan 24th 2013 113
My session(s) at Connect 2013
Wed, Jan 16th 2013 125
Reminder When Using Document IDs in URLs with XPage Applications
Wed, Dec 12th 2012 165
Mobile Application Development Strategies - Taking Notes Podcast
Fri, Feb 24th 2012 106
My Lotusphere 2012 Experience
Mon, Jan 30th 2012 104
Top 10
A Challenging Customer Experience with Lessons for All
Mon, May 13th 2013 169
Reminder When Using Document IDs in URLs with XPage Applications
Wed, Dec 12th 2012 165
My session(s) at Connect 2013
Wed, Jan 16th 2013 125
Follow up to my Spark Ideas Talk on Why I Ride My Bike
Tue, Feb 19th 2013 122
A Happy Lotusphere Mistake
Thu, Jan 24th 2013 113
Mobile Application Development Strategies - Taking Notes Podcast
Fri, Feb 24th 2012 106
My Lotusphere 2012 Experience
Mon, Jan 30th 2012 104
Domino Designer Working Sets Standoff
Tue, Jan 24th 2012 101
Lotusphere 2012 - Going In
Sun, Jan 8th 2012 81


Reminder When Using Document IDs in URLs with XPage Applications
Graham Acres    

I bumped into this on one of my projects and wanted to put up a quick post as a reminder to anyone trying to do the same thing.

The project involves a traditional Notes application that is used to send a survey out to a large number of users.  There is a separate survey document in the database for each user.  I wrote an agent to create an e-mail to send to each user, and the agent constructs a unique URL that the user can use to open the survey.  The survey is presented through a browser using an XPage.  The URL looks something like this:

http://www.acme.com/survey.nsf/survey.xsp?documentId=96B67539B52DE8CB88257ACB00792DBC&action=editDocument

Now, this particular application isn't the first time I have used this approach.  With the previous application it worked just fine.  This time, I couldn't load any of the field values that I wanted to display through the XPage, and drove myself a bit nuts trying to figure it out.  Lots of Google searches later I was still trying to figure it out.

This wiki page helped, both for the original solution and the fix to my problem: http://xpageswiki.com/web/youatnotes/wiki-xpages.nsf/dx/Work_with_URLs

Mixed with some of my other XPages resources I finally discovered the solution.  I needed to tell the XPage what documentID to open, in the properties of the XPage.  There is a handy way to do it too, by pulling the documentID out of the URL:

context.getUrlParameter("documentID");

Be sure to make the document id property computed by clicking the blue diamond before putting in the formula.

Now, I found references to the original approach that I used without mention of the additional step I had to take, so I'm not sure if a newer version of Domino made the change necessary or not.  Either way, I am very happy to have found the solution.

image
image

 



---------------------
http://www.bleedyellow.com/blogs/brytekblog/entry/reminder_when_using_document_ids_in_urls_with_xpage_applications
Dec 12, 2012
166 hits



Recent Blog Posts
169


A Challenging Customer Experience with Lessons for All
Mon, May 13th 2013 12:12p   Graham Acres
I had what I would call a less than satisfying online customer experience over the weekend that has a good lesson that I'd like to share. The time has come for me to replace my laptop, and as much as I would love to move to Apple I was forced to put that move off until next time. So without naming the vendor, and it's someone we all know, I headed off to their web site to make my purchase. I had done some research prior to making the purchase decision, so all I had to do was log in a [read] Keywords: apple laptop password profile
122


Follow up to my Spark Ideas Talk on Why I Ride My Bike
Tue, Feb 19th 2013 8:09a   Graham Acres
This is a follow up to my talk at the Nerd Girls Spark Ideas session at IBM Connect 2013. Six minutes does not give one even enough time to begin to share some of this story, and a single blog post won't do it justice either, but I want to at least fill in some of the blanks and make more clear some of the thoughts I wanted to convey in my talk. Riding the bike in the Ride to Conquer Cancer became a way for me and my family to heal from the loss of our daughter, who is also a sister, [read] Keywords: ibm lotusphere community
113


A Happy Lotusphere Mistake
Thu, Jan 24th 2013 10:13a   Graham Acres
I had a happy mistake happen at Lotusphere last year that I hope to repeat at Connect this year. You may recall that just prior to Lotusphere 2012 there was a big announcement regarding the XPages Extension Library and the ability to use relational databases as back ends to XPages applications. Going into Lotusphere I had decided that I wanted to find out as much as I could about this to bring back to my clients. Anyone who is a veteran of Lotusphere knows the pile of paper that is includ [read] Keywords: collaboration lotusphere xpages application applications database development mobile
125


My session(s) at Connect 2013
Wed, Jan 16th 2013 2:12p   Graham Acres
This will be the second time I speak at the conference formerly known as Lotusphere. Of course, it was called Lotusphere last time. My session this year takes place on Tuesday at 4:15pm in the Dolphin, Nothern Hemisphere A-C. That's an awfully big room for a second time speaker to be up there by himself. Thanks to Susan and everyone else involved in the decision for having the confidence in me. My session title is "Using a Mobile Approach: Strategies for Mobilizing Your IBM Domino App [read] Keywords: admin domino ibm lotusphere notes notes client application applications interface mobile
166


Reminder When Using Document IDs in URLs with XPage Applications
Wed, Dec 12th 2012 10:08a   Graham Acres
I bumped into this on one of my projects and wanted to put up a quick post as a reminder to anyone trying to do the same thing. The project involves a traditional Notes application that is used to send a survey out to a large number of users. There is a separate survey document in the database for each user. I wrote an agent to create an e-mail to send to each user, and the agent constructs a unique URL that the user can use to open the survey. The survey is presented through a browser u [read] Keywords: agent domino notes xpages application applications bleedyellow bleedyellow.com database google properties wiki
106


Mobile Application Development Strategies - Taking Notes Podcast
Fri, Feb 24th 2012 9:05a   Graham Acres
This week I joined Bruce and Julian on their Taking Notes Podcast to talk about strategies for building mobile applications. http://www.takingnotespodcast.com/blogs/takingnotes.nsf/dx/TakingNotesEpisode152.htm The mobile space is moving so fast that organizations face difficult choices deciding how to build mobile applications. This is not expected to change. But that doesn't mean that you cannot start and it certainly doesn't mean that there will be a right time to wait until thin [read] Keywords: lotusphere notes notes client application applications development interface mobile podcast taking notes




104


My Lotusphere 2012 Experience
Mon, Jan 30th 2012 10:02a   Graham Acres
Lotusphere 2012 was very memorable for me for a number of reasons. First of all, I spoke in the Best Practices track. Secondly, it was by far the best networking experience of my career. I was also satisfied to see the investment in Notes and Domino continue, and am convinced that Connections is our future. Speaking at Lotusphere for the first time was a fantastic experience. I had perhaps one of the least inviting time spots of the conference however, Wednesday at 3:00pm. I recall fro [read] Keywords: collaboration connections domino ibm inotes lotus lotusphere notes notes client community networking social software websphere
101


Domino Designer Working Sets Standoff
Tue, Jan 24th 2012 8:59a   Graham Acres
I just tried to open my mail file in Domino Designer and received a prompt to add it to the current working set I was in. Before I had a chance to choose, I received the classic 'waiting for operation to finish' dialog. The problem is that the 'User Operation is Waiting' dialog has focus, which doesn't allow me to make the selection in the Domino Designer dialog. I am at a standoff that I suspect only a reboot will resolve. Anyone else run into this? [read] Keywords: domino ibm
81


Lotusphere 2012 - Going In
Sun, Jan 8th 2012 9:25p   Graham Acres
Some thoughts going into Lotusphere 2012. This will be my 6th Lotusphere. I have been to LS 1997, 1998, 2000, 2010 and 2011. The break between 2000 and 2010 was not necessarily my choice, and it was a fun experience to compare the things that were the same and the things that had changed over 10 years. First of all, in 2000 people had been predicting the demise of Lotus Notes, so when I hear it now I pay less attention than before. The signs point in that direction unfortunately, but for no [read] Keywords: domino ibm lotus lotusphere notes xpages community mobile networking




Created and Maintained by Yancy Lent - About - Blog Submission - Suggestions - Change Log - Blog Widget - Advertising - Mobile Edition