<?xml version="1.0" encoding="ISO-8859-1"?>
<?xml-stylesheet type="text/xsl" href="http://iqjam.net/iqjam/iqjam.nsf/rsstransform.xslt"?>
<rss version="2.0">
<channel>
	<language>en-us</language>
	<lastBuildDate>Mon, 06 Sep 2010 02:04:23 +0000</lastBuildDate>
	<title>IQJam by Elguji Software - In what context can I use currentDocument.getParentId() ?</title>
	<description>An RSS feed generated by IQJam by Elguji Software</description>
	<link>http://iqjam.net/iqjam/iqjam.nsf</link>
	<image>
	    <title>IQJam by Elguji Software - In what context can I use currentDocument.getParentId() ?</title>
	    <url>http://iqjam.net/iqjam/iqjam.nsf</url>
	    <link></link>
	</image>
	<item>
		<pubDate>Wed, 17 Feb 2010 08:43:01 +0000</pubDate>
		<title>re: In what context can I use currentDocument.getParentId() ?</title>
		<description>&lt;b&gt;Author:&lt;/b&gt; Matt White&lt;br /&gt;&lt;b&gt;Answer:&lt;/b&gt; &lt;div&gt;Hi Sean,&lt;/div&gt;&lt;div&gt; &lt;/div&gt;&lt;div&gt;A couple of questions. &lt;/div&gt;&lt;div&gt;&lt;ol&gt;&lt;li&gt;Is the document you're working with really a response document? (i.e. has it got the $Ref field)&lt;br /&gt;&lt;/li&gt;&lt;li&gt;If it has is the value correct?&lt;/li&gt;&lt;li&gt;If it isn't a response then that will be the reason it doesn't work. You may need to set the Form design to make sure that documents created using it are responses.&lt;/li&gt;&lt;/ol&gt;&lt;div&gt;As a general rule I am switching away from using response documents in XPages. The overhead of looking up values using views is low enough that I prefer the flexibility of having everything as a &amp;quot;normal&amp;quot; document that just has references stored on it by me if I want some pseudo relational behaviour in my XPages.&lt;/div&gt;&lt;div&gt; &lt;/div&gt;&lt;div&gt;Matt &lt;/div&gt;&lt;/div&gt;&lt;br /&gt;</description>
		<link>http://iqjam.net/iqjam/iqjam.nsf/questions/20100215_In_what_context_can_I_use_curr.htm?#3D34C8F8DE5205B6802576CD0050D7EB</link>
	</item>
	<item>
		<pubDate>Wed, 31 Mar 2010 22:44:39 +0000</pubDate>
		<title>re: In what context can I use currentDocument.getParentId() ?</title>
		<description>&lt;b&gt;Author:&lt;/b&gt; John Smart&lt;br /&gt;&lt;b&gt;Answer:&lt;/b&gt; &lt;div&gt;I use and like response documents because I like NotesDocument.getResponses() rather than rely on yet another view.&lt;/div&gt;&lt;div&gt; &lt;/div&gt;&lt;div&gt;To answer your need: I think you'll need to instead use currentDocument.getDocument().getParentDocumentUNID()&lt;/div&gt;&lt;div&gt; &lt;/div&gt;&lt;div&gt;currentDocument isn't a NotesDocument object, it's a NotesXspDocument object which is an xpages-specific wrapper around the NotesDocument.  I don't know what currentDocument.getParentId() returns but I expect it refers to either the collection of NotesXSPDocument objects used on the page or whatever is above it in the XPages object model.&lt;br /&gt;&lt;/div&gt;&lt;br /&gt;</description>
		<link>http://iqjam.net/iqjam/iqjam.nsf/questions/20100215_In_what_context_can_I_use_curr.htm?#F608EC3349EB5B7B802576F800149164</link>
	</item>
	<item>
		<pubDate>Mon, 15 Feb 2010 17:04:11 +0000</pubDate>
		<title>In what context can I use currentDocument.getParentId() ?</title>
		<description>&lt;b&gt;Author:&lt;/b&gt; Sean Cull&lt;br&gt;&lt;b&gt;Tags:&lt;/b&gt;  &lt;a href="http://iqjam.net/iqjam/iqjam.nsf/tags.xsp?tag=SSJS"&gt;SSJS&lt;/a&gt; &lt;br&gt;&lt;b&gt;Question:&lt;/b&gt; I want to show data from a parent document alongside the data on a response document. I am trying to use currentDocument.getParentId() as the hook back to the parent from the response. When I use currentDocument.getParentId() at the time of creating the response document it has a value but when I open the response document later it has no value. The document is definitely a response and I get the same behaiour in a copy of the "new discussion" template. IBM help 
http://publib.boulder.ibm.com/i...&lt;br&gt;</description>
		<link>http://iqjam.net/iqjam/iqjam.nsf/questions/20100215_In_what_context_can_I_use_curr.htm</link>
	</item>
</channel></rss>
