<?xml version="1.0" encoding="ISO-8859-1"?>
<?xml-stylesheet type="text/xsl" href="http://ideajam.net/ideajam/p/ij.nsf/rsstransform.xslt"?>
<rss version="2.0">
<channel>
	<language>en-us</language>
	<lastBuildDate>Sat, 18 May 2013 12:42:26 +0000</lastBuildDate>
	<title>IdeaJam(tm) : RunWithDocumentContext not work when run from LotusScript</title>
	<description>An RSS feed generated by IdeaJam(tm) for RunWithDocumentContext not work when run from LotusScript</description>
	<link>http://ideajam.net/ideajam/p/ij.nsf</link>
	<image>
	    <title>IdeaJam(tm) : RunWithDocumentContext not work when run from LotusScript</title>
	    <url>http://ideajam.net/ideajam/p/ij.nsf</url>
	    <link>http://ideajam.net/ideajam/p/ij.nsf/LogoSquare.gif?OpenImageResource</link>
	</image>
	<item>
		<pubDate>Thu, 02 Sep 2010 11:14:31 +0000</pubDate>
		<title>Domino Designer / : RunWithDocumentContext not work when run from LotusScript</title>
		<description>&lt;b&gt;Author:&lt;/b&gt; Vlad Sh&lt;br&gt;&lt;b&gt;Tags:&lt;/b&gt;  &lt;a href="http://ideajam.net/IdeaJam/P/ij.nsf/ProductByCategory?openview&amp;restricttocategory=RunWithDocumentContext"&gt;RunWithDocumentContext&lt;/a&gt;  &lt;a href="http://ideajam.net/IdeaJam/P/ij.nsf/ProductByCategory?openview&amp;restricttocategory=agents"&gt;agents&lt;/a&gt;  &lt;a href="http://ideajam.net/IdeaJam/P/ij.nsf/ProductByCategory?openview&amp;restricttocategory=run"&gt;run&lt;/a&gt;  &lt;a href="http://ideajam.net/IdeaJam/P/ij.nsf/ProductByCategory?openview&amp;restricttocategory=lotusscript"&gt;lotusscript&lt;/a&gt;  &lt;a href="http://ideajam.net/IdeaJam/P/ij.nsf/ProductByCategory?openview&amp;restricttocategory=notes client"&gt;notes client&lt;/a&gt;  &lt;a href="http://ideajam.net/IdeaJam/P/ij.nsf/ProductByCategory?openview&amp;restricttocategory=domino server"&gt;domino server&lt;/a&gt; &lt;br&gt;&lt;b&gt;Idea:&lt;/b&gt; 
