<?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/"
	>

<channel>
	<title>Ideas For Free &#187; Tips and Tricks</title>
	<atom:link href="http://blog.libinuko.com/category/tips-and-tricks/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.libinuko.com</link>
	<description>Only freedom will grow our ideas</description>
	<lastBuildDate>Wed, 28 Jul 2010 14:55:39 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
	<!-- google ad injected by adsense-optimizer http://www.adsenseoptimizer.de -->
			<div  style="padding:7px; display: block; margin-left: auto; margin-right: auto; text-align: center;"><!-- Linkblock number: 1 --><script type="text/javascript"><!--
	 
google_ad_client = "pub-4105800609450516";
google_ad_width = 728;
google_ad_height = 15;
google_ad_format = "728x15_0ads_al_s"; google_ad_channel ="4111627870";
google_color_border = "8FC906";
google_color_bg = "F0F0F0";
google_color_link = "A6FF73";
//--></script>
<script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js"></script></div>	<item>
		<title>PowerShell : Modifying Web AppPool Account</title>
		<link>http://blog.libinuko.com/2010/07/28/powershell-modifying-web-apppool-account-2/</link>
		<comments>http://blog.libinuko.com/2010/07/28/powershell-modifying-web-apppool-account-2/#comments</comments>
		<pubDate>Wed, 28 Jul 2010 14:52:31 +0000</pubDate>
		<dc:creator>cakriwut</dc:creator>
				<category><![CDATA[SharePoint 2010]]></category>
		<category><![CDATA[Tips and Tricks]]></category>
		<category><![CDATA[PowerShell]]></category>

		<guid isPermaLink="false">http://blog.libinuko.com/2010/07/28/powershell-modifying-web-apppool-account-2/</guid>
		<description><![CDATA[English I think you may already know Set-SPServiceApplicationPool. This command can be used to modify apppool account for service application &#8211; but it doesn&#8217;t work for Web Application. I am looking for Set-SPWebApplicationPool but I can not find it anywhere. So here is the PowerShell script &#160; param([string] $url, [string] $account) $SPWebApp = Get-SPWebApplication $url $SPManagedAccount = Get-SPManagedAccount –Identity [...] <a href="http://blog.libinuko.com/2010/07/28/powershell-modifying-web-apppool-account-2/">[read more...]</a>]]></description>
			<content:encoded><![CDATA[<!-- google_ad_section_start --><!-- google_ad_section_start --><p>English </p>
<p>I think you may already know Set-SPServiceApplicationPool. This command can be used to modify apppool account for service application &#8211; but it doesn&#8217;t work for Web Application. I am looking for Set-SPWebApplicationPool but I can not find it anywhere.</p>
<p><a href="http://blog.libinuko.com/files/2010/07/image.png"><img style="border-right-width: 0px;border-top-width: 0px;border-bottom-width: 0px;border-left-width: 0px" border="0" alt="image" src="http://blog.libinuko.com/files/2010/07/image_thumb.png" width="614" height="322" /></a> </p>
<p>So here is the PowerShell script</p>
<p>&#160;</p>
<blockquote><p>param([string] $url, [string] $account)</p>
<p>$SPWebApp = Get-SPWebApplication $url</p>
<p>$SPManagedAccount = Get-SPManagedAccount –Identity $account</p>
<p>$SPWebApp.ApplicationPool.ManagedAccount = $SPManagedAccount</p>
<p>$SPWebApp.ApplicationPool.Update()</p>
</blockquote>
<!-- google_ad_section_end --><!-- google_ad_section_end -->]]></content:encoded>
			<wfw:commentRss>http://blog.libinuko.com/2010/07/28/powershell-modifying-web-apppool-account-2/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	<!-- google ad injected by adsense-optimizer http://www.adsenseoptimizer.de -->
			<div  style="padding:7px; display: block; margin-left: auto; margin-right: auto; text-align: center;"><!-- Ad number: 1 --><script type="text/javascript"><!--
    	 
    	google_ad_client = "pub-4105800609450516"; google_alternate_color = "FFFFFF";
		google_ad_width = 468; google_ad_height = 60;
		google_ad_format = "468x60_as"; google_ad_type = "text_image";
		google_ad_channel ="4111627870"; google_color_border = "E3FA11";
		google_color_link = "FFFFFF"; google_color_bg = "A2AB2B";
		google_color_text = "000000"; google_color_url = "FFFFFF";
		google_ui_features = "rc:10"; //--></script>
		<script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js"></script></div>	<item>
		<title>SharePoint 2010: How to create filtered lookup field</title>
		<link>http://blog.libinuko.com/2010/07/11/sharepoint-2010-how-to-create-filtered-lookup-field/</link>
		<comments>http://blog.libinuko.com/2010/07/11/sharepoint-2010-how-to-create-filtered-lookup-field/#comments</comments>
		<pubDate>Sun, 11 Jul 2010 04:55:06 +0000</pubDate>
		<dc:creator>cakriwut</dc:creator>
				<category><![CDATA[Office]]></category>
		<category><![CDATA[Office 2010]]></category>
		<category><![CDATA[SharePoint 2007]]></category>
		<category><![CDATA[SharePoint 2010]]></category>
		<category><![CDATA[Tips and Tricks]]></category>
		<category><![CDATA[Forms]]></category>
		<category><![CDATA[Howto]]></category>
		<category><![CDATA[InfoPath 2010]]></category>

		<guid isPermaLink="false">http://blog.libinuko.com/2010/07/11/sharepoint-2010-how-to-create-filtered-lookup-field/</guid>
		<description><![CDATA[English Imagine a business scenario where we have a lookup field in our list. The reference list contains items Title and their status.  Previously it always difficult to create filtered lookup field with minimal development task. But now, we can use InfoPath 2010 to achieve that functionality. Part III , InfoPath 2010 and SharePoint 2010 Productivity series [...] <a href="http://blog.libinuko.com/2010/07/11/sharepoint-2010-how-to-create-filtered-lookup-field/">[read more...]</a>]]></description>
			<content:encoded><![CDATA[<!-- google_ad_section_start --><!-- google_ad_section_start --><p>English</p>
<p>Imagine a business scenario where we have a lookup field in our list. The reference list contains items Title and their status.  Previously it always difficult to create filtered lookup field with minimal development task. But now, we can use InfoPath 2010 to achieve that functionality.</p>
<p>Part III , InfoPath 2010 and SharePoint 2010 Productivity series webcast shows how to create filtered lookup field.  There are two lists in the scenario “Books” and “Members” list.  The Books list contains list of books Title, Author and Status. There are 2 status of books, “Available” , “In-Used” and “Missing”.</p>
<p>“Members” list has Books  , lookup field – which should show only the “Available” books.</p>
[See post to watch Flash video]
<!-- google_ad_section_end --><!-- google_ad_section_end -->]]></content:encoded>
			<wfw:commentRss>http://blog.libinuko.com/2010/07/11/sharepoint-2010-how-to-create-filtered-lookup-field/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>PC Talk &#8211; Bagaimana menghapus seluruh daftar Recent Documents (Dokumen Terbaru) di Office 2007.</title>
		<link>http://blog.libinuko.com/2010/06/11/pc-talk-bagaimana-menghapus-seluruh-daftar-recent-documents-dokumen-terbaru-di-office-2007/</link>
		<comments>http://blog.libinuko.com/2010/06/11/pc-talk-bagaimana-menghapus-seluruh-daftar-recent-documents-dokumen-terbaru-di-office-2007/#comments</comments>
		<pubDate>Fri, 11 Jun 2010 16:02:00 +0000</pubDate>
		<dc:creator>cakriwut</dc:creator>
				<category><![CDATA[Office]]></category>
		<category><![CDATA[Office 2010]]></category>
		<category><![CDATA[PC Talks]]></category>
		<category><![CDATA[Tips and Tricks]]></category>

		<guid isPermaLink="false">http://blog.libinuko.com/2010/05/10/pc-talk-bagaimana-menghapus-seluruh-daftar-recent-documents-dokumen-terbaru-di-office-2007/</guid>
		<description><![CDATA[Posted in : http://support.microsoft.com/kb/945561/id-id Skenario percakapan berikut menggambarkan bagaimana menghapus seluruh daftar Recent Documents (Dokumen Terbaru) di Office 2007. Dalam scenario ini, Anda akan menggunakan Word 2007. Anda juga dapat melakukan cara yang sama di Excel 2007 dan PowerPoint 2007. &#160; Proyek saya sudah selesai dan saya ingin menghapus daftar file didalam “Recent Document” (Dokumen Terbaru) di Word [...] <a href="http://blog.libinuko.com/2010/06/11/pc-talk-bagaimana-menghapus-seluruh-daftar-recent-documents-dokumen-terbaru-di-office-2007/">[read more...]</a>]]></description>
			<content:encoded><![CDATA[<!-- google_ad_section_start --><!-- google_ad_section_start --><p>Posted in : <a title="http://support.microsoft.com/kb/945561/id-id" href="http://support.microsoft.com/kb/945561/id-id">http://support.microsoft.com/kb/945561/id-id</a></p>
<p>Skenario percakapan berikut menggambarkan bagaimana menghapus seluruh daftar Recent Documents (Dokumen Terbaru) di Office 2007. Dalam scenario ini, Anda akan menggunakan Word 2007. Anda juga dapat melakukan cara yang sama di Excel 2007 dan PowerPoint 2007.</p>
<hr />
<table border="0" cellspacing="0" cellpadding="2" width="651">
<tbody>
<tr>
<td valign="top" width="77">&#160;</td>
<td valign="top" width="486">Proyek saya sudah selesai dan saya ingin menghapus daftar file didalam “Recent Document” (Dokumen Terbaru) di Word 2007 dan Excel 2007 supaya kosong seperti sediakala. Bagaimana saya bisa melakukannya?</td>
<td valign="top" width="86"><img src="http://support.microsoft.com/library/images/support/kbgraphics/public/ja/PCTalk/Faces/a-b_co-worker-question.gif" /></td>
</tr>
<tr>
<td valign="top" width="77"><img src="http://support.microsoft.com/library/images/support/kbgraphics/public/ja/PCTalk/Faces/q-g_co-worker-smile.gif" /></td>
<td valign="top" width="486">Sangat mudah. Saya akan menerangkan caranya dengan menggunakan Word 2007, tetapi kamu juga dapat melakukan hal yang sama di Excel 2007 atau PowerPoint 2007.          <br />Pertama, klik tombol <b>Office</b> dan klik <b>Word Options</b>.           </p>
<p><img alt="" src="http://support.microsoft.com/library/images/support/kbgraphics/public/vi-vn/PCTalk/945561/945561A.jpg" /></td>
<td valign="top" width="86">&#160;</td>
</tr>
<tr>
<td valign="top" width="77">&#160;</td>
<td valign="top" width="486">Kotak dialog <strong>Word Options</strong> akan muncul.</td>
<td valign="top" width="86"><img src="http://support.microsoft.com/library/images/support/kbgraphics/public/ja/PCTalk/Faces/a-b_co-worker-say.gif" /></td>
</tr>
<tr>
<td valign="top" width="77"><img src="http://support.microsoft.com/library/images/support/kbgraphics/public/ja/PCTalk/Faces/q-g_co-worker-explain.gif" /></td>
<td valign="top" width="486">Sekarang klik <strong>Advanced</strong> didalam menu dan ketik “0” di isian “Show this number of Recent Documents” (Tampilkan Dokumen Terbaru sebanyak angka ini). Jika kamu klik <strong>OK</strong>, maka daftar Recent Documents (Dokumen Terbaru) akan terhapus.           </p>
<p><img alt="" src="http://support.microsoft.com/library/images/support/kbgraphics/public/vi-vn/PCTalk/945561/945561B.jpg" /></td>
<td valign="top" width="86">&#160;</td>
</tr>
<tr>
<td valign="top" width="77">&#160;</td>
<td valign="top" width="486">Oh, cuma itu saja?</td>
<td valign="top" width="86"><img src="http://support.microsoft.com/library/images/support/kbgraphics/public/ja/PCTalk/Faces/a-b_co-worker-wonder.gif" /></td>
</tr>
<tr>
<td valign="top" width="77"><img src="http://support.microsoft.com/library/images/support/kbgraphics/public/ja/PCTalk/Faces/q-g_co-worker-standard.gif" /></td>
<td valign="top" width="486">Klik tombol <strong>Office</strong> untuk konfirmasi.           </p>
</td>
<td valign="bottom" width="86">&#160;</td>
</tr>
<tr>
<td valign="top" width="77">&#160;</td>
<td valign="top" width="486">Oh, ternyata kamu benar. Sekarang tidak ada lagi isi Recent Documents (Dokumen Terbaru).          </p>
<p><img alt="" src="http://support.microsoft.com/library/images/support/kbgraphics/public/vi-vn/PCTalk/945561/945561C.jpg" />           </p>
<p>Selanjutnya, apa yang harus saya lakukan jika saya ingin menggunakan daftar Recent Documents (Dokumen Terbaru) lagi?</td>
<td valign="bottom" width="86"><img src="http://support.microsoft.com/library/images/support/kbgraphics/public/ja/PCTalk/Faces/a-b_co-worker-yes.gif" /></td>
</tr>
<tr>
<td valign="top" width="77"><img src="http://support.microsoft.com/library/images/support/kbgraphics/public/ja/PCTalk/Faces/q-g_co-worker-explain.gif" /></td>
<td valign="top" width="486">Kamu dapat mengganti angka “Show this number of Recent Documents” (Tampilkan Dokumen Terbaru sebanyak angka ini) yang baru saja kamu ubah menjadi “0” menjadi angka berapa saja sesuai dengan jumlah dokumen yang ingin kamu tampilkan di daftar itu. Tetapi ingat, bahwa kamu tidak bisa mengembalikan daftar yang sudah terhapus sebelumnya.</td>
<td valign="bottom" width="86">&#160;</td>
</tr>
<tr>
<td valign="top" width="77">&#160;</td>
<td valign="top" width="486">Jadi jika saya ingin menghapus daftarnya, saya dapat melakukan dengan mengubah angkanya menjadi “0”.</td>
<td valign="top" width="86"><img src="http://support.microsoft.com/library/images/support/kbgraphics/public/ja/PCTalk/Faces/a-b_co-worker-smile.gif" /></td>
</tr>
</tbody>
</table>
<!-- google_ad_section_end --><!-- google_ad_section_end -->]]></content:encoded>
			<wfw:commentRss>http://blog.libinuko.com/2010/06/11/pc-talk-bagaimana-menghapus-seluruh-daftar-recent-documents-dokumen-terbaru-di-office-2007/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	<!-- google ad injected by adsense-optimizer http://www.adsenseoptimizer.de -->
			<div  style="padding:7px; display: block; margin-left: auto; margin-right: auto; text-align: center;"><!-- Ad number: 2 --><script type="text/javascript"><!--
    	 
    	google_ad_client = "pub-4105800609450516"; google_alternate_color = "FFFFFF";
		google_ad_width = 468; google_ad_height = 60;
		google_ad_format = "468x60_as"; google_ad_type = "text_image";
		google_ad_channel ="4111627870"; google_color_border = "E3FA11";
		google_color_link = "FFFFFF"; google_color_bg = "A2AB2B";
		google_color_text = "000000"; google_color_url = "FFFFFF";
		google_ui_features = "rc:10"; //--></script>
		<script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js"></script></div>	<item>
		<title>SPD: How to change 24hr format to 12hr format AM/PM</title>
		<link>http://blog.libinuko.com/2009/09/04/spd-how-to-change-24hr-format-to-12hr-format-ampm/</link>
		<comments>http://blog.libinuko.com/2009/09/04/spd-how-to-change-24hr-format-to-12hr-format-ampm/#comments</comments>
		<pubDate>Fri, 04 Sep 2009 00:03:11 +0000</pubDate>
		<dc:creator>cakriwut</dc:creator>
				<category><![CDATA[SharePoint 2007]]></category>
		<category><![CDATA[Tips and Tricks]]></category>
		<category><![CDATA[SharePoint Designer]]></category>

		<guid isPermaLink="false">http://blog.libinuko.com/2009/09/04/spd-how-to-change-24hr-format-to-12hr-format-ampm/</guid>
		<description><![CDATA[English I’ve found this question in forum – but since it was not easy to explain by sentences, I would like to create a sample working option here. For example you have this list as data source: In the data source you have 24hr format (I use string type for my sample, but you can use normal [...] <a href="http://blog.libinuko.com/2009/09/04/spd-how-to-change-24hr-format-to-12hr-format-ampm/">[read more...]</a>]]></description>
			<content:encoded><![CDATA[<!-- google_ad_section_start --><!-- google_ad_section_start --><p>English</p>
<p>I’ve found this question in forum – but since it was not easy to explain by sentences, I would like to create a sample working option here.</p>
<p>For example you have this list as data source:</p>
<p><a href="http://blog.libinuko.com/wp-content/uploads/2009/09/94200973007AM.gif"><img style="border-bottom: 0px;border-left: 0px;border-top: 0px;border-right: 0px" border="0" alt="9-4-2009 7-30-07 AM" src="http://blog.libinuko.com/wp-content/uploads/2009/09/94200973007AM_thumb.gif" width="501" height="149" /></a> </p>
</p>
<p>In the data source you have 24hr format (I use string type for my sample, but you can use normal DateTime).</p>
<p>In SharePoint, to display the 24hr format in 12hr format, you need to use DataFormWebpart + proper ddwrt function like this:</p>
<p><a href="http://blog.libinuko.com/wp-content/uploads/2009/09/94200975828AM.gif"><img style="border-bottom: 0px;border-left: 0px;border-top: 0px;border-right: 0px" border="0" alt="9-4-2009 7-58-28 AM" src="http://blog.libinuko.com/wp-content/uploads/2009/09/94200975828AM_thumb.gif" width="430" height="307" /></a> </p>
<p>The ddwrt function you need to play is:</p>
<blockquote><p>ddwrt:FormatDate(string([Field]),1033,5)</p>
</blockquote>
<p><strong>[Field]</strong> is the field where you have the data, in this case internal name of “24hr format”.    <br /><strong>1033</strong> is the culture    <br /><strong>5</strong> is the predefined format , you can use ‘M/d/yyyy hh:mm:ss tt’ instead.</p>
<p>&#160;</p>
<p>And the final result will be,</p>
<p><a href="http://blog.libinuko.com/wp-content/uploads/2009/09/94200980218AM.gif"><img style="border-bottom: 0px;border-left: 0px;border-top: 0px;border-right: 0px" border="0" alt="9-4-2009 8-02-18 AM" src="http://blog.libinuko.com/wp-content/uploads/2009/09/94200980218AM_thumb.gif" width="369" height="149" /></a> </p>
<p>&#160;</p>
<p>Happy design!</p>
<!-- google_ad_section_end --><!-- google_ad_section_end -->]]></content:encoded>
			<wfw:commentRss>http://blog.libinuko.com/2009/09/04/spd-how-to-change-24hr-format-to-12hr-format-ampm/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Semantic URLs for SharePoint</title>
		<link>http://blog.libinuko.com/2009/09/01/semantic-urls-for-sharepoint/</link>
		<comments>http://blog.libinuko.com/2009/09/01/semantic-urls-for-sharepoint/#comments</comments>
		<pubDate>Tue, 01 Sep 2009 15:18:23 +0000</pubDate>
		<dc:creator>cakriwut</dc:creator>
				<category><![CDATA[SharePoint 2007]]></category>
		<category><![CDATA[Tips and Tricks]]></category>

		<guid isPermaLink="false">http://blog.libinuko.com/?p=291</guid>
		<description><![CDATA[English First time I understand about semantic URL is when I started to create my blog. According to the Wikipedia, &#8221;Semantic URL&#8221; refers to a URL which is of a form that is immediately and intuitively meaningful to non-expert. For example,  if we refer to a publishing pages in SharePoint , we might see http://&#60;someserver&#62;/&#60;somedepartment&#62;/pages/default.aspx , or [...] <a href="http://blog.libinuko.com/2009/09/01/semantic-urls-for-sharepoint/">[read more...]</a>]]></description>
			<content:encoded><![CDATA[<!-- google_ad_section_start --><!-- google_ad_section_start --><p>English</p>
<p>First time I understand about semantic URL is when I started to create my blog. According to the Wikipedia, &#8221;Semantic URL&#8221; refers to a URL which is of a form that is immediately and intuitively meaningful to non-expert. For example,  if we refer to a publishing pages in SharePoint , we might see <a href="http://&lt;someserver&gt;/&lt;somedepartment&gt;/pages/default.aspx">http://&lt;someserver&gt;/&lt;somedepartment&gt;/pages/default.aspx</a> , or <a href="http://www.mycompany.com/hrdepartment/pages/policy.aspx">http://www.mycompany.com/hrdepartment/pages/policy.aspx</a> which are not intuitive.</p>
<p>To make it easier for non SharePoint expert, one would love to remember semantic urls such as <a href="http://www.mycompany.com/hrdepartment/policy">http://www.mycompany.com/hrdepartment/policy</a> which then redirect to actual page under pages library in SharePoint.</p>
<p>Waldek has post excellent how-to , to create semantic URL in IIS-7 in his blog <a href="http://blog.mastykarz.nl/friendly-urls-sharepoint-site-4-steps-iis7-url-rewrite-module/">here</a>. However, I wonder if we could do the same (without create single line of code) in IIS-6.</p>
<!-- google_ad_section_end --><!-- google_ad_section_end -->]]></content:encoded>
			<wfw:commentRss>http://blog.libinuko.com/2009/09/01/semantic-urls-for-sharepoint/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Problem when installing WSP in Windows 7/Windows Server 2008</title>
		<link>http://blog.libinuko.com/2009/07/31/problem-when-installing-wsp-in-windows-7windows-server-2008/</link>
		<comments>http://blog.libinuko.com/2009/07/31/problem-when-installing-wsp-in-windows-7windows-server-2008/#comments</comments>
		<pubDate>Thu, 30 Jul 2009 16:09:00 +0000</pubDate>
		<dc:creator>cakriwut</dc:creator>
				<category><![CDATA[Office 12]]></category>
		<category><![CDATA[SharePoint 2007]]></category>
		<category><![CDATA[Tips and Tricks]]></category>
		<category><![CDATA[Fabulous 40]]></category>
		<category><![CDATA[SharePoint]]></category>
		<category><![CDATA[Windows 2008]]></category>
		<category><![CDATA[Windows 7]]></category>

		<guid isPermaLink="false">http://blog.libinuko.com/2009/07/31/problem-when-installing-wsp-in-windows-7windows-server-2008/</guid>
		<description><![CDATA[English I know that Microsoft has fabulous 40, a collection of 40 site templates in this link. I have played with all the templates, without any problem – but today when I tried to install it in my Windows 2008 server I was stuck in the wsp deployment. It seems that I couldn’t deploy the WSP. Then, [...] <a href="http://blog.libinuko.com/2009/07/31/problem-when-installing-wsp-in-windows-7windows-server-2008/">[read more...]</a>]]></description>
			<content:encoded><![CDATA[<!-- google_ad_section_start --><!-- google_ad_section_start --><p>English</p>
<p>I know that Microsoft has fabulous 40, a collection of 40 site templates in <a href="http://technet.microsoft.com/en-us/windowsserver/sharepoint/bb407286.aspx">this link</a>. I have played with all the templates, without any problem – but today when I tried to install it in my Windows 2008 server I was stuck in the wsp deployment. It seems that I couldn’t deploy the WSP.</p>
<p>Then, I remembered that Windows 2008 has increased security model which prevent accidental execution using privileged account. So, what I did to solve it – was just simply open the cmd console using privileged account. </p>
<p>Right click on “cmd.exe” and select “Run as Administrator”. And here we go, all wsp finally deployed to my MOSS installation.</p>
<!-- google_ad_section_end --><!-- google_ad_section_end -->]]></content:encoded>
			<wfw:commentRss>http://blog.libinuko.com/2009/07/31/problem-when-installing-wsp-in-windows-7windows-server-2008/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Why Should We Use List and/or ID in Query String?</title>
		<link>http://blog.libinuko.com/2008/09/07/why-should-we-use-list-andor-id-in-query-string/</link>
		<comments>http://blog.libinuko.com/2008/09/07/why-should-we-use-list-andor-id-in-query-string/#comments</comments>
		<pubDate>Sun, 07 Sep 2008 17:18:01 +0000</pubDate>
		<dc:creator>cakriwut</dc:creator>
				<category><![CDATA[Office 12]]></category>
		<category><![CDATA[SharePoint 2007]]></category>
		<category><![CDATA[Tips and Tricks]]></category>

		<guid isPermaLink="false">http://cakriwut.wordpress.com/2008/09/07/why-should-we-use-list-andor-id-in-query-string/</guid>
		<description><![CDATA[English (versi bahasa Indonesia) One of my team asked me why should we use &#8220;List={GUID}&#8221; and/or &#8220;ID={ItemID}&#8221; in query string? Can&#8217;t we use other query string name? My answer is yes you can use other query string name, but you will lost one of out of the box functionality. Why? Because when you keep with standar &#8220;List&#8221; [...] <a href="http://blog.libinuko.com/2008/09/07/why-should-we-use-list-andor-id-in-query-string/">[read more...]</a>]]></description>
			<content:encoded><![CDATA[<!-- google_ad_section_start --><!-- google_ad_section_start --><p><a id="English" name="English"><strong>English</strong></a> <em>(<a href="#Indonesia">versi bahasa Indonesia</a>)</em></p>
<p>One of my team asked me why should we use &ldquo;List={GUID}&rdquo; and/or &ldquo;ID={ItemID}&rdquo; in query string? Can&rsquo;t we use other query string name?</p>
<p>My answer is yes you can use other query string name, but you will lost one of out of the box functionality. Why? Because when you keep with standar &ldquo;List&rdquo; or &ldquo;ID&rdquo; query string then you don&rsquo;t need to parse it anymore &ndash;&nbsp;then&nbsp;SharePoint provides simple way to get SPList or SPListItem object using SPContext.</p>
<p>The query string&nbsp;&nbsp;<em>&ldquo;List={GUID}&rdquo;</em> has corresponden <strong><em>SPContext.List</em></strong> , and query string <em>&ldquo;List={GUID}&amp;ID={ItemID}&rdquo;</em> has the corresponden <strong><em>SPContext.Item</em></strong>. SPContext.List is SPList and SPContext.Item is SPListItem that can be obtained easily if you follow the convention.</p>
<p>So, check your code now.&nbsp;</p>
<p align="center">-o0o-</p>
<p>&nbsp;</p>
<p><a id="Indonesian" name="Indonesian"><strong>Indonesia</strong></a> <em>(<a href="#English">see English version</a>)</em></p>
<p>Ada pertanyaan dari salah satu tim saya kenapa kita harus menggunakan&nbsp;&ldquo;List={GUID}&rdquo;&nbsp;dan/atau &ldquo;ID={ItemID}&rdquo; di dalam query string? dan apakah kita tidak boleh menggunakan nama lain untuk query string?</p>
<p>Jawabannya adalah tentu saja kita dapat menggunakan nama lain, tetapi kita akan kehilangan salah satu fungsi yang sudah disediakan oleh SharePoint. Mengapa? </p>
<p>Karena jika kita tetap menggunakan standar &ldquo;List&rdquo; atau &ldquo;ID&rdquo; didalam query string, maka kita tidak perlu melakukan parsing parameter lagi. Dan untuk itu SharePoint telah menyediakan cara yang sangat mudah untuk memperoleh object SPList atau SPListItem dengan menggunakan SPContext. </p>
<p>Query string&nbsp;&nbsp;<em>&ldquo;List={GUID}&rdquo;</em> memungkinkan kita untuk memperoleh&nbsp;<strong><em>SPContext.List</em></strong> , dan query string&nbsp;<em>&ldquo;List={GUID}&amp;ID={ItemID}&rdquo;</em> memungkinkan kita untuk memperoleh&nbsp;<strong><em>SPContext.Item</em></strong>. SPContext.List adalah objek SPList dan SPContext.Item adalah objek SPListItem yang dengan mudah diperoleh hanya jika kita mengikuti konvensi tersebut.</p>
<p>Jadi, coba cek lagi apakah sudah mengikuti konvensi yang berlaku?</p>
<div class="bjtags">Tags:  <a rel="tag" href="http://technorati.com/tag/Microsoft+Office+SharePoint+Server+2007">Microsoft+Office+SharePoint+Server+2007</a>, <a rel="tag" href="http://technorati.com/tag/JQuery">JQuery</a>, <a rel="tag" href="http://technorati.com/tag/Tips">Tips</a></div>
<!-- google_ad_section_end --><!-- google_ad_section_end -->]]></content:encoded>
			<wfw:commentRss>http://blog.libinuko.com/2008/09/07/why-should-we-use-list-andor-id-in-query-string/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>What can cause &quot;Error page has been modified&quot;</title>
		<link>http://blog.libinuko.com/2008/09/07/what-can-cause-error-page-has-been-modified/</link>
		<comments>http://blog.libinuko.com/2008/09/07/what-can-cause-error-page-has-been-modified/#comments</comments>
		<pubDate>Sun, 07 Sep 2008 03:08:13 +0000</pubDate>
		<dc:creator>cakriwut</dc:creator>
				<category><![CDATA[Office 12]]></category>
		<category><![CDATA[SharePoint 2007]]></category>
		<category><![CDATA[Tips and Tricks]]></category>

		<guid isPermaLink="false">http://cakriwut.wordpress.com/2008/09/07/what-can-cause-error-page-has-been-modified/</guid>
		<description><![CDATA[English (versi bahasa Indonesia) For anyone who customize SharePoint using SharePoint Designer, I believe you&#8217;ve familiar with &#8220;Error page has been modified&#8221;. The reason is obvious, you open the page in browser while modifying it using SharePoint Designer. Then save the page withing SharePoint Designer and try to access any links in that page. So, just [...] <a href="http://blog.libinuko.com/2008/09/07/what-can-cause-error-page-has-been-modified/">[read more...]</a>]]></description>
			<content:encoded><![CDATA[<!-- google_ad_section_start --><!-- google_ad_section_start --><p><a id="English" name="English"><strong>English</strong></a> <em>(<a href="#Indonesia">versi bahasa Indonesia</a>)</em></p>
<p align="left">For anyone who customize SharePoint using SharePoint Designer, I believe you&rsquo;ve familiar with &ldquo;Error page has been modified&rdquo;. The reason is obvious, you open the page in browser while modifying it using SharePoint Designer. Then save the page withing SharePoint Designer and try to access any links in that page. So, just go back , refresh and the link will works again.</p>
<p align="left"><img alt="PageRefreshIssue" src="http://cakriwut.files.wordpress.com/2008/09/pagerefreshissue.jpg" border="0" /></p>
<p align="left">But how about in a case that this happened in production environment, where nobody edit the page behind the screen. What can cause &ldquo;Error page has been modified&rdquo; ?</p>
<p align="left">I have tried some resources from internet and check whether this can help me solve the problem:</p>
<p align="left">1. One or more feature is missing (<a href="http://forums.technet.microsoft.com/en-US/sharepointgeneral/thread/9a98188b-9dec-4d85-b8b7-47ba41e5271f/">http://forums.technet.microsoft.com/en-US/sharepointgeneral/thread/9a98188b-9dec-4d85-b8b7-47ba41e5271f/</a>)<br />2. Use of PublishingLayoutsPage instead of TemplateRedirectionPage (<a href="http://blogs.msdn.com/tejasr/archive/2008/06/19/resolution-moss-this-page-has-been-modified-since-you-opened-it-you-must-open-the-page-again.aspx">http://blogs.msdn.com/tejasr/archive/2008/06/19/resolution-moss-this-page-has-been-modified-since-you-opened-it-you-must-open-the-page-again.aspx</a>)<br />3. Use of NLB with affinity set to none (<a href="http://support.microsoft.com/kb/892348">http://support.microsoft.com/kb/892348</a>)<br />4. Some says that security enhancement in MOSS SP1 (<a href="http://www.microsoft.com/downloads/info.aspx?na=49&amp;p=1&amp;SrcDisplayLang=en&amp;SrcCategoryId=&amp;SrcFamilyId=ad59175c-ad6a-4027-8c2f-db25322f791b&amp;u=http%3a%2f%2fsupport.microsoft.com%2f%3fkbid%3d936984"><font color="#0033cc">KB936984</font></a>) /WSS SP1 (<a href="http://www.microsoft.com/downloads/info.aspx?na=49&amp;p=1&amp;SrcDisplayLang=en&amp;SrcCategoryId=&amp;SrcFamilyId=4191a531-a2e9-45e4-b71e-5b0b17108bd2&amp;u=http%3a%2f%2fsupport.microsoft.com%2f%3fkbid%3d936988"><font color="#0033cc">KB936988</font></a>)help to fix this problem.</p>
<p align="left">But unfortunatelly I come back with no luck, untill I read an article &ldquo;<a href="http://daniellarson.spaces.live.com/Blog/cns!D3543C5837291E93!1993.entry" target="_blank">The evil&rsquo;s of RunWithElevatedPrivilege</a>&nbsp;from Danniel Larson&rdquo;. I believe that since it drops down to the thread identity,&nbsp;then the current&nbsp;session in page is no longer valid with the links. Thus creating&nbsp;exception &ldquo;Error page has been modified&rdquo;.&nbsp; Then, I instructed my team to change all&nbsp;impersonation method to use </p>
<p><strong>SPUserToken sysToken = SPContext.Current.Site.SystemAccount.UserToken;</strong><br />using(var systemSite = new SPSite(SPContext.Current.Site.ID, <strong>sysToken</strong>))<br />{<br />&nbsp;&nbsp;&nbsp; using (var sysWeb = systemSite.OpenWeb(SPContext.Current.Web.ID))<br />&nbsp;&nbsp;&nbsp; {<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; // Perform elevated actions here<br />&nbsp;&nbsp;&nbsp; }<br />}</p>
<p align="left">instead of using old</p>
<p align="left"><strike>SPSecurity.RunWithElevatedPrivilege(delegate() <br />{<br />&nbsp;&nbsp;&nbsp;&nbsp; using(var systemSite = new SPSite(SPContext.Current.Web.Url))<br />&nbsp;&nbsp;&nbsp;&nbsp; {<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; using (var sysWeb = systemSite.OpenWeb(SPContext.Current.Web.ID))<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; {<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; // Perform elevated actions here<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; }</p>
<p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; }<br />});</strike></p>
<p align="left">&nbsp;</p>
<p align="left">That is&nbsp;and the production issues gone. So from now I would add one more entry to the list, <strong>Minimalize using&nbsp;RunWithElevatedPrivilege in your code, and use SPUserToken instead</strong>.</p>
<p align="center">-o0o-</p>
<p>&nbsp;</p>
<p><a id="Indonesian" name="Indonesian"><strong>Indonesia</strong></a> <em>(<a href="#English">see English version</a>)</em></p>
<p align="left">Bagi rekan-rekan yang sering bekerja dengan SharePoint Designer, pesan kesalahan berikut ini pasti sering dijumpai &ldquo;Error page has been modified&rdquo;. Penyebabnya jelas sekali, karena kita membuka halaman di browser sementara di balik layar dilakukan editing dengan menggunakan SharePoint Designer. Kemudian setelah melakukan editing dan menyimpan halaman di SharePoint designer, kita langsung mengklik salah satu link di halaman yang telah dibuka. Cara mengatasinya cukup mudah , kembali ke halaman semula , refresh dan link-link akan bisa diakses seperti semula. </p>
<p align="left"><img alt="PageRefreshIssue" src="http://cakriwut.files.wordpress.com/2008/09/pagerefreshissue.jpg" border="0" /></p>
<p align="left">Tetapi bagaimana dengan kejadian yang muncul di server produksi? Di server produksi, tidak seorang pun mengedit halaman dengan SharePoint Designer. Jadi apa yang bisa menyebabkan&nbsp;&ldquo;Error page has been modified&rdquo; ?</p>
<p align="left">Seperti biasa, saya mencari-cari informasi di internet dan menemukan beberapa hal dibawah yang mungkin dapat membantu:</p>
<p align="left">1. Ada fitur yang ada di datastore tapi hilang secara fisik&nbsp;(<a href="http://forums.technet.microsoft.com/en-US/sharepointgeneral/thread/9a98188b-9dec-4d85-b8b7-47ba41e5271f/">http://forums.technet.microsoft.com/en-US/sharepointgeneral/thread/9a98188b-9dec-4d85-b8b7-47ba41e5271f/</a>)<br />2. Tidak menggunakan TemplateRedirectionPage tapi&nbsp;PublishingLayoutsPage (<a href="http://blogs.msdn.com/tejasr/archive/2008/06/19/resolution-moss-this-page-has-been-modified-since-you-opened-it-you-must-open-the-page-again.aspx">http://blogs.msdn.com/tejasr/archive/2008/06/19/resolution-moss-this-page-has-been-modified-since-you-opened-it-you-must-open-the-page-again.aspx</a>)<br />3. Menggunakan NLB dengan affinity diatur none (<a href="http://support.microsoft.com/kb/892348">http://support.microsoft.com/kb/892348</a>)<br />4. Beberapa mengatakan bahwa perbaikan prosedur keamanan di&nbsp;MOSS SP1 (<a href="http://www.microsoft.com/downloads/info.aspx?na=49&amp;p=1&amp;SrcDisplayLang=en&amp;SrcCategoryId=&amp;SrcFamilyId=ad59175c-ad6a-4027-8c2f-db25322f791b&amp;u=http%3a%2f%2fsupport.microsoft.com%2f%3fkbid%3d936984"><font color="#0033cc">KB936984</font></a>) /WSS SP1 (<a href="http://www.microsoft.com/downloads/info.aspx?na=49&amp;p=1&amp;SrcDisplayLang=en&amp;SrcCategoryId=&amp;SrcFamilyId=4191a531-a2e9-45e4-b71e-5b0b17108bd2&amp;u=http%3a%2f%2fsupport.microsoft.com%2f%3fkbid%3d936988"><font color="#0033cc">KB936988</font></a>) akan membantu menyelesaikan masalah.</p>
<p align="left">Sayangnya semua hal diatas sudah terpenuhi, tetapi tetap saja masalah tersebut muncul. Sampai akhirnya saya membaca artikel&nbsp;tentang RunWithElevatedPrivilege&nbsp;- &ldquo;<a href="http://daniellarson.spaces.live.com/Blog/cns!D3543C5837291E93!1993.entry" target="_blank">The evil&rsquo;s of RunWithElevatedPrivilege</a>&nbsp;dari Danniel Larson&rdquo;. Dari penjelasan yang ada, saya menduga bahwa penyebabnya adalah&nbsp;karena prosedur tersebut mengganti identitas thread dan menjalankan di thread lain, sehingga halaman yang sedang dibuka akan kehilangan &ldquo;hubungan&rdquo; dengan server (mirip dengan pada saat kita menyimpan dengan menggunakan SharePoint Designer). Akibatnya, link-link yang ada di halaman sudah tidak valid lagi dan muncul &ldquo;Error page has been modified&rdquo;.&nbsp; <br />Berbekal dari dugaan itu, saya kemudian meminta rekan-rekan di team untuk mengganti cara impersonation untuk mengugnakan SPUserToken&nbsp; </p>
<p><strong>SPUserToken sysToken = SPContext.Current.Site.SystemAccount.UserToken;</strong><br />using(var systemSite = new SPSite(SPContext.Current.Site.ID, <strong>sysToken</strong>))<br />{<br />&nbsp;&nbsp;&nbsp; using (var sysWeb = systemSite.OpenWeb(SPContext.Current.Web.ID))<br />&nbsp;&nbsp;&nbsp; {<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; // Perform elevated actions here<br />&nbsp;&nbsp;&nbsp; }<br />}</p>
<p align="left">dan menghapus RunWithElevatedPrivilege</p>
<p align="left"><strike>SPSecurity.RunWithElevatedPrivilege(delegate() <br />{<br />&nbsp;&nbsp;&nbsp;&nbsp; using(var systemSite = new SPSite(SPContext.Current.Web.Url))<br />&nbsp;&nbsp;&nbsp;&nbsp; {<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; using (var sysWeb = systemSite.OpenWeb(SPContext.Current.Web.ID))<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; {<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; // Perform elevated actions here<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; }</p>
<p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; }<br />});</strike></p>
<p align="left">&nbsp;</p>
<p align="left">Dan seperti yang diharapkan, masalah di production akhirnya teratasi. Jadi mulai dari saat ini saya akan menambahkan satu lagi di dalam daftar , <strong>Kurangi penggunaan RunWithElevatedPrivilege dan sedapat mungkin gunakan SPUserToken</strong>.&nbsp;&nbsp;</p>
<div class="bjtags">Tags:  <a rel="tag" href="http://technorati.com/tag/Microsoft+Office+SharePoint+Server+2007">Microsoft+Office+SharePoint+Server+2007</a>, <a rel="tag" href="http://technorati.com/tag/Tips">Tips</a></div>
<!-- google_ad_section_end --><!-- google_ad_section_end -->]]></content:encoded>
			<wfw:commentRss>http://blog.libinuko.com/2008/09/07/what-can-cause-error-page-has-been-modified/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Creating Weather Webpart using SharePoint Designer</title>
		<link>http://blog.libinuko.com/2008/09/06/creating-weather-webpart-using-sharepoint-designer/</link>
		<comments>http://blog.libinuko.com/2008/09/06/creating-weather-webpart-using-sharepoint-designer/#comments</comments>
		<pubDate>Sat, 06 Sep 2008 16:24:07 +0000</pubDate>
		<dc:creator>cakriwut</dc:creator>
				<category><![CDATA[Office 12]]></category>
		<category><![CDATA[SharePoint 2007]]></category>
		<category><![CDATA[Tips and Tricks]]></category>

		<guid isPermaLink="false">http://cakriwut.wordpress.com/2008/09/06/creating-weather-webpart-using-sharepoint-designer/</guid>
		<description><![CDATA[English (versi bahasa Indonesia) Weather webpart is one of most popular wepart to place in homepage. Many available resources out-there in internet using C# and webservices. But instead of create weather webpart using Visual Studio I will show you how create it using SharePoint Designer. The process is pretty simple, 1. You need to create a new [...] <a href="http://blog.libinuko.com/2008/09/06/creating-weather-webpart-using-sharepoint-designer/">[read more...]</a>]]></description>
			<content:encoded><![CDATA[<!-- google_ad_section_start --><!-- google_ad_section_start --><p><a id="English" name="English"><strong>English</strong></a> <em>(<a href="#Indonesia">versi bahasa Indonesia</a>)</em></p>
<p>Weather webpart is one of most popular wepart to place in homepage. Many available resources out-there in internet using C# and webservices. But instead of create weather webpart using Visual Studio I will show you how create it using SharePoint Designer.</p>
<p><img alt="HomeShow" src="http://cakriwut.files.wordpress.com/2008/09/homeshow-small1.jpg" border="0" /></p>
<p>The process is pretty simple, <br />1. You need to create a new page in Sharepoint as working canvas. <br />2. In that working canvas, drop webpart zone and dataview webpart. <br />3. Find appropriate weather datasource and format dataview webpart.<br />4. Export the new formatted webpart and delete working canvas.<br />5. Distribute / use the webpart. Package in solution file if necessary.</p>
<p>Initially open SharePoint site using SharePoint Designer. To prepare a page for working canvas, just create a new aspx page.</p>
<p><img alt="Bmg0" src="http://cakriwut.files.wordpress.com/2008/09/bmg0.jpg" border="0" /></p>
<p>On the new page, attach default master page by using attach master page under format menu.</p>
<p><img alt="Bmg01" src="http://cakriwut.files.wordpress.com/2008/09/bmg01.jpg" border="0" /></p>
<p>On the PlaceHolderMain in the page, click Create Custom Content to detach this section from master page.</p>
<p>&nbsp;<img alt="CustomPlace" src="http://cakriwut.files.wordpress.com/2008/09/customplace.jpg" border="0" /></p>
<p>Then in the new custom content area, insert &ldquo;Web Part Zone&rdquo; and &ldquo;Data View&rdquo;&nbsp; component from SharePoint Controls.</p>
<p><img alt="InsertDataView" src="http://cakriwut.files.wordpress.com/2008/09/insertdataview.jpg" border="0" /></p>
<p>Next, we need the reference to get weather information from. SharePoint designer provides wide range of data source type, starting from SharePoint List, SharePoint Libraries, Database Connection, XML Files, Server-side scripts, XML Web Services and Linked sources. Since my country has &ldquo;BMG&rdquo; which announce weather data officially, in this case I will use XML files as my datasource.</p>
<p><img alt="XmlData" src="http://cakriwut.files.wordpress.com/2008/09/xmldata.jpg" border="0" /></p>
<p>For me, the location of weather data is <a href="http://www.bmg.go.id/dataxml/cuaca_indo_1.xml">http://www.bmg.go.id/dataxml/cuaca_indo_1.xml</a>&nbsp;or <a href="http://www.bmg.go.id/dataxml/cuaca_indo_2.xml">http://www.bmg.go.id/dataxml/cuaca_indo_2.xml</a>. Saving that location into XML data files, give me a new datasource to working with.</p>
<p><img alt="Bmg3" src="http://cakriwut.files.wordpress.com/2008/09/bmg3.jpg" border="0" /></p>
<p>Then click Show Data on the new datasource.</p>
<p><img alt="Bmg4" src="http://cakriwut.files.wordpress.com/2008/09/bmg4.jpg" border="0" /></p>
<p>In the data source detail, we can select appropriate fields to show. In this case I select &ldquo;Kota&rdquo;, &ldquo;Cuaca&rdquo;, &ldquo;SuhuMin&rdquo; and &ldquo;SuhuMax&rdquo;. And then click Multiple Item View.</p>
<p><img alt="Bmg5" src="http://cakriwut.files.wordpress.com/2008/09/bmg5.jpg" border="0" /></p>
<p>By default you will get a table from XML datasource. Like the one bellow.</p>
<p><img alt="Bmg6" src="http://cakriwut.files.wordpress.com/2008/09/bmg6.jpg" border="0" /></p>
<p>Since I only want few big cities in Indonesia, then I click filter on the Common Data View Tasks. </p>
<p><img alt="Filter" src="http://cakriwut.files.wordpress.com/2008/09/filter.jpg" border="0" /></p>
<p>Next, is to insert icons to describe weather conditions such as raining, clear, clouds etc. To select appropriate icon, we can test on the &ldquo;Cuaca&rdquo; field and choose correct icon ( inspect line number 108 &ndash; 118 in the figure below). I also make the table into single column by moving the field content into leftmost column and deleting other column in original table. </p>
<p><img alt="Bmg9" src="http://cakriwut.files.wordpress.com/2008/09/bmg9.jpg" border="0" /></p>
<p>Since I transform to single column, then I don&rsquo;t need to keep the header anymore. So I just change the header into long cell title.</p>
<p><img alt="Bmg10" src="http://cakriwut.files.wordpress.com/2008/09/bmg10.jpg" border="0" /></p>
<p>Saving the page and opening in browser, allows me to export the webpart and import back in the future.</p>
<p><img alt="Export" src="http://cakriwut.files.wordpress.com/2008/09/export.jpg" border="0" /></p>
<p align="left">Thats for now, just couple minutes to create weather webpart. For you who curious with the webpart, please download it from the attachment (<a href="http://cakriwut.files.wordpress.com/2008/09/export1.jpg" target="_blank"> BMGLike.webpart (17 KB)</a>&nbsp;).</p>
<p align="center">-o0o-</p>
<p>&nbsp;</p>
<p><a id="Indonesian" name="Indonesian"><strong>Indonesia</strong></a> <em>(<a href="#English">see English version</a>)</em></p>
<p>Webpart cuaca merupakan salah satu webpart populer yang sering diminta oleh client. Di internet bisa kita temukan webpart cuaca yang berbayar maupun gratis yang dibuat dengan C# dan web services. Di artikel ini, alih-alih membuat webpart dengan menggunakan Visual Studio, saya akan mendemonstrasikan pembuatannya dengan menggunakan SharePoint Designer.</p>
<p><img alt="HomeShow" src="http://cakriwut.files.wordpress.com/2008/09/homeshow-small1.jpg" border="0" /></p>
<p>Prosedurnya cukup sederhana,&nbsp; <br />1. Buat halaman aspx di SharePoint sebagai tempat eksperimen. <br />2. Tambahkan webpart zone dan dataview webpart di halaman kerja tersebut. <br />3. Tambahkan sumber data cuaca yang sesuai dan format dataview webpart agar tampil cantik.<br />4. Export webpart yang baru ke dalam 1 file dan hapus halaman kerja.<br />5. Distribusikan webpart dan masukkan ke dalam solution package jika perlu.</p>
<p>Untuk menyiapkan halaman kerja, buka SharePoint site dengan menggunakan SharePoint Designer. Dari menu file, buat sebuah halaman ASPX baru.</p>
<p><img alt="Bmg0" src="http://cakriwut.files.wordpress.com/2008/09/bmg0.jpg" border="0" /></p>
<p>Di dalama yang baru terbentuk, buat referensi ke master page dengan menggunakan menu attach master page.</p>
<p><img alt="Bmg01" src="http://cakriwut.files.wordpress.com/2008/09/bmg01.jpg" border="0" /></p>
<p>Setelah di-tempel dengan master page, maka secara default design dan isi halaman akan mengikuti master page. Klik Create Custom Content di bagian&nbsp;PlaceHolderMain untuk memulai membuat kustomisasi di&nbsp;halaman itu.</p>
<p>&nbsp;<img alt="CustomPlace" src="http://cakriwut.files.wordpress.com/2008/09/customplace.jpg" border="0" /></p>
<p>Di area custom content yang baru terbentuk, tambahkan &ldquo;Web Part Zone&rdquo; dan &ldquo;Data View&rdquo; webpart didalamnya. </p>
<p><img alt="InsertDataView" src="http://cakriwut.files.wordpress.com/2008/09/insertdataview.jpg" border="0" /></p>
<p>Selanjutnya yang kita butuhkan adalah sumber data. SharePoint Designer memberikan kemudahan untuk menggunakan beberapa jenis sumber data misalnya, SharePoint List, SharePoint Libraries, Database Connection, XML Files, Server-side scripts, XML Web Services dan Linked sources. Disini saya akan menggunakan data yang disediakan secara cuma-cuma oleh <a href="http://www.bmg.go.id/" target="_blank">BMG</a> , berupa XML file. Kita dapat langsung menggunakan referensi berupa URL ke XML yang bersangkutan.</p>
<p><img alt="XmlData" src="http://cakriwut.files.wordpress.com/2008/09/xmldata.jpg" border="0" /></p>
<p>Lokasi XML data yang disediakan oleh BMG adalah&nbsp;di <a href="http://www.bmg.go.id/dataxml/cuaca_indo_1.xml">http://www.bmg.go.id/dataxml/cuaca_indo_1.xml</a>&nbsp;atau <a href="http://www.bmg.go.id/dataxml/cuaca_indo_2.xml"><font color="#000000">http</font>://www.bmg.go.id/dataxml/cuaca_indo_2.xml</a>. Simpan informasi lokasi tersebut sebagai sumber data XML yang baru.</p>
<p><img alt="Bmg3" src="http://cakriwut.files.wordpress.com/2008/09/bmg3.jpg" border="0" /></p>
<p>Kemudian klik &ldquo;Show Data&rdquo; pada sumber data XML yang terbentuk. </p>
<p><img alt="Bmg4" src="http://cakriwut.files.wordpress.com/2008/09/bmg4.jpg" border="0" /></p>
<p>Didalam data source detail, kita dapat menentukan field-field yang akan ditampilkan. Disini kita ambil &ldquo;Kota&rdquo;, &ldquo;Cuaca&rdquo;, &ldquo;SuhuMin&rdquo; dan &ldquo;SuhuMax&rdquo;. Kemudian klik&nbsp;Multiple Item View.</p>
<p><img alt="Bmg5" src="http://cakriwut.files.wordpress.com/2008/09/bmg5.jpg" border="0" /></p>
<p>Secara otomatis, kita akan memperoleh tabel yang diperoleh dari field-field yang ditentukan tadi, seperti dibawah. </p>
<p><img alt="Bmg6" src="http://cakriwut.files.wordpress.com/2008/09/bmg6.jpg" border="0" /></p>
<p>Kita juga dapat memfilter agar menampilkan beberapa kota besar di Indonesia saja. Caranya, dengan menentukan filter dari properti data view webpart di&nbsp; Common Data View Tasks. </p>
<p><img alt="Filter" src="http://cakriwut.files.wordpress.com/2008/09/filter.jpg" border="0" /></p>
<p>Agar tampilannya menjadi cantik, kita bisa menambahkan icon untuk hujan, cerah, berawan dsb. Untuk mendapatkan icon yang sesuai, maka kita gunakan xsl:choose dan mengetes nilai field Cuaca (perhatikan baris 108 &ndash; 118 pada gambar dibawah).&nbsp;Saya juga mengubah tabel menjadi 1 kolom, dengan memindahkan isi field lain ke kolom paling kiri dan menghapus kolom yang tidak digunakan.&nbsp; </p>
<p><img alt="Bmg9" src="http://cakriwut.files.wordpress.com/2008/09/bmg9.jpg" border="0" /></p>
<p>Judul tabel juga diubah dengan mengubah table headernya, dan menyesuaikan dengan format 1 kolom.</p>
<p><img alt="Bmg10" src="http://cakriwut.files.wordpress.com/2008/09/bmg10.jpg" border="0" /></p>
<p>Simpan halaman yang sudah selesai diedit dan kemudian buka di browser. Hasilnya adalah halaman dengan weather webpart yang baru, tugas kita berikutnya adalah mengeksport webpart tersebut dan siap untuk didistribusikan. </p>
<p><img alt="Export" src="http://cakriwut.files.wordpress.com/2008/09/export.jpg" border="0" /></p>
<p align="left">Akhirnya, mudah-mudahan step-by-step diatas memberikan ide untuk rekan-rekan semua. Untuk yang tidak mau report, berikut ini adalah webpart yang sudah jadi (<a href="http://cakriwut.files.wordpress.com/2008/09/export1.jpg" target="_blank"> BMGLike.webpart (17 KB)</a>&nbsp;)</p>
<p>&nbsp;</p>
<div class="bjtags">Tags:  <a rel="tag" href="http://technorati.com/tag/Microsoft+Office+SharePoint+Server+2007">Microsoft+Office+SharePoint+Server+2007</a>, <a rel="tag" href="http://technorati.com/tag/JQuery">JQuery</a>, <a rel="tag" href="http://technorati.com/tag/Tips">Tips</a></div>
<!-- google_ad_section_end --><!-- google_ad_section_end -->]]></content:encoded>
			<wfw:commentRss>http://blog.libinuko.com/2008/09/06/creating-weather-webpart-using-sharepoint-designer/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>MOSS 2007 : Howto override page redirection Url</title>
		<link>http://blog.libinuko.com/2008/01/28/moss-2007-howto-override-page-redirection-url/</link>
		<comments>http://blog.libinuko.com/2008/01/28/moss-2007-howto-override-page-redirection-url/#comments</comments>
		<pubDate>Mon, 28 Jan 2008 09:28:08 +0000</pubDate>
		<dc:creator>cakriwut</dc:creator>
				<category><![CDATA[Office 12]]></category>
		<category><![CDATA[SharePoint 2007]]></category>
		<category><![CDATA[Tips and Tricks]]></category>

		<guid isPermaLink="false">http://cakriwut.wordpress.com/2008/01/28/moss-2007-howto-override-page-redirection-url/</guid>
		<description><![CDATA[English (versi bahasa Indonesia) I had a question from one of my friend &#8220;How can I override page redirection Url?&#8221;. He was using inline C# code which is not my preference &#8211; because it adds additional page-parser process and introduce new security consideration.&#160;His code also diminish upload attachment function in the original form. My first suggestion [...] <a href="http://blog.libinuko.com/2008/01/28/moss-2007-howto-override-page-redirection-url/">[read more...]</a>]]></description>
			<content:encoded><![CDATA[<!-- google_ad_section_start --><!-- google_ad_section_start --><p><a id="English" name="English"><strong>English</strong></a> <em>(<a href="#Indonesia">versi bahasa Indonesia</a>)</em></p>
<p>I had a question from one of my friend &ldquo;How can I override page redirection Url?&rdquo;. He was using inline C# code which is not my preference &ndash; because it adds additional page-parser process and introduce new security consideration.&nbsp;His code also diminish upload attachment function in the original form. <br />My first suggestion was to create a new links that construct custom &ldquo;Source=&rdquo; url to the original form &ndash; but this is not what he looks for. He doesn&rsquo;t want to replace the &ldquo;New Item&rdquo; menu with a link.</p>
<p>So in this case, he wants to&nbsp;click &ldquo;New Item&rdquo; menu&nbsp;in a&nbsp;list and redirected to custom page after sucessfull submission or cancelation.</p>
<p align="center"><img alt="ItemRedirect1" src="http://cakriwut.files.wordpress.com/2008/01/itemredirect1.jpg" border="0" /></p>
<p>Technically, after we click &ldquo;New Item&rdquo; we&rsquo;ll be redirected to &ldquo;..\NewForm.aspx?RootFolder=&hellip;.&amp;Source=&hellip;.&rdquo;. And guess what &ndash; the &ldquo;Source&rdquo; is the location after&nbsp;we submit &ldquo;OK&rdquo; or press &ldquo;Cancel&rdquo;.</p>
<p><u>So &ndash; how can we change the &ldquo;Source&rdquo; url? Use Javascript !</u></p>
<p>Open &ldquo;NewForm.aspx&rdquo; using SharePoint Designer and find &ldquo;PlaceHolderMain&rdquo; content Id. Place following custom javascript just after tag definition.</p>
<p align="left"><strong>function PreSaveAction() <br />{<br />&nbsp;&nbsp;&nbsp;&nbsp; // TODO : create some actions here<br />&nbsp;&nbsp;&nbsp;&nbsp; return true;<br />}</strong></p>
<p align="center"><img alt="ItemRedirect2" src="http://cakriwut.files.wordpress.com/2008/01/itemredirect2.jpg" border="0" /></p>
<p><u>Remember that the name of the function MUST BE <strong>PreSaveAction</strong> and it must return <strong>true</strong>.</u> </p>
<p>Next, in the&nbsp;function I add operation to&nbsp;replace original action url with the new construction &ndash; I just need to change the text after &ldquo;Source&rdquo;. What you need to do, is change newSrcUrl variable to match with the custom page in your location.&nbsp; </p>
<p align="center">&ndash;&ndash;o0o&ndash;&ndash; </p>
<p>&nbsp;</p>
<p><a id="Indonesian" name="Indonesian"><strong>Indonesia</strong></a> <em>(<a href="#English">see English version</a>)</em></p>
<p>Baru-baru ini saya mendapat pertanyaan dari seorang kawan tentang &ldquo;Bagaimana cara mengganti halaman redirect? &ldquo;. Menurutnya, dia sudah menggunakan inline C# namun akibatnya dia tidak dapat memanfaatkan upload attachment yang ada di form asli. Saya sendiri kurang sependapat dengan penggunaan inline C# itu, sebab inline C# akan menambah beban kerja server untuk memparsing dan juga membuka resiko keamanan yang baru. </p>
<p>Anjuran saya adalah dengan menggunakan link yang sudah diubah sedemikian rupa sehingga &ldquo;Source&rdquo; url disesuaikan dengan apa yang diinginkan. Tapi saran tersebut tidak sesuai dengan keinginannya, karena hal ini berarti mengganti menu &ldquo;New Item&rdquo; dengan menggunakan link. </p>
<p>Jadi, yang dia inginkan adalah tetap menggunakan menu &ldquo;New Item&rdquo; tetapi dapat mengganti halaman yang dibuka setelah submit atau cancel. </p>
<p align="center"><img alt="ItemRedirect1" src="http://cakriwut.files.wordpress.com/2008/01/itemredirect1.jpg" border="0" /></p>
<p>Pada dasarnya, setelah kita mengklik &ldquo;New Item&rdquo; , maka kita akan diarahkan pada alamat&nbsp;&ldquo;..\NewForm.aspx?RootFolder=&hellip;.&amp;Source=&hellip;.&rdquo;.&nbsp;Dan &ldquo;Source&rdquo; adalah lokasi yang akan dibuka ketika kita mensubmit form dengan mengklik &ldquo;OK&rdquo; atau menekan &ldquo;Cancel&rdquo;. </p>
<p><u>Jadi bagaimana kita dapat mengganti &ldquo;Source&rdquo; url? Gunakan Javascript !</u></p>
<p>Buka&nbsp;&ldquo;NewForm.aspx&rdquo; dengan menggunakan SharePoint Designer, dan cari tag id yang bertuliskan&nbsp;&ldquo;PlaceHolderMain&rdquo;. Kemudian tambahkan javascript berikut setelah&nbsp;tag tersebut,.</p>
<p align="left"><strong>function PreSaveAction() <br />{<br />&nbsp;&nbsp;&nbsp;&nbsp; // TODO : create some actions here<br />&nbsp;&nbsp;&nbsp;&nbsp; return true;<br />}</strong></p>
<p align="center"><img alt="ItemRedirect2" src="http://cakriwut.files.wordpress.com/2008/01/itemredirect2.jpg" border="0" /></p>
<p><u>HATI-HATI, bahwa nama fungsi javascript tersebut HARUS&nbsp; <strong>PreSaveAction</strong> dan nilai kembaliannya&nbsp;HARUS <strong>true</strong>.</u> </p>
<p>Didalam fungsi javascript yang baru, kita hanya perlu menambahkan operasi untuk mengganti action url yang lama dengan action url baru. Di action url baru inilah kita definisikan &ldquo;Source&rdquo; url agar merujuk pada halaman web custom yang kita inginkan. Dari gambar diatas, Anda hanya perlu mengganti variable newSrcUrl agar sesuai dengan yang diinginkan &ndash; atau kalau perlu merubah operasi untuk mengganti &ldquo;Source&rdquo; url agar lebih robust.</p>
<p align="center">&ndash;&ndash;o0o&ndash;&ndash; </p>
<div class="bjtags">Tags:  <a rel="tag" href="http://technorati.com/tag/MOSS+2007">MOSS+2007</a>, <a rel="tag" href="http://technorati.com/tag/Tips+and+Trick+MOSS+2007">Tips+and+Trick+MOSS+2007</a>, <a rel="tag" href="http://technorati.com/tag/Javascript">Javascript</a></div>
<!-- google_ad_section_end --><!-- google_ad_section_end -->]]></content:encoded>
			<wfw:commentRss>http://blog.libinuko.com/2008/01/28/moss-2007-howto-override-page-redirection-url/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
