<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
		xmlns:xhtml="http://www.w3.org/1999/xhtml"
>

<channel>
	<title>無限なる開発ブログ &#187; Lotus Notes</title>
	<atom:link href="http://www.oto-kichi.com/category/lotus-notes/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.oto-kichi.com</link>
	<description>ロサンゼルス在住ITエンジニアの開発ブログ</description>
	<lastBuildDate>Thu, 29 Jul 2010 19:44:39 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.6</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<xhtml:link rel="alternate" media="handheld" type="text/html" href="http://www.oto-kichi.com/category/lotus-notes/feed/" />
		<item>
		<title>Notes Form内のComboboxでキーワード変更してもOnChangeイベントがトリガーされない</title>
		<link>http://www.oto-kichi.com/2010/07/29/notes-form%e5%86%85%e3%81%aecombobox%e3%81%a7%e3%82%ad%e3%83%bc%e3%83%af%e3%83%bc%e3%83%89%e5%a4%89%e6%9b%b4%e3%81%97%e3%81%a6%e3%82%82onchange%e3%82%a4%e3%83%99%e3%83%b3%e3%83%88%e3%81%8c%e3%83%88/</link>
		<comments>http://www.oto-kichi.com/2010/07/29/notes-form%e5%86%85%e3%81%aecombobox%e3%81%a7%e3%82%ad%e3%83%bc%e3%83%af%e3%83%bc%e3%83%89%e5%a4%89%e6%9b%b4%e3%81%97%e3%81%a6%e3%82%82onchange%e3%82%a4%e3%83%99%e3%83%b3%e3%83%88%e3%81%8c%e3%83%88/#comments</comments>
		<pubDate>Thu, 29 Jul 2010 19:42:35 +0000</pubDate>
		<dc:creator>Viruke</dc:creator>
				<category><![CDATA[Lotus Domino Designer]]></category>
		<category><![CDATA[Lotus Notes]]></category>

		<guid isPermaLink="false">http://www.oto-kichi.com/?p=168</guid>
		<description><![CDATA[
			
				
			
		
表題の通りなのですが、Domino DesignerでForm内にComboboxフィールドを作成時にキーワード変更してもOnChangeイベントが思い通りにトリガーされない時の対処方法 [...]]]></description>
			<content:encoded><![CDATA[<div class="tweetmeme_button" style="float: right; margin-left: 10px;">
			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fwww.oto-kichi.com%2F2010%2F07%2F29%2Fnotes-form%25e5%2586%2585%25e3%2581%25aecombobox%25e3%2581%25a7%25e3%2582%25ad%25e3%2583%25bc%25e3%2583%25af%25e3%2583%25bc%25e3%2583%2589%25e5%25a4%2589%25e6%259b%25b4%25e3%2581%2597%25e3%2581%25a6%25e3%2582%2582onchange%25e3%2582%25a4%25e3%2583%2599%25e3%2583%25b3%25e3%2583%2588%25e3%2581%258c%25e3%2583%2588%2F"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fwww.oto-kichi.com%2F2010%2F07%2F29%2Fnotes-form%25e5%2586%2585%25e3%2581%25aecombobox%25e3%2581%25a7%25e3%2582%25ad%25e3%2583%25bc%25e3%2583%25af%25e3%2583%25bc%25e3%2583%2589%25e5%25a4%2589%25e6%259b%25b4%25e3%2581%2597%25e3%2581%25a6%25e3%2582%2582onchange%25e3%2582%25a4%25e3%2583%2599%25e3%2583%25b3%25e3%2583%2588%25e3%2581%258c%25e3%2583%2588%2F&amp;source=Viruke&amp;style=normal" height="61" width="50" /><br />
			</a>
		</div>
<p>表題の通りなのですが、Domino DesignerでForm内にComboboxフィールドを作成時にキーワード変更してもOnChangeイベントが思い通りにトリガーされない時の対処方法です。</p>
<p>厳密には、キーワード変更後、マウスが別の場所にフォーカスしてから、OnChange（）やExiting() イベントが呼ばれるためイベント呼ばれるのが遅いと感じてしまいます。</p>
<p>これに対応するには、フィールドプロパティのアドバンスド オプションタブの一番下、「Run Exiting/OnChange events after value change」というのを選択したらOK。</p>
<div id="attachment_170" class="wp-caption alignnone" style="width: 310px"><img src="http://www.oto-kichi.com/wp-content/uploads/2010/07/onchange-300x270.jpg" alt="onchangeイベントのトリガー変更" title="onchangeイベントのトリガー変更" width="300" height="270" class="size-medium wp-image-170" /><p class="wp-caption-text">onchangeイベントのトリガー変更</p></div>
<p>Comboboxのキーワードを変更した直後に呼ばれるようになります。</p>
<p>これだけ。</p>
<p>「てか、この設定いるの？」と疑問（笑） OnChangeイベントが直後に呼ばれたら困る状況ってあるのかな？ 一応Domino 8.5までのAdvanced Application Developerだけど、こんな設定気づきもしなかったです(&gt;&lt;)</p>
<p>以下は、IBMのTechnote（英語）から</p>
<blockquote><p>WorkaroundTo configure the OnChange event to trigger when a new keyword is selected, you can select the option &#8220;Run Exiting/OnChange events after value change&#8221;. This option is located on the Advanced Options tab Beanie tab of the field properties dialog box.</p>
<p>引用元: <a href="http://www-01.ibm.com/support/docview.wss?rs=899&amp;uid=swg21140081">IBM &#8211; OnChange event does not trigger on keyword change in combobox field</a>.</p></blockquote>
<p>しかし、今回もネタが小さいｗ もっとトレンドのある記事が書けるように頑張ります。 xPagesか・・・</p>
]]></content:encoded>
			<wfw:commentRss>http://www.oto-kichi.com/2010/07/29/notes-form%e5%86%85%e3%81%aecombobox%e3%81%a7%e3%82%ad%e3%83%bc%e3%83%af%e3%83%bc%e3%83%89%e5%a4%89%e6%9b%b4%e3%81%97%e3%81%a6%e3%82%82onchange%e3%82%a4%e3%83%99%e3%83%b3%e3%83%88%e3%81%8c%e3%83%88/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	<xhtml:link rel="alternate" media="handheld" type="text/html" href="http://www.oto-kichi.com/2010/07/29/notes-form%e5%86%85%e3%81%aecombobox%e3%81%a7%e3%82%ad%e3%83%bc%e3%83%af%e3%83%bc%e3%83%89%e5%a4%89%e6%9b%b4%e3%81%97%e3%81%a6%e3%82%82onchange%e3%82%a4%e3%83%99%e3%83%b3%e3%83%88%e3%81%8c%e3%83%88/" />
	</item>
		<item>
		<title>GETメソッドのパラメータからxPageの挙動をコントロールする方法</title>
		<link>http://www.oto-kichi.com/2009/12/29/get%e3%83%a1%e3%82%bd%e3%83%83%e3%83%89%e3%81%ae%e3%83%91%e3%83%a9%e3%83%a1%e3%83%bc%e3%82%bf%e3%81%8b%e3%82%89xpage%e3%81%ae%e6%8c%99%e5%8b%95%e3%82%92%e3%82%b3%e3%83%b3%e3%83%88%e3%83%ad%e3%83%bc/</link>
		<comments>http://www.oto-kichi.com/2009/12/29/get%e3%83%a1%e3%82%bd%e3%83%83%e3%83%89%e3%81%ae%e3%83%91%e3%83%a9%e3%83%a1%e3%83%bc%e3%82%bf%e3%81%8b%e3%82%89xpage%e3%81%ae%e6%8c%99%e5%8b%95%e3%82%92%e3%82%b3%e3%83%b3%e3%83%88%e3%83%ad%e3%83%bc/#comments</comments>
		<pubDate>Tue, 29 Dec 2009 21:24:57 +0000</pubDate>
		<dc:creator>Viruke</dc:creator>
				<category><![CDATA[Lotus Domino Designer]]></category>
		<category><![CDATA[Lotus Notes]]></category>
		<category><![CDATA[xPages]]></category>

		<guid isPermaLink="false">http://www.oto-kichi.com/?p=137</guid>
		<description><![CDATA[
			
				
			
		
他のページからジャンプしてきた時に、xPageの表示内容を変更したい時などに役立つ知識だと思います。
引用元のブログではGETメソッドのパラメータを使って表示するカテゴリのフィルタリング [...]]]></description>
			<content:encoded><![CDATA[<div class="tweetmeme_button" style="float: right; margin-left: 10px;">
			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fwww.oto-kichi.com%2F2009%2F12%2F29%2Fget%25e3%2583%25a1%25e3%2582%25bd%25e3%2583%2583%25e3%2583%2589%25e3%2581%25ae%25e3%2583%2591%25e3%2583%25a9%25e3%2583%25a1%25e3%2583%25bc%25e3%2582%25bf%25e3%2581%258b%25e3%2582%2589xpage%25e3%2581%25ae%25e6%258c%2599%25e5%258b%2595%25e3%2582%2592%25e3%2582%25b3%25e3%2583%25b3%25e3%2583%2588%25e3%2583%25ad%25e3%2583%25bc%2F"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fwww.oto-kichi.com%2F2009%2F12%2F29%2Fget%25e3%2583%25a1%25e3%2582%25bd%25e3%2583%2583%25e3%2583%2589%25e3%2581%25ae%25e3%2583%2591%25e3%2583%25a9%25e3%2583%25a1%25e3%2583%25bc%25e3%2582%25bf%25e3%2581%258b%25e3%2582%2589xpage%25e3%2581%25ae%25e6%258c%2599%25e5%258b%2595%25e3%2582%2592%25e3%2582%25b3%25e3%2583%25b3%25e3%2583%2588%25e3%2583%25ad%25e3%2583%25bc%2F&amp;source=Viruke&amp;style=normal" height="61" width="50" /><br />
			</a>
		</div>
<p>他のページからジャンプしてきた時に、xPageの表示内容を変更したい時などに役立つ知識だと思います。</p>
<p>引用元のブログではGETメソッドのパラメータを使って表示するカテゴリのフィルタリングを行っています。</p>
<blockquote><p>What this code does is before the page has loaded it looks at the URL and finds the location= part and if it exists it puts whatever the value is into a sessionscope variable called &amp;apos;locationfilter&amp;apos;. Session Scope is a special scope where you can add variables that only last for the duration of the users session. As soon as they close their web browser the session scope variables are lost. There is also an Application Scope and a Page Scope that you can use to store these values. Heres how the code will look in the source view of your xpage, you can see the resource for the server side script library and the beforePageLoad script. As you get more advanced in XPages you may find yourself writing code directly in the source view.</p>
<p>引用元: <a href="http://www.qtzar.com/blogs/qtzar.nsf/d6plinks/DSLH-7PNPAZ">Dec&#8217;s Dom Blog :: Learning XPages Part 20 : Restricting The Repeat To A Single Category</a>.</p></blockquote>
<p>実際、GETメソッドのパラメータをbeforePageLoadイベントでチェックするのに</p>
<blockquote><p><span style="font-family: sans-serif; font-size: x-small;">var cgi = new CGIVariables();<br />
var param = cgi.getURLParam(&#8221;Location&#8221;);<br />
if (param) {<br />
if (param != &#8220;&#8221; )<br />
sessionScope.locationfilter = param;<br />
}</span></p>
<p>引用元: <a href="http://www.qtzar.com/blogs/qtzar.nsf/d6plinks/DSLH-7PNPAZ">Dec&#8217;s Dom Blog :: Learning XPages Part 20 : Restricting The Repeat To A Single Category</a>.</p></blockquote>
<p>というサンプルコードがあるのですが、Louts Notes/Domino 8.5に付属してくるディスカッションテンプレートにある<strong>xpCGIVariables </strong>Script Libraryでは<strong><span style="font-family: sans-serif; font-size: x-small;">cgi.getURLParam()</span></strong><span style="font-family: sans-serif; font-size: x-small;">というファンクションがないため上手く動きません。</span></p>
<p><span style="font-family: sans-serif; font-size: x-small;">そこで、</span><a href="http://elguji.com/ideajam/elguji/taskjam.nsf/Start?ReadForm"><span style="font-family: sans-serif; font-size: x-small;">taskjam.net</span></a><span style="font-size: x-small;"><span style="font-family: sans-serif;">からTaskJam V1.0とうテンプレートをダウンロードしてもってきます。</span></span></p>
<p><span style="font-size: x-small;"><span style="font-family: sans-serif;">ここで、とても興味深かったのが、ブログで寄せられているコメントなんですが、</span></span></p>
<blockquote><p>There is also a MUCH easier way to get the parameter instead of including the script library (although it&#8217;s probably good that you showed that).</p>
<p>Use the global &#8220;context&#8221; JavaScript object:<br />
context.getUrlParameter(&#8221;Location&#8221;)</p></blockquote>
<p>という書き込みがあり、「<strong>context.getUrlParameter(&#8221;Location&#8221;)</strong>を使うともっと簡単にパラメータが取ってこれるよ」、と言っています。</p>
<p>で、ブロガーのDec自身が</p>
<blockquote><p>I was thinking the exact same thing but have come to realise over the past couple of days that context.getUrlParameter() is not <em>available</em> in certain contexts, such as described above, and when programmatically getting the document id.</p></blockquote>
<p>と返事してます。</p>
<p>実は自分も同じように<strong>context.getUrlParameter(&#8221;Location&#8221;)</strong>を<strong>beforePageLoadイベント</strong>で使おうとしたんですが、なぜか値を取得しなくて、調べている内に彼のブログに辿り着きました。</p>
<p>興味ある方は、<span style="font-size: x-small;"><span style="font-family: sans-serif;">TaskJam V1.0テンプレートの</span></span><strong>xpCGIVariables</strong>を覗いて頂ければ分かるとおもうのですが、</p>
<p>自分の結論としては<strong>beforePageLoadイベント</strong>では</p>
<p>context.getUrlParameter()</p>
<p>はまだ値が格納されておらず、</p>
<p>facesContext.getExternalContext().getRequest()</p>
<p>には格納されている。</p>
<p>ということにしておきました <img src='http://www.oto-kichi.com/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> （自分はIBMの人間じゃないので間違っている可能性大です＞＜）</p>
<p>さらに突っ込むと、同じコメント欄で</p>
<p>パラメータを渡すようなことをしなくてもリンク元でsessionScopeを使って予め設定しておけばいいんじゃないの？</p>
<p>というコメントも寄せられていて、</p>
<p>実際、自分もそれをまず試したのですが、結論としては（自分の環境では）動きませんでした。</p>
<p>リンクが同じデータベース内にあって、リンクをクリックされたとき、onclickイベントなどでsessionScopeを使って値を設定する場合は、正常に動作するとおもうのですが、</p>
<p>自分の場合は、他のデータベースに貼ってあるリンクからジャンプさせていたので、onclickイベントでsessionScopeの値を設定しても、リンク先のデータベースではsessionScopeの値を取得出来ませんでした。</p>
<p>ここで、悩んだのが、sessionScopeっていったい、どこの保存されているのか？</p>
<p>これも、自分の憶測と断って書かせてもらうと、</p>
<p>sessionScopeはUserがログインしている間保存されるが、その値自体は、定義したデータベースが持つ。なので、２つのデータベースで同じ変数のsessionScopeの値が違うということはありえる。</p>
<p>ということです。　検証しようと思えば簡単なので、時間が出来たときにやってみたいと思います。もしくは答えを知っているかたがおられたら教えてください(&gt;&lt;)</p>
]]></content:encoded>
			<wfw:commentRss>http://www.oto-kichi.com/2009/12/29/get%e3%83%a1%e3%82%bd%e3%83%83%e3%83%89%e3%81%ae%e3%83%91%e3%83%a9%e3%83%a1%e3%83%bc%e3%82%bf%e3%81%8b%e3%82%89xpage%e3%81%ae%e6%8c%99%e5%8b%95%e3%82%92%e3%82%b3%e3%83%b3%e3%83%88%e3%83%ad%e3%83%bc/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	<xhtml:link rel="alternate" media="handheld" type="text/html" href="http://www.oto-kichi.com/2009/12/29/get%e3%83%a1%e3%82%bd%e3%83%83%e3%83%89%e3%81%ae%e3%83%91%e3%83%a9%e3%83%a1%e3%83%bc%e3%82%bf%e3%81%8b%e3%82%89xpage%e3%81%ae%e6%8c%99%e5%8b%95%e3%82%92%e3%82%b3%e3%83%b3%e3%83%88%e3%83%ad%e3%83%bc/" />
	</item>
		<item>
		<title>Lotus Notes 8.5.1のためLotus Expeditor ToolkitをEclipseに設定する時の注意点</title>
		<link>http://www.oto-kichi.com/2009/11/25/lotus-notes-8-5-1%e3%81%ae%e3%81%9f%e3%82%81lotus-expeditor-toolkit%e3%82%92eclipse%e3%81%ab%e8%a8%ad%e5%ae%9a%e3%81%99%e3%82%8b%e6%99%82%e3%81%ae%e6%b3%a8%e6%84%8f%e7%82%b9/</link>
		<comments>http://www.oto-kichi.com/2009/11/25/lotus-notes-8-5-1%e3%81%ae%e3%81%9f%e3%82%81lotus-expeditor-toolkit%e3%82%92eclipse%e3%81%ab%e8%a8%ad%e5%ae%9a%e3%81%99%e3%82%8b%e6%99%82%e3%81%ae%e6%b3%a8%e6%84%8f%e7%82%b9/#comments</comments>
		<pubDate>Thu, 26 Nov 2009 01:29:51 +0000</pubDate>
		<dc:creator>Viruke</dc:creator>
				<category><![CDATA[Composite Application]]></category>
		<category><![CDATA[Lotus Domino Designer]]></category>
		<category><![CDATA[Lotus Expeditor]]></category>
		<category><![CDATA[Lotus Notes]]></category>
		<category><![CDATA[Java]]></category>

		<guid isPermaLink="false">http://www.oto-kichi.com/?p=122</guid>
		<description><![CDATA[
			
				
			
		
Lotus Notes 8.5.1の埋め込みブラウザをSSO（Single-Sign-On）対応させるために、Lotus Expeditor Toolkitを使ったEclipseの設定を [...]]]></description>
			<content:encoded><![CDATA[<div class="tweetmeme_button" style="float: right; margin-left: 10px;">
			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fwww.oto-kichi.com%2F2009%2F11%2F25%2Flotus-notes-8-5-1%25e3%2581%25ae%25e3%2581%259f%25e3%2582%2581lotus-expeditor-toolkit%25e3%2582%2592eclipse%25e3%2581%25ab%25e8%25a8%25ad%25e5%25ae%259a%25e3%2581%2599%25e3%2582%258b%25e6%2599%2582%25e3%2581%25ae%25e6%25b3%25a8%25e6%2584%258f%25e7%2582%25b9%2F"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fwww.oto-kichi.com%2F2009%2F11%2F25%2Flotus-notes-8-5-1%25e3%2581%25ae%25e3%2581%259f%25e3%2582%2581lotus-expeditor-toolkit%25e3%2582%2592eclipse%25e3%2581%25ab%25e8%25a8%25ad%25e5%25ae%259a%25e3%2581%2599%25e3%2582%258b%25e6%2599%2582%25e3%2581%25ae%25e6%25b3%25a8%25e6%2584%258f%25e7%2582%25b9%2F&amp;source=Viruke&amp;style=normal" height="61" width="50" /><br />
			</a>
		</div>
<p>Lotus Notes 8.5.1の埋め込みブラウザをSSO（Single-Sign-On）対応させるために、Lotus Expeditor Toolkitを使ったEclipseの設定をしようとしたのですが、Lotus Notes 8.5.1のVMが見当たらないので、ググッてみると以下のように構造に変更があったみたいです。</p>
<blockquote><p>There&#8217;s no longer a JRE stored in the plugin directory way down in the directory structure. Now you simply use the JVM in /jvm &#8211; simple right?!</p>
<p>This is nice but it means that your Eclipse configuration needs to be a little different JVM wise. I have therefore updated my <a href="http://lekkimworld.com/pages/eclipse34_notes851.html" target="_blank">Eclipse configuration guidelines to work with Notes 8.5.1</a>.</p>
<p>引用元: <a href="http://lekkimworld.com/2009/09/30/configure_eclipse_3_4_for_notes_8_5_1.html">Configure Eclipse 3.4 for Notes 8.5.1 &#8211; lekkimworld.com</a>.</p></blockquote>
<p>以前は、</p>
<p>&lt;Notes install dir&gt;/framework/rcp/eclipse/plugins/com.ibm.rcp.j2se.win32.x86_1.5.0.SR4-200707311521/jre</p>
<p>などとなっていたのですが、Lotus Notes 8.5.1では引用元の紹介にもあるように、</p>
<p>&lt;Notes install dir&gt;/jvm</p>
<p>に変更になっていました。<br />
詳しくは <a href="http://lekkimworld.com/pages/eclipse34_notes851.html" target="_blank">Eclipse configuration guidelines to work with Notes 8.5.1</a>に書いてあります。</p>
<p>これは、自分の設定した場合、</p>
<p style="text-align: center;"><a href="http://www.oto-kichi.com/wp-content/uploads/2009/11/eclipse851.PNG"><img class="size-medium wp-image-124 aligncenter" title="Lotus Notes 8.5.1 VM" src="http://www.oto-kichi.com/wp-content/uploads/2009/11/eclipse851-300x240.PNG" alt="Lotus Notes 8.5.1 VM" width="300" height="240" /></a></p>
<p>なお、Lotus Expeditor Toolkitの設定自体は以下のリンク等にかいてあるのが参考になるとおもいます。</p>
<p>http://www.ibm.com/developerworks/lotus/library/expeditor-notes-sametime/<br />
http://www.ibm.com/developerworks/lotus/library/expeditor-browser/</p>
]]></content:encoded>
			<wfw:commentRss>http://www.oto-kichi.com/2009/11/25/lotus-notes-8-5-1%e3%81%ae%e3%81%9f%e3%82%81lotus-expeditor-toolkit%e3%82%92eclipse%e3%81%ab%e8%a8%ad%e5%ae%9a%e3%81%99%e3%82%8b%e6%99%82%e3%81%ae%e6%b3%a8%e6%84%8f%e7%82%b9/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	<xhtml:link rel="alternate" media="handheld" type="text/html" href="http://www.oto-kichi.com/2009/11/25/lotus-notes-8-5-1%e3%81%ae%e3%81%9f%e3%82%81lotus-expeditor-toolkit%e3%82%92eclipse%e3%81%ab%e8%a8%ad%e5%ae%9a%e3%81%99%e3%82%8b%e6%99%82%e3%81%ae%e6%b3%a8%e6%84%8f%e7%82%b9/" />
	</item>
		<item>
		<title>Notes ClientでxPageをオープンするための?OpenXPages</title>
		<link>http://www.oto-kichi.com/2009/11/24/whats-new-for-xpages-in%c2%a08-5-1-xpages-blog-the-xpages-blog/</link>
		<comments>http://www.oto-kichi.com/2009/11/24/whats-new-for-xpages-in%c2%a08-5-1-xpages-blog-the-xpages-blog/#comments</comments>
		<pubDate>Wed, 25 Nov 2009 01:30:48 +0000</pubDate>
		<dc:creator>Viruke</dc:creator>
				<category><![CDATA[Composite Application]]></category>
		<category><![CDATA[Lotus Domino Designer]]></category>
		<category><![CDATA[Lotus Notes]]></category>
		<category><![CDATA[xPages]]></category>

		<guid isPermaLink="false">http://www.oto-kichi.com/?p=119</guid>
		<description><![CDATA[
			
				
			
		
前回の投稿に続き、Lotus Notes 8.5.1からxPagesをComposite ApplicationにComponentsとして追加できる機能がついたので、早速試してみたので [...]]]></description>
			<content:encoded><![CDATA[<div class="tweetmeme_button" style="float: right; margin-left: 10px;">
			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fwww.oto-kichi.com%2F2009%2F11%2F24%2Fwhats-new-for-xpages-in%25c2%25a08-5-1-xpages-blog-the-xpages-blog%2F"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fwww.oto-kichi.com%2F2009%2F11%2F24%2Fwhats-new-for-xpages-in%25c2%25a08-5-1-xpages-blog-the-xpages-blog%2F&amp;source=Viruke&amp;style=normal" height="61" width="50" /><br />
			</a>
		</div>
<p>前回の投稿に続き、Lotus Notes 8.5.1からxPagesをComposite ApplicationにComponentsとして追加できる機能がついたので、早速試してみたのですが、Dblookupで他のデータベースからドキュメント情報を取得することは出来るけど、いざ、そのドキュメントをオープンさせようとしたときに、上手いこといかない、という問題に躓いたので記しておきます。</p>
<p>実際、なにが上手いこと行かなかったかというと、</p>
<ol>
<li>http:// のプロトコルでリンクを手前で生成しているような場合に、Lotus NotesはWebブラウザで開けようとするが、認証をもう一度求められてしまう。</li>
<li>リンクを参照パスにしても、Proxyエラーや、４０４エラーとなってしまって開くことが出来ない。</li>
</ol>
<p>で、どうするのかな～と思い調べてみると、答えはxPagesのブログに有りました。</p>
<blockquote><p>?OpenXPage has been added as a supported parameters for the notes:// protocol to launch an XPage in the Notes client.</p>
<p>引用元: <a href="http://xpagesblog.com/xpages-blog/2009/10/17/whats-new-for-xpages-in-851.html">What&#8217;s New For XPages in 8.5.1 &#8211; XPages Blog &#8211; The XPages Blog</a>.</p></blockquote>
<p>Lotus Notes 8.5.1 のxPagesの新しい機能紹介の投稿なんですが、</p>
<blockquote><p>Notes ClientでxPageをランチするために notes:// プロトコルの?OpenXPages というパラメータをサポートしました。</p></blockquote>
<p>ということらしいので、自分の探していたのはこれかも？！と思い試してみたら見事に動きました。</p>
<p>自分の例では、</p>
<p>Link Core ControlのOptionsで「Link type」を「URL」にして、以下のようなComputed Valueで上手くいきました。</p>
<blockquote><p>return &#8220;Notes:///88257656006337D3/content.xsp?OpenXPage&#8221;</p></blockquote>
<p>余談ですがxPagesをComposite ApplicationのComponentとして使いたい場合は、極力xPagesで用意されたCore Controls等を使って作っていくのが近道っぽいです。もちろんThemeなども。</p>
<p>自分はxPagesのSourceタブからhtmlコードやCSSファイルをガツガツ埋め込んでいっていたので、Componentにしたとき、ほとんど動かず、結局かなり作り直すはめになっちゃいました・・・（涙）</p>
<p><span style="color: #ff0000;">追記：１２月１６日２００９年<br />
Domino Designere URLs for xPgages というエントリーがDomino Designer Wikiに追加されてます。</span><br />
<a href="http://www-10.lotus.com/ldd/ddwiki.nsf/dx/Domino_Designer_URLs_for_XPages">http://www-10.lotus.com/ldd/ddwiki.nsf/dx/Domino_Designer_URLs_for_XPages</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.oto-kichi.com/2009/11/24/whats-new-for-xpages-in%c2%a08-5-1-xpages-blog-the-xpages-blog/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	<xhtml:link rel="alternate" media="handheld" type="text/html" href="http://www.oto-kichi.com/2009/11/24/whats-new-for-xpages-in%c2%a08-5-1-xpages-blog-the-xpages-blog/" />
	</item>
		<item>
		<title>xPages Component(Notes 8.5.1)でDblookup()使用時の注意点</title>
		<link>http://www.oto-kichi.com/2009/11/11/xpages-componentnotes-8-5-1%e3%81%a7dblookup%e4%bd%bf%e7%94%a8%e6%99%82%e3%81%ae%e6%b3%a8%e6%84%8f%e7%82%b9/</link>
		<comments>http://www.oto-kichi.com/2009/11/11/xpages-componentnotes-8-5-1%e3%81%a7dblookup%e4%bd%bf%e7%94%a8%e6%99%82%e3%81%ae%e6%b3%a8%e6%84%8f%e7%82%b9/#comments</comments>
		<pubDate>Wed, 11 Nov 2009 21:21:14 +0000</pubDate>
		<dc:creator>Viruke</dc:creator>
				<category><![CDATA[Lotus Domino Designer]]></category>
		<category><![CDATA[xPages]]></category>
		<category><![CDATA[Lotus Notes]]></category>

		<guid isPermaLink="false">http://www.oto-kichi.com/?p=117</guid>
		<description><![CDATA[
			
				
			
		
xPages Componentを使ってLotus Notes Client 8.5.1上でxPagesを表示させる新しい機能を試したときに、自分のxPagesを以下のようにチューニング [...]]]></description>
			<content:encoded><![CDATA[<div class="tweetmeme_button" style="float: right; margin-left: 10px;">
			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fwww.oto-kichi.com%2F2009%2F11%2F11%2Fxpages-componentnotes-8-5-1%25e3%2581%25a7dblookup%25e4%25bd%25bf%25e7%2594%25a8%25e6%2599%2582%25e3%2581%25ae%25e6%25b3%25a8%25e6%2584%258f%25e7%2582%25b9%2F"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fwww.oto-kichi.com%2F2009%2F11%2F11%2Fxpages-componentnotes-8-5-1%25e3%2581%25a7dblookup%25e4%25bd%25bf%25e7%2594%25a8%25e6%2599%2582%25e3%2581%25ae%25e6%25b3%25a8%25e6%2584%258f%25e7%2582%25b9%2F&amp;source=Viruke&amp;style=normal" height="61" width="50" /><br />
			</a>
		</div>
<p>xPages Componentを使ってLotus Notes Client 8.5.1上でxPagesを表示させる新しい機能を試したときに、自分のxPagesを以下のようにチューニングしないと上手く動かなかったので、注意が必要になります。</p>
<h3><strong>症状</strong></h3>
<p>xPagesをブラウザで見るとうまく表示されるのに、Notes Clientで見るとDblookup()でエラーが発生する。</p>
<h3><strong>状況</strong></h3>
<p>サーバのComposite Applicationを直接開いたときにエラーが発生するが、ローカルレプリカを開いたときは発生しない。</p>
<h3><strong>原因</strong></h3>
<p>＠Dblookup()の1st パラメータの dbName が正しく設定されていなかった。</p>
<h3><strong>詳細</strong></h3>
<p>以下のコードではDblookup（）が正常に値を返しません。</p>
<blockquote><p>&lt;![CDATA[#{javascript:var db = ["" ,"folder/cms.nsf"];<br />
var viewName = &#8220;(vwTestLookup)&#8221;;<br />
var key =&#8221;Keyword&#8221;;<br />
var value = &#8220;&#8221;;<br />
var value = @DbLookup( db , viewName , key , 6 );<br />
var retValue = &#8220;&#8221;;<br />
if(!@IsError(value)){<br />
for( var i=0; i&lt; value.length &amp;&amp; i &lt; maxEntry; i++){<br />
retValue += &#8220;&lt;li&gt;&#8221;+value[i]+&#8221;&lt;/li&gt;&#8221;;<br />
}<br />
}<br />
else{<br />
retValue = &#8220;Error happened in DbLookup(). &#8220;;<br />
}<br />
return &#8220;&lt;ul&gt;&#8221;+retValue+&#8221;&lt;/ul&gt;&#8221;;}]]&gt;</p></blockquote>
<p>原因は一行目の</p>
<p><strong>var db = ["" ,"folder/cms.nsf"];</strong></p>
<p>にありました。 Webブラウザから見る場合はサーバ自身のfolder/cms.nsf データベースを参照してくれるので、問題なく期待した動作をするのですが、Notes Clientで開くと、ローカルPCのfolder/cms.nsfを参照しにいってしまうため、レプリケーションがない環境ではエラーが発生してしまいます。</p>
<h3><strong>対処法</strong></h3>
<p>Dblookup() のdbName Arrayの 1st elementにサーバネームを渡すようにする。</p>
<p><strong>var db = [database.getServer() ,"folder/cms.nsf"];</strong></p>
<p>としてやれば、どちらも動くようになります。</p>
<p>ちなみに、xPages Componentと同じDBを参照する場合は、</p>
<p><strong>var db = @DbName();</strong></p>
<p>としてやるだけでOKです。</p>
<p>複雑な処理をしている既存のxPagesをComponentで動かす言った場合、このようなケースではただエラーが発生するので、丁寧なコードを書いていないとデバッグ作業は思いのほか時間がかかってしまいます。</p>
]]></content:encoded>
			<wfw:commentRss>http://www.oto-kichi.com/2009/11/11/xpages-componentnotes-8-5-1%e3%81%a7dblookup%e4%bd%bf%e7%94%a8%e6%99%82%e3%81%ae%e6%b3%a8%e6%84%8f%e7%82%b9/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	<xhtml:link rel="alternate" media="handheld" type="text/html" href="http://www.oto-kichi.com/2009/11/11/xpages-componentnotes-8-5-1%e3%81%a7dblookup%e4%bd%bf%e7%94%a8%e6%99%82%e3%81%ae%e6%b3%a8%e6%84%8f%e7%82%b9/" />
	</item>
		<item>
		<title>どのフォルダにドキュメントが格納されているかを知る @WhichFolders</title>
		<link>http://www.oto-kichi.com/2009/11/06/%e3%81%a9%e3%81%ae%e3%83%95%e3%82%a9%e3%83%ab%e3%83%80%e3%81%ab%e3%83%89%e3%82%ad%e3%83%a5%e3%83%a1%e3%83%b3%e3%83%88%e3%81%8c%e6%a0%bc%e7%b4%8d%e3%81%95%e3%82%8c%e3%81%a6%e3%81%84%e3%82%8b%e3%81%8b/</link>
		<comments>http://www.oto-kichi.com/2009/11/06/%e3%81%a9%e3%81%ae%e3%83%95%e3%82%a9%e3%83%ab%e3%83%80%e3%81%ab%e3%83%89%e3%82%ad%e3%83%a5%e3%83%a1%e3%83%b3%e3%83%88%e3%81%8c%e6%a0%bc%e7%b4%8d%e3%81%95%e3%82%8c%e3%81%a6%e3%81%84%e3%82%8b%e3%81%8b/#comments</comments>
		<pubDate>Fri, 06 Nov 2009 19:27:52 +0000</pubDate>
		<dc:creator>Viruke</dc:creator>
				<category><![CDATA[Lotus Domino Designer]]></category>
		<category><![CDATA[formula]]></category>
		<category><![CDATA[Lotus Notes]]></category>
		<category><![CDATA[Notes C API]]></category>

		<guid isPermaLink="false">http://www.oto-kichi.com/?p=112</guid>
		<description><![CDATA[
			
				
			
		
自分の使っているLotus Notes 8.5.1のメールで「All Documents」にフォルダ情報が表示されているのが不思議で、Designerで($All) view を開いてみ [...]]]></description>
			<content:encoded><![CDATA[<div class="tweetmeme_button" style="float: right; margin-left: 10px;">
			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fwww.oto-kichi.com%2F2009%2F11%2F06%2F%25e3%2581%25a9%25e3%2581%25ae%25e3%2583%2595%25e3%2582%25a9%25e3%2583%25ab%25e3%2583%2580%25e3%2581%25ab%25e3%2583%2589%25e3%2582%25ad%25e3%2583%25a5%25e3%2583%25a1%25e3%2583%25b3%25e3%2583%2588%25e3%2581%258c%25e6%25a0%25bc%25e7%25b4%258d%25e3%2581%2595%25e3%2582%258c%25e3%2581%25a6%25e3%2581%2584%25e3%2582%258b%25e3%2581%258b%2F"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fwww.oto-kichi.com%2F2009%2F11%2F06%2F%25e3%2581%25a9%25e3%2581%25ae%25e3%2583%2595%25e3%2582%25a9%25e3%2583%25ab%25e3%2583%2580%25e3%2581%25ab%25e3%2583%2589%25e3%2582%25ad%25e3%2583%25a5%25e3%2583%25a1%25e3%2583%25b3%25e3%2583%2588%25e3%2581%258c%25e6%25a0%25bc%25e7%25b4%258d%25e3%2581%2595%25e3%2582%258c%25e3%2581%25a6%25e3%2581%2584%25e3%2582%258b%25e3%2581%258b%2F&amp;source=Viruke&amp;style=normal" height="61" width="50" /><br />
			</a>
		</div>
<p>自分の使っているLotus Notes 8.5.1のメールで「All Documents」にフォルダ情報が表示されているのが不思議で、Designerで($All) view を開いてみたら「Folder」columnに@WhichFolders ってのが記載されていました。</p>
<p>@WhichFoldersなんて便利なコマンドあったっけ？と思ってググってみました。</p>
<blockquote><p>Knowing which folder a document is in &#8211; @WhichFolders</p>
<p>Steve Castledine 8 September 2008 09:28:53</p>
<p>Sometimes people don&#8217;t see the release notes (I&#8217;m not saying this is definitely in them), or new formula etc can be forgotten, but a nice new formula in 8.5 was @WhichFolders which can be used to determine, surprisingly, which folder the current document is in.</p>
<p>To see it in action, it was added to the mail template, all documents view.</p>
<p>Funny, I&#8217;m not even sure this made it into the designer help db, I will have to check.</p>
<p>引用元: <a href="http://www.stevecastledine.com/sc.nsf/dx/knowing-which-folders-a-document-is-in">Knowing which folder a document is in &#8211; @WhichFolders</a>.</p></blockquote>
<p>Lotus Notes 8.5から出来たFormula だったんですね。<br />
しかもドキュメントにはなっていないみたい。 隠しコマンド？</p>
<p>ちなみに、@WhichFolders を調べているときに発見した別のブログ「Interesting undocumented formulas」( <a href="http://lotus-blogs.blogspot.com/2009/01/interesting-and-undocumented-formulas.html" target="_blank">http://lotus-blogs.blogspot.com/2009/01/interesting-and-undocumented-formulas.html</a> )</p>
<p>にもいろいろと紹介されています。</p>
<p>さて、こんな便利なコマンドが＠Formulaには用意されたみたいなんですが、自分への命題は「Lotus Notes C API」を使って同等の機能を実装できるか？</p>
<p>これが、簡単なようで上手くいかない。 IMAPコマンドをメールDBに対して掛けてやると$FolderRefが埋め込まれるのでこれによってフォルダ階層を割り出すことが可能になるのだが、もうちょっとスマートな方法を模索中・・・</p>
<p>と、またまた、ためにならない投げっぱなしな投稿でおわり。</p>
]]></content:encoded>
			<wfw:commentRss>http://www.oto-kichi.com/2009/11/06/%e3%81%a9%e3%81%ae%e3%83%95%e3%82%a9%e3%83%ab%e3%83%80%e3%81%ab%e3%83%89%e3%82%ad%e3%83%a5%e3%83%a1%e3%83%b3%e3%83%88%e3%81%8c%e6%a0%bc%e7%b4%8d%e3%81%95%e3%82%8c%e3%81%a6%e3%81%84%e3%82%8b%e3%81%8b/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
	<xhtml:link rel="alternate" media="handheld" type="text/html" href="http://www.oto-kichi.com/2009/11/06/%e3%81%a9%e3%81%ae%e3%83%95%e3%82%a9%e3%83%ab%e3%83%80%e3%81%ab%e3%83%89%e3%82%ad%e3%83%a5%e3%83%a1%e3%83%b3%e3%83%88%e3%81%8c%e6%a0%bc%e7%b4%8d%e3%81%95%e3%82%8c%e3%81%a6%e3%81%84%e3%82%8b%e3%81%8b/" />
	</item>
		<item>
		<title>Notes 8.5.1クライアントで動くxPagesコンポーネント</title>
		<link>http://www.oto-kichi.com/2009/10/09/notes-8-5-1%e3%82%af%e3%83%a9%e3%82%a4%e3%82%a2%e3%83%b3%e3%83%88%e3%81%a7%e5%8b%95%e3%81%8fxpages%e3%82%b3%e3%83%b3%e3%83%9d%e3%83%bc%e3%83%8d%e3%83%b3%e3%83%88/</link>
		<comments>http://www.oto-kichi.com/2009/10/09/notes-8-5-1%e3%82%af%e3%83%a9%e3%82%a4%e3%82%a2%e3%83%b3%e3%83%88%e3%81%a7%e5%8b%95%e3%81%8fxpages%e3%82%b3%e3%83%b3%e3%83%9d%e3%83%bc%e3%83%8d%e3%83%b3%e3%83%88/#comments</comments>
		<pubDate>Fri, 09 Oct 2009 17:27:10 +0000</pubDate>
		<dc:creator>Viruke</dc:creator>
				<category><![CDATA[Lotus Notes]]></category>
		<category><![CDATA[xPages]]></category>

		<guid isPermaLink="false">http://www.oto-kichi.com/?p=89</guid>
		<description><![CDATA[
			
				
			
		
Here are two videos that demonstrate how you can used XPages components in the Lotus Notes 8. [...]]]></description>
			<content:encoded><![CDATA[<div class="tweetmeme_button" style="float: right; margin-left: 10px;">
			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fwww.oto-kichi.com%2F2009%2F10%2F09%2Fnotes-8-5-1%25e3%2582%25af%25e3%2583%25a9%25e3%2582%25a4%25e3%2582%25a2%25e3%2583%25b3%25e3%2583%2588%25e3%2581%25a7%25e5%258b%2595%25e3%2581%258fxpages%25e3%2582%25b3%25e3%2583%25b3%25e3%2583%259d%25e3%2583%25bc%25e3%2583%258d%25e3%2583%25b3%25e3%2583%2588%2F"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fwww.oto-kichi.com%2F2009%2F10%2F09%2Fnotes-8-5-1%25e3%2582%25af%25e3%2583%25a9%25e3%2582%25a4%25e3%2582%25a2%25e3%2583%25b3%25e3%2583%2588%25e3%2581%25a7%25e5%258b%2595%25e3%2581%258fxpages%25e3%2582%25b3%25e3%2583%25b3%25e3%2583%259d%25e3%2583%25bc%25e3%2583%258d%25e3%2583%25b3%25e3%2583%2588%2F&amp;source=Viruke&amp;style=normal" height="61" width="50" /><br />
			</a>
		</div>
<blockquote><p>Here are two videos that demonstrate how you can used XPages components in the Lotus Notes 8.5.1 client.</p>
<p>引用元: <a href="http://www-10.lotus.com/ldd/ddwiki.nsf/dx/XPage_Components_in_Notes_851_Videos.htm">Lotus Domino Designer wiki</a>.</p></blockquote>
<p>デモの通りだと、とても簡単に実装できそうです♪<br />
Lotus Notes ８．５．１の正式リリースが10月12日らしいので、いまから待ち遠しい。</p>
<p>ちなみに、Lotusphere 2009でBob Balfのセッションで言っていたWebフォームとComposite Applicationのワイヤリングが簡単に出来る機能。セッションでの彼の発言によると8.5.1で実装されるはずなんだけど、あまり聞かないなぁ～。 実装見送りになったのかな？</p>
<p>ワイヤリングする対象をHTMLのDOMをインタラクティブに調べることで簡単に行ってた。 まるでFirebugのElementsを調べる機能みたいでみててかなり感動だったんだけどな・・・</p>
]]></content:encoded>
			<wfw:commentRss>http://www.oto-kichi.com/2009/10/09/notes-8-5-1%e3%82%af%e3%83%a9%e3%82%a4%e3%82%a2%e3%83%b3%e3%83%88%e3%81%a7%e5%8b%95%e3%81%8fxpages%e3%82%b3%e3%83%b3%e3%83%9d%e3%83%bc%e3%83%8d%e3%83%b3%e3%83%88/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	<xhtml:link rel="alternate" media="handheld" type="text/html" href="http://www.oto-kichi.com/2009/10/09/notes-8-5-1%e3%82%af%e3%83%a9%e3%82%a4%e3%82%a2%e3%83%b3%e3%83%88%e3%81%a7%e5%8b%95%e3%81%8fxpages%e3%82%b3%e3%83%b3%e3%83%9d%e3%83%bc%e3%83%8d%e3%83%b3%e3%83%88/" />
	</item>
		<item>
		<title>iWidgetsをLotus Dominoで使える？！</title>
		<link>http://www.oto-kichi.com/2009/10/09/lotus-notes-and-domino-wiki/</link>
		<comments>http://www.oto-kichi.com/2009/10/09/lotus-notes-and-domino-wiki/#comments</comments>
		<pubDate>Fri, 09 Oct 2009 09:15:27 +0000</pubDate>
		<dc:creator>Viruke</dc:creator>
				<category><![CDATA[Lotus Notes]]></category>
		<category><![CDATA[iWidget]]></category>

		<guid isPermaLink="false">http://www.oto-kichi.com/?p=82</guid>
		<description><![CDATA[
			
				
			
		
Enabling iWidgets in IBM Lotus Domino Web applications
 Lotus Notes and Domino wiki.
明日、早速これを [...]]]></description>
			<content:encoded><![CDATA[<div class="tweetmeme_button" style="float: right; margin-left: 10px;">
			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fwww.oto-kichi.com%2F2009%2F10%2F09%2Flotus-notes-and-domino-wiki%2F"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fwww.oto-kichi.com%2F2009%2F10%2F09%2Flotus-notes-and-domino-wiki%2F&amp;source=Viruke&amp;style=normal" height="61" width="50" /><br />
			</a>
		</div>
<h1>Enabling iWidgets in IBM Lotus Domino Web applications</h1>
<p><a href="http://www-10.lotus.com/ldd/dominowiki.nsf/dx/07072009025458AMWEBA5E.htm"> Lotus Notes and Domino wiki</a>.</p>
<p>明日、早速これをｘPagesで動く自前のポータルサイトで試してみます。<br />
いい結果になれば、ここで公表できるかも。</p>
]]></content:encoded>
			<wfw:commentRss>http://www.oto-kichi.com/2009/10/09/lotus-notes-and-domino-wiki/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	<xhtml:link rel="alternate" media="handheld" type="text/html" href="http://www.oto-kichi.com/2009/10/09/lotus-notes-and-domino-wiki/" />
	</item>
	</channel>
</rss>
