<?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>Fri, 10 Sep 2010 21:43:50 +0000</lastBuildDate>
	<title>IQJam by Elguji Software - WQO agents on xpages</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 - WQO agents on xpages</title>
	    <url>http://iqjam.net/iqjam/iqjam.nsf</url>
	    <link></link>
	</image>
	<item>
		<pubDate>Wed, 09 Dec 2009 04:01:30 +0000</pubDate>
		<title>re: WQO agents on xpages</title>
		<description>&lt;b&gt;Author:&lt;/b&gt; Matt White&lt;br /&gt;&lt;b&gt;Answer:&lt;/b&gt; &lt;div&gt;You have a couple of options here, depending on how complex your wqo agents are, and what they are trying to do.&lt;/div&gt;&lt;div&gt; &lt;/div&gt;&lt;div&gt;My general advice would be to port your LotusScript (I'm assuming it's LS) to be Server Side Javascript and call it in the beforePageLoad event of your Custom Control or XPage. It's unlikely that, if you're setting fields etc, that the code can be ported directly across, but the logic should still be sound. &lt;/div&gt;&lt;div&gt; &lt;/div&gt;&lt;div&gt;If you'd rather there are a couple of other things you could try: &lt;/div&gt;&lt;div&gt;&lt;ol&gt;&lt;li&gt;Convert your wqo agent to be AJAX enabled (using documentContext and the QUERY_STRING field) and call it in front end javascript using the dojo.xhrGet function. Again, with this you're going to need some extra logic to get a hold of the fields you want to set etc, but it's not difficult once you've understood the &amp;quot;#{id:myfield}&amp;quot; syntax (&lt;a href="http://mattwhite.me/blog/2008/10/9/tips-for-referencing-elements-in-xpages-javascript.html"&gt;more here&lt;/a&gt;).&lt;br /&gt;&lt;/li&gt;&lt;li&gt;You can manually run an existing agent using the syntax of:&lt;/li&gt;&lt;/ol&gt;&lt;/div&gt;&lt;blockquote class="webkit-indent-blockquote" style="margin: 0 0 0 40px; border: none; padding: 0px;"&gt;&lt;div&gt;var agent:NotesAgent = database.getAgent(&amp;quot;myagent&amp;quot;); &lt;/div&gt;&lt;div&gt;agent.runOnServer(optionalnoteid); &lt;/div&gt;&lt;/blockquote&gt;&lt;div&gt; &lt;/div&gt;&lt;div&gt;Hope these options help.&lt;/div&gt;&lt;div&gt; &lt;/div&gt;&lt;div&gt;Matt &lt;/div&gt;&lt;br /&gt;</description>
		<link>http://iqjam.net/iqjam/iqjam.nsf/questions/20091209_WQO_agents_on_xpages.htm?#9AF5D01A3CE0A7F080257687003711DE</link>
	</item>
	<item>
		<pubDate>Thu, 10 Dec 2009 02:03:45 +0000</pubDate>
		<title>re: WQO agents on xpages</title>
		<description>&lt;b&gt;Author:&lt;/b&gt; Rishi Sahi&lt;br /&gt;&lt;b&gt;Answer:&lt;/b&gt; &lt;div&gt;Thanks Matt, My agent builds a dashboard like &amp;quot;Statistics&amp;quot; feature of IdeaJam. When page loads there is a LS agent which runs using ajax ( dojo :xhr method ) and builds HTML contents along with flash parameters ( for flash charts ) and returning html is set to DIV. I want to know at what extent existing LS agents can be converted into server side JavaScript.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;/div&gt;&lt;br /&gt;</description>
		<link>http://iqjam.net/iqjam/iqjam.nsf/questions/20091209_WQO_agents_on_xpages.htm?#F10CF7574292E3C680257688002C4A34</link>
	</item>
	<item>
		<pubDate>Thu, 10 Dec 2009 02:38:40 +0000</pubDate>
		<title>re: WQO agents on xpages</title>
		<description>&lt;b&gt;Author:&lt;/b&gt; Rishi Sahi&lt;br /&gt;&lt;b&gt;Answer:&lt;/b&gt; &lt;div&gt;Hi Matt,&lt;/div&gt;&lt;div&gt; &lt;/div&gt;&lt;div&gt;Following code I've tried on beforePageLoad event of the xpage ,&lt;br /&gt;&lt;br /&gt;    var urlVal=&amp;quot;../runMe?OpenAgent&amp;quot;;&lt;br /&gt;&lt;br /&gt;    var td = dojo.xhrGet({&lt;br /&gt;        url: urlVal, &lt;br /&gt;        preventCache: true,&lt;br /&gt;        handleAs: &amp;quot;text&amp;quot;,&lt;br /&gt;        sync: true,&lt;br /&gt;        load: function(resp, ioArgs){&lt;br /&gt;            alert(resp)&lt;br /&gt;        }&lt;br /&gt;    });&lt;/div&gt;&lt;div&gt; &lt;/div&gt;&lt;div&gt;When I view xpage on the browser it says &amp;quot;Command not handled exception&amp;quot;. LS agent just returns user name .&lt;br /&gt;&lt;br /&gt;I don't find any description about this error in help file. I assume in 8.5 we don't need to include dojo.js ( and other dojo supported files )?&lt;br /&gt;&lt;br /&gt;Thanks,&lt;br /&gt;Rishi&lt;/div&gt;&lt;br /&gt;</description>
		<link>http://iqjam.net/iqjam/iqjam.nsf/questions/20091209_WQO_agents_on_xpages.htm?#FBF8BADEC771F06C80257688002F7C4D</link>
	</item>
	<item>
		<pubDate>Wed, 09 Dec 2009 00:31:46 +0000</pubDate>
		<title>WQO agents on xpages</title>
		<description>&lt;b&gt;Author:&lt;/b&gt; Rishi Sahi&lt;br&gt;&lt;b&gt;Tags:&lt;/b&gt;  &lt;a href="http://iqjam.net/iqjam/iqjam.nsf/tags.xsp?tag=xpages"&gt;xpages&lt;/a&gt; &lt;br&gt;&lt;b&gt;Question:&lt;/b&gt; How to run WQO ( or url ) agents on xpages ?...&lt;br&gt;</description>
		<link>http://iqjam.net/iqjam/iqjam.nsf/questions/20091209_WQO_agents_on_xpages.htm</link>
	</item>
</channel></rss>
