358 Lotus blogs updated hourly. Who will post next? Home | Downloads | Events | Pods | Blogs | Search | myPL | About 
 
Latest 7 Posts
Win a Copy of Mastering XPages at MWLUG
Wed, Aug 20th 2014 99
Unique Case of @ThisValue
Thu, Aug 14th 2014 184
Two Quick Memories of Tim
Fri, May 16th 2014 117
Do You Want to Speak at MWLUG?
Mon, Apr 21st 2014 103
New Blog and Early 2014 Activity
Tue, Mar 4th 2014 101
Thanks Bruce!
Wed, Oct 2nd 2013 125
Social Business Application Development Workshop - Day 2
Thu, Sep 12th 2013 101
Top 10
Unique Case of @ThisValue
Thu, Aug 14th 2014 184
Reminder When Using Document IDs in URLs with XPage Applications
Wed, Dec 12th 2012 154
Thanks Bruce!
Wed, Oct 2nd 2013 125
Two Quick Memories of Tim
Fri, May 16th 2014 117
A Challenging Customer Experience with Lessons for All
Mon, May 13th 2013 110
Do You Want to Speak at MWLUG?
Mon, Apr 21st 2014 103
Social Business Application Development Workshop - Day 2
Thu, Sep 12th 2013 101
New Blog and Early 2014 Activity
Tue, Mar 4th 2014 101
Win a Copy of Mastering XPages at MWLUG
Wed, Aug 20th 2014 99
Social Business Application Development Workshop - Day 1
Tue, Sep 10th 2013 98


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
155 hits



Recent Blog Posts
99


Win a Copy of Mastering XPages at MWLUG
Wed, Aug 20th 2014 9:13a   Graham Acres
Not that you should need any more motivation to attend MWLUG, but if you are still on the fence I am happy to offer another small incentive. Brytek Systems will be giving away three copies of Mastering XPages 2nd Edition during the conference. I have this book in my personal library and can attest that it is a great reference.  Not only is it strong technically as you would expect, it offers some great nuggets too. The conference organizers have graciously allowed me to present two sessions th [read] Keywords: domino notes xpages development interface java mobile openntf twitter
184


Unique Case of @ThisValue
Thu, Aug 14th 2014 10:10a   Graham Acres
I came across this little bug yesterday that I want to share.  A client of mine has a traditional Notes application that has some fields populated from an Oracle database via Lotus Enterprise Integrator (LEI).  There is a Connection document in LEI that includes among the fields mapped to the Notes app, two computed fields that are not actually updated by any data from Oracle.  Those fields in Notes had a formula of ‘@ThisValue’. What we noticed was that these two fields, after be [read] Keywords: lei lotus notes application bug database enterprise oracle
117


Two Quick Memories of Tim
Fri, May 16th 2014 3:11p   Graham Acres
I’m afraid I can’t claim to call Tim my friend, but only because we ever met face to face a couple of times.  Like many people, I got to know Tim through what he shared with our community.  I read his blog, watched his videos, and occasionally interacted through Skype.  In fact, I watched the Java series he did for NotesIn9 only 2 weeks ago.  I think that’s why this has hit me harder than perhaps I would have thought.  I have his voice in my head.  I even had a quick chat [read] Keywords: domino lotusphere community java skype
103


Do You Want to Speak at MWLUG?
Mon, Apr 21st 2014 12:14p   Graham Acres
You may have noticed the announcement last week that the annual MWLUG user group meeting is accepting abstracts to speak this year.  The conference is slated for August 27-29 in Grand Rapids, MI.  After speaking two of the past three years, missing last year, I plan to be back this year and hope to have the opportunity to speak again.  It is always rewarding to share with this wonderful community. Which gets me to the point of this post.  I have also had the good fortune of being able to spe [read] Keywords: admin lotus lotusphere community development
101


New Blog and Early 2014 Activity
Tue, Mar 4th 2014 3:35p   Graham Acres
With the challenges over at GBS/BleedYellow I have decided to move my blog, and after considering a few options have decided to give WordPress a spin.  You can find my old blog posts here. I am happy to report that it looks like the issues BleedYellow was experiencing appear to be resolved, but I am going to take the opportunity to learn a bit about WordPress anyway. So off we go to 2014.  And yes, I know it’s March already.  We are 9 weeks in and I have been busy, busy, busy.  There a [read] Keywords: connections domino ibm lotus notes application applications bleedyellow bleedyellow.com blogging development mobile openntf
125


Thanks Bruce!
Wed, Oct 2nd 2013 10:11a   Graham Acres
Being in the same time zone as Bruce, and one of the last to see the sunrise today, many others have already offered the reasons why we are thanking Bruce for all he has done for our community, so I will simply say that I echo their thoughts, comments, and thanks enthusiastically. Bruce, we all very much appreciate everything you have done. I want to offer something else, on a much deeper level. I read today that Bruce has been chairman of OpenNTF since 2001. Many know he lost his daught [read] Keywords: ibm community openntf




101


Social Business Application Development Workshop - Day 2
Thu, Sep 12th 2013 8:11a   Graham Acres
Thoughts on Day 2 of the Social Business Application Development Workshop Wednesday my day started before the workshop began. I attended a webinar put on by the Social Business Toolkit team, presented by Ryan Baxter on adding Open Social Gadgets to Connections. It was a good presentation. The slides are available, and the video will be shortly. You can find out more here. It also helped to set the foundation for the workshop as we had the chance to work with both gadgets and iWidge [read] Keywords: admin connections ibm notes application applications development gadget integration interface java office widgets
98


Social Business Application Development Workshop - Day 1
Tue, Sep 10th 2013 8:11p   Graham Acres
I am in San Francisco for a two day workshop on Social Business Toolkit development. Day 1 is in the books, so I thought I'd write a quick summary of the day. I understand this is the third such workshop they've run, and the first two were well received. By the way, a new version of the SBT was released today. Understandably, the VMs we are running have the previous version, which was released in July. There was some good general information about the SBT to begin, which I think [read] Keywords: connections domino ibm lotusphere application community development eclipse java javascript profile server vm
88


Free Webinar on Mobilizing Notes Apps Tomorrow
Mon, Aug 26th 2013 12:12p   Graham Acres
The team from Wmode, formerly Kryos, are putting on a free webinar tomorrow to show how you can use their Velocity AppXtender tool to take traditional Notes applications and add mobile support. The webinar starts at 11:00am Eastern time. You can register here. Velocity AppXtender is a Lotus Notes application that you use to configure an interface to the Notes application that you would like to make available to mobile devices. There is little to no programming involved. No HTML, no Java or [read] Keywords: lotus lotusscript notes xpages application applications interface java mobile
110


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




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