&lt;div&gt;It only works in conjunction SSJS-&amp;gt;LS-agent, and in the security tab is the option &amp;quot;&lt;em&gt;Run as Web user&lt;/em&gt;&amp;quot;.&lt;/div&gt;
&lt;div&gt;&lt;strong&gt;1. On Notes Client:&lt;/strong&gt;&lt;/div&gt;
&lt;div&gt;Button code:&lt;/div&gt;
&lt;div&gt;&lt;em&gt;Dim ns As New NotesSession&lt;/em&gt;&lt;/div&gt;
&lt;div&gt;&lt;em&gt;Dim ndb As NotesDatabase&lt;/em&gt;&lt;/div&gt;
&lt;div&gt;&lt;em&gt;Dim na As NotesAgent&lt;/em&gt;&lt;/div&gt;
&lt;div&gt;&lt;em&gt;Dim nd As NotesDocument&lt;/em&gt;&lt;/div&gt;
&lt;div&gt;&amp;nbsp;&lt;/div&gt;
&lt;div&gt;&lt;em&gt;Set ndb = ns.CurrentDatabase&lt;/em&gt;&lt;/div&gt;
&lt;div&gt;&lt;em&gt;Set na = ndb.GetAgent(&amp;quot;(test)&amp;quot;)&lt;/em&gt;&lt;/div&gt;
&lt;div&gt;&lt;em&gt;Set nd = ndb.CreateDocument&lt;/em&gt;&lt;/div&gt;
&lt;div&gt;&amp;nbsp;&lt;/div&gt;
&lt;div&gt;&lt;em&gt;Call na.RunWithDocumentContext(nd)&lt;/em&gt;&lt;/div&gt;
&lt;div&gt;&amp;nbsp;&lt;/div&gt;
&lt;div&gt;Code of agent &amp;quot;test&amp;quot;:&lt;/div&gt;
&lt;div&gt;&lt;em&gt;Dim nd As NotesDocument&lt;/em&gt;&lt;/div&gt;
&lt;div&gt;&lt;em&gt;Set nd = NotesSession.DocumentContext&lt;/em&gt;&lt;/div&gt;
&lt;div&gt;&lt;em&gt;Call nd.Replaceitemvalue(&amp;quot;test&amp;quot;, 1)&lt;/em&gt;&lt;/div&gt;
&lt;div&gt;&lt;em&gt;MessageBox nd.Getitemvalue(&amp;quot;test&amp;quot;)(0)        '&lt;/em&gt;Not displayed&lt;/div&gt;
&lt;div&gt;&lt;em&gt;Call nd.Save(True, True)        '&lt;/em&gt;Not saved    Does not work.&lt;/div&gt;
&lt;div&gt;&amp;nbsp;&lt;/div&gt;
&lt;div&gt;Errors compiling / execution is not.    I even tried to specifically generate an error and write it in log.nsf, but the error is not generated .. it seems that the agent does not start.&lt;/div&gt;
&lt;div&gt;&amp;nbsp;&lt;/div&gt;
&lt;div&gt;&lt;strong&gt;2. On Domino Server:&lt;/strong&gt;&lt;/div&gt;
&lt;div&gt;Install the Domino Server 8.5.2 and ODS raised to 51 - does not work :-(  If the button code to put in the agent who started using RunOnServer, and from it has already run the agent using RunWithDocumentContext, then when you call the new method is written to the console error &amp;quot;&lt;em&gt;Unable to pass doc context - Caller must run with user authority&lt;/em&gt;&amp;quot; (Err = 4795).  Naturally all the rights to run agents are, especially in the properties of agents set the maximum runtime security level, even with the option &amp;quot;&lt;em&gt;Run as Web user&lt;/em&gt;&amp;quot; for both agents...&lt;/div&gt;
&lt;div&gt;&amp;nbsp;&lt;/div&gt;
&lt;div&gt;Do please to RunWithDocumentContext worked when run from LotusScript on the Notes Client and the Domino Server.&lt;/div&gt;&lt;br&gt;</description>
		<link>http://ideajam.net/ideajam/p/ij.nsf/0/18924CF1C3C922A386257792003842CC?OpenDocument</link>
	</item>
	<item>
		<pubDate>Fri, 03 Sep 2010 04:53:41 +0000</pubDate>
		<title>re: RunWithDocumentContext not work when run from LotusScript</title>
		<description>&lt;b&gt;Author:&lt;/b&gt; David Hablewitz&lt;br /&gt;&lt;b&gt;Comment:&lt;/b&gt; Sounds like this is another bug you are reporting. I suggest you post on the discussion forums or report it to technical support. Posting it here will pad your score, but won't get you the response from IBM you want. When you report a bug to technical support, they give it a higher priority than enhancement requests. You just need to report it.&lt;br /&gt;</description>
		<link>http://ideajam.net/ideajam/p/ij.nsf/0/18924CF1C3C922A386257792003842CC?opendocument&amp;#commentsanc&amp;id=730914C20364C4C8862577930015653F</link>
	</item>
	<item>
		<pubDate>Fri, 03 Sep 2010 09:50:59 +0000</pubDate>
		<title>re: RunWithDocumentContext not work when run from LotusScript</title>
		<description>&lt;b&gt;Author:&lt;/b&gt; Vlad Sh&lt;br /&gt;&lt;b&gt;Comment:&lt;/b&gt; David &lt;br /&gt;A small clarification: I do not want an answer from IBM, I just report a bug. If IBM is not interested in correcting it, even if you put a message about it in twenty places, then nothing will change. If interested, you can find and take note of any open source, the more that the source about products of IBM, that is not even have to look for. &lt;br /&gt; I prefer to use open source in a convenient place to me because I do not need to be further somewhere else to register, and it sees and knows everything, and then let each of us draws his conclusions. Hence, my main idea - to fix bugs, and only then ideas. Or rather, what kind of realization of the ideas can be discussed if the product is full of bugs?..&lt;br /&gt;</description>
		<link>http://ideajam.net/ideajam/p/ij.nsf/0/18924CF1C3C922A386257792003842CC?opendocument&amp;#commentsanc&amp;id=C8391580D3FB979A8625779300309D03</link>
	</item>
	<item>
		<pubDate>Thu, 09 Sep 2010 19:27:27 +0000</pubDate>
		<title>re: RunWithDocumentContext not work when run from LotusScript</title>
		<description>&lt;b&gt;Author:&lt;/b&gt; Peter Presnell&lt;br /&gt;&lt;b&gt;Comment:&lt;/b&gt; I agree with David. Ideajam is not the correct forum to report bugs with Notes.&lt;br /&gt;</description>
		<link>http://ideajam.net/ideajam/p/ij.nsf/0/18924CF1C3C922A386257792003842CC?opendocument&amp;#commentsanc&amp;id=C34AB28362F87EC9862577990065642E</link>
	</item>
	<item>
		<pubDate>Wed, 11 Jul 2012 15:53:09 +0000</pubDate>
		<title>re: RunWithDocumentContext not work when run from LotusScript</title>
		<description>&lt;b&gt;Author:&lt;/b&gt; Vlad Sh&lt;br /&gt;&lt;b&gt;Comment:&lt;/b&gt; The latest version of the LND call Java-agents with document-parameter is working! Thanks!&lt;br /&gt;</description>
		<link>http://ideajam.net/ideajam/p/ij.nsf/0/18924CF1C3C922A386257792003842CC?opendocument&amp;#commentsanc&amp;id=471AFD1D011A478C86257A380051C551</link>
	</item>
	<item>
		<pubDate>Mon, 24 Sep 2012 20:30:49 +0000</pubDate>
		<title>re: RunWithDocumentContext not work when run from LotusScript</title>
		<description>&lt;b&gt;Author:&lt;/b&gt; Vlad Sh&lt;br /&gt;&lt;b&gt;Comment:&lt;/b&gt; Status changed to Withdrawn&lt;br /&gt;</description>
		<link>http://ideajam.net/ideajam/p/ij.nsf/0/18924CF1C3C922A386257792003842CC?opendocument&amp;#commentsanc&amp;id=0AC5C35B734F07C54A257A83006B3127</link>
	</item>
</channel></rss>
