<?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:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
	>

<channel>
	<title>YBBEST</title>
	<atom:link href="http://ybbest.wordpress.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://ybbest.wordpress.com</link>
	<description>This blog will cover SharePoint Development as well as general .Net development</description>
	<lastBuildDate>Sat, 28 Jan 2012 22:31:42 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
<cloud domain='ybbest.wordpress.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://s2.wp.com/i/buttonw-com.png</url>
		<title>YBBEST</title>
		<link>http://ybbest.wordpress.com</link>
	</image>
	<atom:link rel="search" type="application/opensearchdescription+xml" href="http://ybbest.wordpress.com/osd.xml" title="YBBEST" />
	<atom:link rel='hub' href='http://ybbest.wordpress.com/?pushpress=hub'/>
		<item>
		<title>How to create initiation form for SharePoint2010 workflow part1</title>
		<link>http://ybbest.wordpress.com/2012/01/27/how-to-create-initiation-form-for-sharepoint2010-workflow-part1/</link>
		<comments>http://ybbest.wordpress.com/2012/01/27/how-to-create-initiation-form-for-sharepoint2010-workflow-part1/#comments</comments>
		<pubDate>Fri, 27 Jan 2012 02:07:11 +0000</pubDate>
		<dc:creator>ybbest</dc:creator>
				<category><![CDATA[SharePoint 2010]]></category>
		<category><![CDATA[Workflow]]></category>
		<category><![CDATA[SharePoint2010]]></category>
		<category><![CDATA[WF]]></category>

		<guid isPermaLink="false">https://ybbest.wordpress.com/?p=1462</guid>
		<description><![CDATA[In the last post, I showed you how to create a simple workflow using Visual studio. In this post, I will show you how to create a custom initiation form. The initiation form is the page that is presented each time that a person starts a workflow manually. The default initiation form is very simple, [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=ybbest.wordpress.com&amp;blog=2521007&amp;post=1462&amp;subd=ybbest&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>In the last post, I showed you how to create a simple workflow using Visual studio. In this post, I will show you how to create a custom <a href="http://office.microsoft.com/en-us/sharepoint-designer-help/create-a-workflow-initiation-form-HA010209778.aspx">initiation form</a>. The initiation form is the page that is presented each time that a person starts a workflow manually. The default initiation form is very simple, including only the name of the workflow and two buttons Start and Cancel. Here are the steps to create the custom initiation form.</p>
<p>1. Create the simple workflow just as I did in the last post and then add the Workflow Initiation form from visual studio</p>
<p><img src="http://ybbest.files.wordpress.com/2012/01/012712_0206_howtocreate1.png?w=450" alt="" /></p>
<p>2. Add the code that is highlighted in yellow in the form mark-up page.</p>
<p><img src="http://ybbest.files.wordpress.com/2012/01/012712_0206_howtocreate2.png?w=450" alt="" /></p>
<p>3.Modify the return statement for the GetInitiationData method as shown below.</p>
<pre>private string GetInitiationData()
 {
return CommentTexbox.Text;
 }</pre>
<p>&nbsp;</p>
<p>4. Open you workflow designer pane, and open the log-to-history task properties.</p>
<p><img src="http://ybbest.files.wordpress.com/2012/01/012712_0206_howtocreate4.png?w=450" alt="" /></p>
<p>5. Instead of typing &#8220;workflow hello world&#8221; in the History Description, you set it to InitiationData as show below</p>
<p><img src="http://ybbest.files.wordpress.com/2012/01/012712_0206_howtocreate5.png?w=450" alt="" /></p>
<p>6. Deploy your solution and manually trigger the workflow by open the contextual menu<em>(screenshot a)</em> of the item&#8211;&gt;Workflows&#8211;&gt;Click the YBBEST.SharePointWorkflow.Demo – CustomWorkflow&#8211;&gt;you will see your initiation form as below<em> (screenshot b)</em></p>
<p><img src="http://ybbest.files.wordpress.com/2012/01/012712_0206_howtocreate6.png?w=450" alt="" /><em>(Screenshot a)</em></p>
<p><img src="http://ybbest.files.wordpress.com/2012/01/012712_0206_howtocreate7.png?w=450" alt="" /><em>(Screenshot b)<br />
</em></p>
<p>7. Type &#8220;Custom initiation form&#8221; in the comment textbox and start the workflow, after the workflow complete you will see the Custom initiation form in the workflow history.</p>
<p><img src="http://ybbest.files.wordpress.com/2012/01/012712_0206_howtocreate8.png?w=450" alt="" /><span style="color:#17365d;font-size:16pt;"><strong><br />
</strong></span></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/ybbest.wordpress.com/1462/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/ybbest.wordpress.com/1462/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/ybbest.wordpress.com/1462/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/ybbest.wordpress.com/1462/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/ybbest.wordpress.com/1462/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/ybbest.wordpress.com/1462/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/ybbest.wordpress.com/1462/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/ybbest.wordpress.com/1462/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/ybbest.wordpress.com/1462/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/ybbest.wordpress.com/1462/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/ybbest.wordpress.com/1462/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/ybbest.wordpress.com/1462/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/ybbest.wordpress.com/1462/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/ybbest.wordpress.com/1462/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=ybbest.wordpress.com&amp;blog=2521007&amp;post=1462&amp;subd=ybbest&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://ybbest.wordpress.com/2012/01/27/how-to-create-initiation-form-for-sharepoint2010-workflow-part1/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/9b67a58404adeecc0f1ef1a6d6b5ca57?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">ybbest</media:title>
		</media:content>

		<media:content url="http://ybbest.files.wordpress.com/2012/01/012712_0206_howtocreate1.png" medium="image" />

		<media:content url="http://ybbest.files.wordpress.com/2012/01/012712_0206_howtocreate2.png" medium="image" />

		<media:content url="http://ybbest.files.wordpress.com/2012/01/012712_0206_howtocreate4.png" medium="image" />

		<media:content url="http://ybbest.files.wordpress.com/2012/01/012712_0206_howtocreate5.png" medium="image" />

		<media:content url="http://ybbest.files.wordpress.com/2012/01/012712_0206_howtocreate6.png" medium="image" />

		<media:content url="http://ybbest.files.wordpress.com/2012/01/012712_0206_howtocreate7.png" medium="image" />

		<media:content url="http://ybbest.files.wordpress.com/2012/01/012712_0206_howtocreate8.png" medium="image" />
	</item>
		<item>
		<title>How to create workflow in SharePoint2010 using visual studio</title>
		<link>http://ybbest.wordpress.com/2012/01/27/how-to-create-workflow-in-sharepoint2010-using-visual-studio/</link>
		<comments>http://ybbest.wordpress.com/2012/01/27/how-to-create-workflow-in-sharepoint2010-using-visual-studio/#comments</comments>
		<pubDate>Fri, 27 Jan 2012 00:54:24 +0000</pubDate>
		<dc:creator>ybbest</dc:creator>
				<category><![CDATA[SharePoint 2010]]></category>
		<category><![CDATA[Workflow]]></category>
		<category><![CDATA[SharePoint2010]]></category>
		<category><![CDATA[WF]]></category>

		<guid isPermaLink="false">https://ybbest.wordpress.com/?p=1437</guid>
		<description><![CDATA[In this post, I will show you how to create a simple sequential workflow using visual studio. You can download a complete solution here. 1. Open visual studio and under SharePoint2010 project template select Sequential Workflow 2. Type your site collection Url and client Next, note that you can only deploy this workflow as farm [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=ybbest.wordpress.com&amp;blog=2521007&amp;post=1437&amp;subd=ybbest&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>In this post, I will show you how to create a simple sequential workflow using visual studio. You can download a complete solution <a href="http://www.box.com/s/pem5l6sb2ibm9a526qmb" target="_blank">here</a>.</p>
<p>1. Open visual studio and under SharePoint2010 project template select Sequential Workflow</p>
<p><img src="http://ybbest.files.wordpress.com/2012/01/012712_0051_howtocreate1.png?w=450" alt="" /></p>
<p>2. Type your site collection Url and client Next, note that you can only deploy this workflow as farm solution.</p>
<p><img src="http://ybbest.files.wordpress.com/2012/01/012712_0051_howtocreate2.png?w=450" alt="" /></p>
<p>3. Give a proper name for you workflow.</p>
<p><img src="http://ybbest.files.wordpress.com/2012/01/012712_0051_howtocreate3.png?w=450" alt="" /></p>
<p>4.Associate this workflow with a list or library, in my case I associate it with a custom list called Test.</p>
<p>5. Configure whether workflow triggers , you can choose start manually or automatically when item is created or modified.</p>
<p><img src="http://ybbest.files.wordpress.com/2012/01/012712_0051_howtocreate5.png?w=450" alt="" /></p>
<p>6. Drag a log to history activity to the workflow designer pane as shown below.</p>
<p><img src="http://ybbest.files.wordpress.com/2012/01/012712_0051_howtocreate6.png?w=450" alt="" /></p>
<p>7. Configure the activity by going to the properties panel and type &#8220;workflow hello world&#8221; in the HistoryDescription</p>
<p><img src="http://ybbest.files.wordpress.com/2012/01/012712_0051_howtocreate7.png?w=450" alt="" /></p>
<p>8. Deploy your solution and we can have test drive as below.</p>
<p>a. Navigate to the test list and add a new item</p>
<p><img src="http://ybbest.files.wordpress.com/2012/01/012712_0051_howtocreate8.png?w=450" alt="" /></p>
<p>b. After you click the save button , you will see the workflow is running.</p>
<p>c. Since this is a very simple workflow , after you refresh the browser you can see the workflow status changed from In Progress to Completed.</p>
<p><img src="http://ybbest.files.wordpress.com/2012/01/012712_0051_howtocreate10.png?w=450" alt="" /></p>
<p>d. If you click the Completed link , you will your Workflow Hello World in that page.</p>
<p><img src="http://ybbest.files.wordpress.com/2012/01/012712_0051_howtocreate11.png?w=450" alt="" /></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/ybbest.wordpress.com/1437/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/ybbest.wordpress.com/1437/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/ybbest.wordpress.com/1437/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/ybbest.wordpress.com/1437/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/ybbest.wordpress.com/1437/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/ybbest.wordpress.com/1437/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/ybbest.wordpress.com/1437/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/ybbest.wordpress.com/1437/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/ybbest.wordpress.com/1437/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/ybbest.wordpress.com/1437/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/ybbest.wordpress.com/1437/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/ybbest.wordpress.com/1437/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/ybbest.wordpress.com/1437/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/ybbest.wordpress.com/1437/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=ybbest.wordpress.com&amp;blog=2521007&amp;post=1437&amp;subd=ybbest&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://ybbest.wordpress.com/2012/01/27/how-to-create-workflow-in-sharepoint2010-using-visual-studio/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/9b67a58404adeecc0f1ef1a6d6b5ca57?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">ybbest</media:title>
		</media:content>

		<media:content url="http://ybbest.files.wordpress.com/2012/01/012712_0051_howtocreate1.png" medium="image" />

		<media:content url="http://ybbest.files.wordpress.com/2012/01/012712_0051_howtocreate2.png" medium="image" />

		<media:content url="http://ybbest.files.wordpress.com/2012/01/012712_0051_howtocreate3.png" medium="image" />

		<media:content url="http://ybbest.files.wordpress.com/2012/01/012712_0051_howtocreate5.png" medium="image" />

		<media:content url="http://ybbest.files.wordpress.com/2012/01/012712_0051_howtocreate6.png" medium="image" />

		<media:content url="http://ybbest.files.wordpress.com/2012/01/012712_0051_howtocreate7.png" medium="image" />

		<media:content url="http://ybbest.files.wordpress.com/2012/01/012712_0051_howtocreate8.png" medium="image" />

		<media:content url="http://ybbest.files.wordpress.com/2012/01/012712_0051_howtocreate10.png" medium="image" />

		<media:content url="http://ybbest.files.wordpress.com/2012/01/012712_0051_howtocreate11.png" medium="image" />
	</item>
		<item>
		<title>Populate people picker with current user in InfoPath2010</title>
		<link>http://ybbest.wordpress.com/2012/01/25/populate-people-picker-with-current-user-in-infopath2010/</link>
		<comments>http://ybbest.wordpress.com/2012/01/25/populate-people-picker-with-current-user-in-infopath2010/#comments</comments>
		<pubDate>Wed, 25 Jan 2012 02:49:24 +0000</pubDate>
		<dc:creator>ybbest</dc:creator>
				<category><![CDATA[InfoPath2010]]></category>
		<category><![CDATA[SharePoint2010]]></category>

		<guid isPermaLink="false">https://ybbest.wordpress.com/?p=1406</guid>
		<description><![CDATA[In recent project, we have a requirement to populate people picker with current user in InfoPath2010 form. It is quite easy to do it in InfoPath; however it does not quite work as we have expected. In the end, we have to use a combination of InfoPath and list event receiver to complete this task. [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=ybbest.wordpress.com&amp;blog=2521007&amp;post=1406&amp;subd=ybbest&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>In recent project, we have a requirement to populate people picker with current user in InfoPath2010 form. It is quite easy to do it in InfoPath; however it does not quite work as we have expected. In the end, we have to use a combination of InfoPath and list event receiver to complete this task. Here are the steps to set the current user to the additional stakeholder display name in InfoPath.</p>
<p>1. Add a set a field&#8217;s value rule to InfoPath Form load event.</p>
<p><img src="http://ybbest.files.wordpress.com/2012/01/012512_0249_populatepeo12.png?w=450" alt="" /></p>
<p>2. Set the condition as below</p>
<p><img src="http://ybbest.files.wordpress.com/2012/01/012512_0249_populatepeo22.png?w=450" alt="" /></p>
<p>3. Configure the set field value action as below, userName() is a built-in function in InfoPath2010</p>
<p><img src="http://ybbest.files.wordpress.com/2012/01/012512_0249_populatepeo32.png?w=450" alt="" /></p>
<p>4. Publish the form, you will see the current user is populated with the current user name as below, <span style="color:red;">however when you click the save, the user does not get saved. I guess this is due to the fact the people-picker control needs to perform a post-back to do some tricks.But we could not force the control to do it in InfoPath2010 for the automatically populated user , therefore we have to write up an list event receiver to set the current user.<br />
</span></p>
<p><img src="http://ybbest.files.wordpress.com/2012/01/012512_0249_populatepeo42.png?w=450" alt="" /></p>
<p><span style="color:black;">5. In you SharePoint solution, add event receiver.<br />
</span></p>
<p><img src="http://ybbest.files.wordpress.com/2012/01/012512_0249_populatepeo51.png?w=450" alt="" /><span style="color:black;"><br />
</span></p>
<p><span style="color:black;">6. Copy the code to as specified to the screenshot<br />
</span></p>
<p style="margin-left:18pt;"><span style="font-family:Consolas;font-size:9pt;"><span style="color:blue;">public</span><br />
<span style="color:blue;">override</span><br />
<span style="color:blue;">void</span> ItemAdding(<span style="color:#2b91af;">SPItemEventProperties</span> properties)<br />
</span></p>
<p style="margin-left:18pt;"><span style="font-family:Consolas;font-size:9pt;">       {<br />
</span></p>
<p style="margin-left:18pt;"><span style="font-family:Consolas;font-size:9pt;">           <span style="color:green;">//base.ItemAdding(properties);</span><br />
</span></p>
<p style="margin-left:18pt;"><span style="font-family:Consolas;font-size:9pt;">           <span style="color:blue;">string</span> keyStakeholders = <span style="color:#a31515;">&#8220;Key_x0020_Stakeholders&#8221;</span>; <span style="color:red;"><strong><em>// this has to be the static or internal name , not the display name</em></strong></span><br />
</span></p>
<p style="margin-left:18pt;"><span style="font-family:Consolas;font-size:9pt;">           <span style="color:blue;">string</span> seperator = <span style="color:#a31515;">&#8220;;#&#8221;</span>;<br />
</span></p>
<p style="margin-left:18pt;"><span style="font-family:Consolas;font-size:9pt;">           <span style="color:#2b91af;">SPUser</span> user = properties.Web.CurrentUser;<br />
</span></p>
<p style="margin-left:18pt;"><span style="font-family:Consolas;font-size:9pt;">           <span style="color:blue;">if</span> (<span style="color:blue;">string</span>.IsNullOrEmpty(<span style="color:#2b91af;">SPHelper</span>.SafeToString(properties.AfterProperties[keyStakeholders])))<br />
</span></p>
<p style="margin-left:18pt;"><span style="font-family:Consolas;font-size:9pt;">           {<br />
</span></p>
<p style="margin-left:18pt;"><span style="font-family:Consolas;font-size:9pt;">               properties.AfterProperties[keyStakeholders] = seperator + user.ID + seperator + user.Name;<br />
</span></p>
<p style="margin-left:18pt;"><span style="font-family:Consolas;font-size:9pt;">           }<br />
</span></p>
<p style="margin-left:18pt;"><span style="font-family:Consolas;font-size:9pt;">           <span style="color:blue;">else</span> {<br />
</span></p>
<p style="margin-left:18pt;"><span style="font-family:Consolas;font-size:9pt;">               <span style="color:#2b91af;">SPFieldUserValue</span> fieldValue = <span style="color:#2b91af;">SPHelper</span>.GetSPFieldUserValue(<span style="color:#2b91af;">SPContext</span>.Current.Web, <span style="color:#2b91af;">SPHelper</span>.SafeToString(properties.AfterProperties[keyStakeholders]));<br />
</span></p>
<p style="margin-left:18pt;"><span style="font-family:Consolas;font-size:9pt;">               properties.AfterProperties[keyStakeholders] = seperator + fieldValue.LookupId + seperator + fieldValue.LookupValue + seperator + user.ID + seperator + user.Name;<br />
</span></p>
<p style="margin-left:18pt;"><span style="font-family:Consolas;font-size:9pt;">           }<br />
</span></p>
<p><span style="font-family:Consolas;font-size:9pt;">       }<br />
</span></p>
<p><span style="color:black;">7. Go to the elements.xml under the new event receiver<br />
</span></p>
<p><img src="http://ybbest.files.wordpress.com/2012/01/012512_0249_populatepeo61.png?w=450" alt="" /><span style="color:black;"><br />
</span></p>
<p><span style="color:black;">8. Change the xml highlighted in yellow<br />
</span></p>
<p><span style="color:black;">From:<br />
</span></p>
<p><img src="http://ybbest.files.wordpress.com/2012/01/012512_0249_populatepeo71.png?w=450" alt="" /><span style="color:black;"><br />
</span></p>
<p><span style="color:black;">TO<br />
</span></p>
<p><img src="http://ybbest.files.wordpress.com/2012/01/012512_0249_populatepeo8.png?w=450" alt="" /><span style="color:black;"><br />
</span></p>
<p><span style="color:black;"> 9. Deploy your solution; it will work like a charm. <img src='http://s0.wp.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /><br />
</span></p>
<p><span style="color:black;font-size:18pt;">References:<br />
</span></p>
<p><a href="http://msdn.microsoft.com/en-us/library/ff398052.aspx"><span style="font-size:14pt;">How to: Create an Event Receiver for a Specific List Instance</span></a><span style="color:black;font-size:14pt;"><br />
</span></p>
<p><span style="color:black;"><br />
</span></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/ybbest.wordpress.com/1406/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/ybbest.wordpress.com/1406/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/ybbest.wordpress.com/1406/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/ybbest.wordpress.com/1406/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/ybbest.wordpress.com/1406/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/ybbest.wordpress.com/1406/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/ybbest.wordpress.com/1406/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/ybbest.wordpress.com/1406/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/ybbest.wordpress.com/1406/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/ybbest.wordpress.com/1406/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/ybbest.wordpress.com/1406/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/ybbest.wordpress.com/1406/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/ybbest.wordpress.com/1406/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/ybbest.wordpress.com/1406/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=ybbest.wordpress.com&amp;blog=2521007&amp;post=1406&amp;subd=ybbest&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://ybbest.wordpress.com/2012/01/25/populate-people-picker-with-current-user-in-infopath2010/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/9b67a58404adeecc0f1ef1a6d6b5ca57?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">ybbest</media:title>
		</media:content>

		<media:content url="http://ybbest.files.wordpress.com/2012/01/012512_0249_populatepeo12.png" medium="image" />

		<media:content url="http://ybbest.files.wordpress.com/2012/01/012512_0249_populatepeo22.png" medium="image" />

		<media:content url="http://ybbest.files.wordpress.com/2012/01/012512_0249_populatepeo32.png" medium="image" />

		<media:content url="http://ybbest.files.wordpress.com/2012/01/012512_0249_populatepeo42.png" medium="image" />

		<media:content url="http://ybbest.files.wordpress.com/2012/01/012512_0249_populatepeo51.png" medium="image" />

		<media:content url="http://ybbest.files.wordpress.com/2012/01/012512_0249_populatepeo61.png" medium="image" />

		<media:content url="http://ybbest.files.wordpress.com/2012/01/012512_0249_populatepeo71.png" medium="image" />

		<media:content url="http://ybbest.files.wordpress.com/2012/01/012512_0249_populatepeo8.png" medium="image" />
	</item>
		<item>
		<title>Create a “Save and Create New Item” functionality in InfoPath2010 Part2</title>
		<link>http://ybbest.wordpress.com/2012/01/25/create-a-save-and-create-new-item-functionality-in-infopath2010-part2/</link>
		<comments>http://ybbest.wordpress.com/2012/01/25/create-a-save-and-create-new-item-functionality-in-infopath2010-part2/#comments</comments>
		<pubDate>Wed, 25 Jan 2012 01:41:30 +0000</pubDate>
		<dc:creator>ybbest</dc:creator>
				<category><![CDATA[InfoPath2010]]></category>

		<guid isPermaLink="false">https://ybbest.wordpress.com/?p=1399</guid>
		<description><![CDATA[In the last post, I showed you how to configure the form to enable &#8220;Save and Create New Item&#8221; using Infopath2010. In this post, I will show you some of the problems and solution with enabling this in the form. Once you have enabled this function in the submit option, the save button in the [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=ybbest.wordpress.com&amp;blog=2521007&amp;post=1399&amp;subd=ybbest&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>In the last post, I showed you how to configure the form to enable &#8220;Save and Create New Item&#8221; using Infopath2010. In this post, I will show you some of the problems and solution with enabling this in the form. Once you have enabled this function in the submit option, the save button in the InfoPath top menu will have the same functionalities, this might be confusing to the user as it will work differently from other forms.
</p>
<p>To fix it, you can hide save button at the top ribbon and create a new button on the form called &#8220;Save And Close Form&#8221;. Here are the steps:
</p>
<p>1. Go to File&#8211;&gt; Advanced form options &#8211;&gt;Web Browser and then untick the &#8220;Show InfoPath commands in Ribbon or toolbar&#8221;
</p>
<p><img src="http://ybbest.files.wordpress.com/2012/01/012512_0141_createasave1.png?w=450" alt="" />
	</p>
<p>2. Drag a button and label the button as Save and close the form in the InfoPath form
</p>
<p><img src="http://ybbest.files.wordpress.com/2012/01/012512_0141_createasave2.png?w=450" alt="" />
	</p>
<p><img src="http://ybbest.files.wordpress.com/2012/01/012512_0141_createasave3.png?w=450" alt="" />
	</p>
<p>3. Add the following rules to the newly created button. Submit data rule and close form rule.
</p>
<p><img src="http://ybbest.files.wordpress.com/2012/01/012512_0141_createasave4.png?w=450" alt="" />
	</p>
<p>4. Republish your form and you will see the form as below.
</p>
<p><img src="http://ybbest.files.wordpress.com/2012/01/012512_0141_createasave5.png?w=450" alt="" /></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/ybbest.wordpress.com/1399/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/ybbest.wordpress.com/1399/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/ybbest.wordpress.com/1399/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/ybbest.wordpress.com/1399/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/ybbest.wordpress.com/1399/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/ybbest.wordpress.com/1399/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/ybbest.wordpress.com/1399/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/ybbest.wordpress.com/1399/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/ybbest.wordpress.com/1399/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/ybbest.wordpress.com/1399/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/ybbest.wordpress.com/1399/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/ybbest.wordpress.com/1399/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/ybbest.wordpress.com/1399/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/ybbest.wordpress.com/1399/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=ybbest.wordpress.com&amp;blog=2521007&amp;post=1399&amp;subd=ybbest&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://ybbest.wordpress.com/2012/01/25/create-a-save-and-create-new-item-functionality-in-infopath2010-part2/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/9b67a58404adeecc0f1ef1a6d6b5ca57?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">ybbest</media:title>
		</media:content>

		<media:content url="http://ybbest.files.wordpress.com/2012/01/012512_0141_createasave1.png" medium="image" />

		<media:content url="http://ybbest.files.wordpress.com/2012/01/012512_0141_createasave2.png" medium="image" />

		<media:content url="http://ybbest.files.wordpress.com/2012/01/012512_0141_createasave3.png" medium="image" />

		<media:content url="http://ybbest.files.wordpress.com/2012/01/012512_0141_createasave4.png" medium="image" />

		<media:content url="http://ybbest.files.wordpress.com/2012/01/012512_0141_createasave5.png" medium="image" />
	</item>
		<item>
		<title>Create a “Save and Create New Item” functionality in InfoPath2010</title>
		<link>http://ybbest.wordpress.com/2012/01/18/create-a-save-and-create-new-item-functionality-in-infopath2010/</link>
		<comments>http://ybbest.wordpress.com/2012/01/18/create-a-save-and-create-new-item-functionality-in-infopath2010/#comments</comments>
		<pubDate>Wed, 18 Jan 2012 01:09:21 +0000</pubDate>
		<dc:creator>ybbest</dc:creator>
				<category><![CDATA[InfoPath2010]]></category>
		<category><![CDATA[SharePoint 2010]]></category>

		<guid isPermaLink="false">https://ybbest.wordpress.com/?p=1388</guid>
		<description><![CDATA[Recently, I got a requirement to create a button on the InfoPath2010 form that save the current item and then open a new form so that they can add another item. To do so in InfoPath2010 is quite easy, here are the steps: 1. Drop a button at the bottom of the form and label [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=ybbest.wordpress.com&amp;blog=2521007&amp;post=1388&amp;subd=ybbest&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Recently, I got a requirement to create a button on the InfoPath2010 form that save the current item and then open a new form so that they can add another item. To do so in InfoPath2010 is quite easy, here are the steps:
</p>
<p>1. Drop a button at the bottom of the form and label it as save and add another Item
</p>
<p><img src="http://ybbest.files.wordpress.com/2012/01/011812_0108_createasave1.png?w=450" alt="" />
	</p>
<p>2. Right-click the button and select Button Properties.
</p>
<p><img src="http://ybbest.files.wordpress.com/2012/01/011812_0108_createasave2.png?w=450" alt="" />
	</p>
<p>3. Select Submit from the Action dropdown list.
</p>
<p><img src="http://ybbest.files.wordpress.com/2012/01/011812_0108_createasave3.png?w=450" alt="" />
	</p>
<p>4. Click the Submit Options and click the Advanced button.
</p>
<p><img src="http://ybbest.files.wordpress.com/2012/01/011812_0108_createasave4.png?w=450" alt="" />
	</p>
<p>5. Select &#8220;Open a new form&#8221; from the &#8220;after submit&#8221; dropdown list.
</p>
<p><img src="http://ybbest.files.wordpress.com/2012/01/011812_0108_createasave5.png?w=450" alt="" />
	</p>
<p>6. Republish your form, it works like a charm. This option is also available from the form submit options for the Save button in the ribbon.
</p>
<p><img src="http://ybbest.files.wordpress.com/2012/01/011812_0108_createasave6.png?w=450" alt="" /></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/ybbest.wordpress.com/1388/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/ybbest.wordpress.com/1388/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/ybbest.wordpress.com/1388/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/ybbest.wordpress.com/1388/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/ybbest.wordpress.com/1388/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/ybbest.wordpress.com/1388/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/ybbest.wordpress.com/1388/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/ybbest.wordpress.com/1388/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/ybbest.wordpress.com/1388/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/ybbest.wordpress.com/1388/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/ybbest.wordpress.com/1388/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/ybbest.wordpress.com/1388/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/ybbest.wordpress.com/1388/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/ybbest.wordpress.com/1388/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=ybbest.wordpress.com&amp;blog=2521007&amp;post=1388&amp;subd=ybbest&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://ybbest.wordpress.com/2012/01/18/create-a-save-and-create-new-item-functionality-in-infopath2010/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/9b67a58404adeecc0f1ef1a6d6b5ca57?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">ybbest</media:title>
		</media:content>

		<media:content url="http://ybbest.files.wordpress.com/2012/01/011812_0108_createasave1.png" medium="image" />

		<media:content url="http://ybbest.files.wordpress.com/2012/01/011812_0108_createasave2.png" medium="image" />

		<media:content url="http://ybbest.files.wordpress.com/2012/01/011812_0108_createasave3.png" medium="image" />

		<media:content url="http://ybbest.files.wordpress.com/2012/01/011812_0108_createasave4.png" medium="image" />

		<media:content url="http://ybbest.files.wordpress.com/2012/01/011812_0108_createasave5.png" medium="image" />

		<media:content url="http://ybbest.files.wordpress.com/2012/01/011812_0108_createasave6.png" medium="image" />
	</item>
		<item>
		<title>How to fix “The report server has encountered a configuration error. Logon failed for the unattended execution account.”</title>
		<link>http://ybbest.wordpress.com/2012/01/17/how-to-fix-the-report-server-has-encountered-a-configuration-error-logon-failed-for-the-unattended-execution-account/</link>
		<comments>http://ybbest.wordpress.com/2012/01/17/how-to-fix-the-report-server-has-encountered-a-configuration-error-logon-failed-for-the-unattended-execution-account/#comments</comments>
		<pubDate>Tue, 17 Jan 2012 09:58:59 +0000</pubDate>
		<dc:creator>ybbest</dc:creator>
				<category><![CDATA[SSRS]]></category>

		<guid isPermaLink="false">https://ybbest.wordpress.com/?p=1377</guid>
		<description><![CDATA[Recently after I have deployed some SSRS reports to a client staging environment, I got this error as below After some Goggling and binging, I have found out the problem is that SSRS Execution Account in SSRS configuration manager is set to a normal user account , after the user change its password , it [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=ybbest.wordpress.com&amp;blog=2521007&amp;post=1377&amp;subd=ybbest&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Recently after I have deployed some SSRS reports to a client staging environment, I got this error as below</p>
<p><img src="http://ybbest.files.wordpress.com/2012/01/011712_0958_howtofixthe1.png?w=450" alt="" /></p>
<p><span style="font-family:Times New Roman;font-size:12pt;">After some Goggling and binging, I have found out the problem is that SSRS Execution Account in SSRS configuration manager is set to a normal user account , after the user change its password , it cause the problem above. After some further research, I have found out we do not need to have an Unattended Execution account specified as <a href="http://www.enesyssoftware.com/language/en-US/NewsBlog/EntryID/138.aspx">EnesysRSExtension</a> adheres to SharePoint security and passes through the end user security to maintain permissions. So after I have cleared the SSRS Execution Account, it works like a charm.The unattended execution account refers to the SSRS Execution account from the SSRS Configuration manager as shown below.<br />
</span></p>
<p><img src="http://ybbest.files.wordpress.com/2012/01/011712_0958_howtofixthe2.png?w=450" alt="" /><span style="font-family:Times New Roman;font-size:12pt;"><br />
</span></p>
<h2><strong>References:</strong></h2>
<p lang="en-NZ"><a href="http://www.scom2k7.com/the-report-server-has-encountered-a-configuration-error-logon-failed-for-the-unattended-execution-account/">The report server has encountered a configuration error. Logon failed for the unattended execution account.</a></p>
<p lang="en-NZ"><a href="http://msdn.microsoft.com/en-us/library/ms156302.aspx" target="_blank">Configuring the Unattended Execution Account</a></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/ybbest.wordpress.com/1377/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/ybbest.wordpress.com/1377/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/ybbest.wordpress.com/1377/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/ybbest.wordpress.com/1377/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/ybbest.wordpress.com/1377/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/ybbest.wordpress.com/1377/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/ybbest.wordpress.com/1377/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/ybbest.wordpress.com/1377/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/ybbest.wordpress.com/1377/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/ybbest.wordpress.com/1377/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/ybbest.wordpress.com/1377/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/ybbest.wordpress.com/1377/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/ybbest.wordpress.com/1377/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/ybbest.wordpress.com/1377/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=ybbest.wordpress.com&amp;blog=2521007&amp;post=1377&amp;subd=ybbest&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://ybbest.wordpress.com/2012/01/17/how-to-fix-the-report-server-has-encountered-a-configuration-error-logon-failed-for-the-unattended-execution-account/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/9b67a58404adeecc0f1ef1a6d6b5ca57?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">ybbest</media:title>
		</media:content>

		<media:content url="http://ybbest.files.wordpress.com/2012/01/011712_0958_howtofixthe1.png" medium="image" />

		<media:content url="http://ybbest.files.wordpress.com/2012/01/011712_0958_howtofixthe2.png" medium="image" />
	</item>
		<item>
		<title>How to invoke Nintex workflow asynchronously using code</title>
		<link>http://ybbest.wordpress.com/2012/01/15/how-to-invoke-nintex-workflow-asynchronously-using-code/</link>
		<comments>http://ybbest.wordpress.com/2012/01/15/how-to-invoke-nintex-workflow-asynchronously-using-code/#comments</comments>
		<pubDate>Sun, 15 Jan 2012 10:38:14 +0000</pubDate>
		<dc:creator>ybbest</dc:creator>
				<category><![CDATA[Nintex Workflow 2010]]></category>
		<category><![CDATA[SharePoint 2010]]></category>

		<guid isPermaLink="false">https://ybbest.wordpress.com/?p=1371</guid>
		<description><![CDATA[In this post, I will show you how to invoke Nintex workflow asynchronously using code. Nintex is built on top of SharePoint, so there is no difference between invoking a Nintex workflow and invoking a SharePoint workflow. Below is the code to invoke the workflow.You can download a sample code here. References How to check [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=ybbest.wordpress.com&amp;blog=2521007&amp;post=1371&amp;subd=ybbest&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>In this post, I will show you how to invoke Nintex workflow asynchronously using code. Nintex is built on top of SharePoint, so there is no difference between invoking a Nintex workflow and invoking a SharePoint workflow. Below is the code to invoke the workflow.You can download a sample code <a href="http://www.box.com/s/vk95rlx4vdogls0fuc29" target="_blank">here</a>.</p>
<p><a href="http://ybbest.files.wordpress.com/2012/01/workflow.png"><img class="alignnone size-full wp-image-1391" title="workflow" src="http://ybbest.files.wordpress.com/2012/01/workflow.png?w=450&#038;h=178" alt="" width="450" height="178" /></a></p>
<p>References</p>
<p><span style="color:#000000;"><strong><a href="http://swatipoint.blogspot.com/2009/11/how-to-check-if-workflow-is-already.html"><span style="color:#000000;">How to check if Workflow is already Running and to Avoid Error Exception from HRESULT: 0×8102009B</span></a></strong></span></p>
<p><span style="color:#000000;"><strong><a id="ctl00_ctl01_bcr_ctl00___ctl00_Entrylisting1___Entries_ctl01_Name" href="http://connect.nintex.com/files/folders/sdk_nw2010/entry11986.aspx"><span style="color:#000000;">Nintex Workflow 2010 SDK &#8211; info and download</span></a></strong></span></p>
<p>&nbsp;</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/ybbest.wordpress.com/1371/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/ybbest.wordpress.com/1371/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/ybbest.wordpress.com/1371/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/ybbest.wordpress.com/1371/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/ybbest.wordpress.com/1371/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/ybbest.wordpress.com/1371/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/ybbest.wordpress.com/1371/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/ybbest.wordpress.com/1371/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/ybbest.wordpress.com/1371/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/ybbest.wordpress.com/1371/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/ybbest.wordpress.com/1371/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/ybbest.wordpress.com/1371/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/ybbest.wordpress.com/1371/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/ybbest.wordpress.com/1371/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=ybbest.wordpress.com&amp;blog=2521007&amp;post=1371&amp;subd=ybbest&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://ybbest.wordpress.com/2012/01/15/how-to-invoke-nintex-workflow-asynchronously-using-code/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/9b67a58404adeecc0f1ef1a6d6b5ca57?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">ybbest</media:title>
		</media:content>

		<media:content url="http://ybbest.files.wordpress.com/2012/01/workflow.png" medium="image">
			<media:title type="html">workflow</media:title>
		</media:content>
	</item>
		<item>
		<title>Web Application Scoped Resources</title>
		<link>http://ybbest.wordpress.com/2012/01/13/web-application-scoped-resources/</link>
		<comments>http://ybbest.wordpress.com/2012/01/13/web-application-scoped-resources/#comments</comments>
		<pubDate>Thu, 12 Jan 2012 21:32:51 +0000</pubDate>
		<dc:creator>ybbest</dc:creator>
				<category><![CDATA[SharePoint 2010]]></category>

		<guid isPermaLink="false">https://ybbest.wordpress.com/?p=1365</guid>
		<description><![CDATA[When you try to deploy a solution without Web Application Scoped Resources, you will get the following errors: The solution contains no Web application scoped resource, and therefore cannot be deployed to a particular Web application. It can only be deployed globally. If you like to deploy the solution to a web application, you need [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=ybbest.wordpress.com&amp;blog=2521007&amp;post=1365&amp;subd=ybbest&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>When you try to deploy a solution without Web Application Scoped Resources, you will get the following errors:</p>
<p><span style="color:red;">The solution contains no Web application scoped resource, and therefore cannot be deployed to a particular Web application. It can only be deployed globally.<br />
</span></p>
<p>If you like to deploy the solution to a web application, you need to set the Assembly Deployment Target to WebApplication instead of GlobalAssemblyCache. You can download a deployment script <a href="http://www.box.com/s/78y0do6e0lqkd1k2d1to">here</a>.</p>
<p><img src="http://ybbest.files.wordpress.com/2012/01/011212_2132_webapplicat1.png?w=450" alt="" /></p>
<p>References:</p>
<p style="background:white;"><a href="http://social.msdn.microsoft.com/Forums/eu/sharepointdevelopment/thread/17cdbe0b-5a22-40e4-bac4-227ded0ee51f"><span style="font-family:Times New Roman;font-size:14pt;"><strong>What is a &#8220;Web Application Scoped Resource?</strong></span></a><span style="color:#3a3e43;font-family:Segoe UI Semibold;font-size:21pt;"><strong><br />
</strong></span></p>
<p>A web scoped solution will contain files, features, and assemblies etc that are deployed to specific web applications (or All of them as selected). If there is an assembly destined for the bin directory or a feature set as WebApplication, Site or Web Scoped, then the solution deployment screen will ask you which web application to deploy the solution too (there are other triggers, e.g. App Resource Files (.resx) etc). Of course though, you may have globally deployable files in the solution (e.g. GAC located assemblies) as well as web app scoped resources.</p>
<p>When deploying web app scoped resources, any modifications to the bin folder, app_* folders, web.config etc will only apply to the web apps the solution has been deployed to (or all of them if selected &#8211; this option does not include Central Admin or the SSP web app!). Any newly created web apps will not receive these changes UNLESS you have also deployed files into the LAYOUTS/* folder(s) which get merged during web app creation (this is a separate topic all together).</p>
<p>Globally deployed resources are available to ALL web applications on the server, these tend to include farm scoped features, GAC located assemblies and files being deployed into the LAYOUTS/* folder(s).</p>
<p>The difference between deploying &#8220;globally&#8221; and to all content web apps depends on what you are deploying. If there are web.config changes or web application / site / web scoped features, then these cannot be deployed globally anyway &#8211; the option will not be displayed as they must be deployed to a target web application(s).</p>
<p style="background:white;"><a href="http://blogs.msdn.com/b/jjameson/archive/2007/06/17/issues-deploying-sharepoint-solution-packages.aspx"><span style="font-family:Times New Roman;font-size:14pt;"><strong>Issues Deploying SharePoint Solution Packages</strong></span></a></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/ybbest.wordpress.com/1365/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/ybbest.wordpress.com/1365/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/ybbest.wordpress.com/1365/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/ybbest.wordpress.com/1365/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/ybbest.wordpress.com/1365/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/ybbest.wordpress.com/1365/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/ybbest.wordpress.com/1365/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/ybbest.wordpress.com/1365/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/ybbest.wordpress.com/1365/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/ybbest.wordpress.com/1365/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/ybbest.wordpress.com/1365/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/ybbest.wordpress.com/1365/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/ybbest.wordpress.com/1365/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/ybbest.wordpress.com/1365/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=ybbest.wordpress.com&amp;blog=2521007&amp;post=1365&amp;subd=ybbest&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://ybbest.wordpress.com/2012/01/13/web-application-scoped-resources/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/9b67a58404adeecc0f1ef1a6d6b5ca57?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">ybbest</media:title>
		</media:content>

		<media:content url="http://ybbest.files.wordpress.com/2012/01/011212_2132_webapplicat1.png" medium="image" />
	</item>
		<item>
		<title>How to use SPGridview</title>
		<link>http://ybbest.wordpress.com/2012/01/08/how-to-use-spgridview/</link>
		<comments>http://ybbest.wordpress.com/2012/01/08/how-to-use-spgridview/#comments</comments>
		<pubDate>Sun, 08 Jan 2012 02:53:04 +0000</pubDate>
		<dc:creator>ybbest</dc:creator>
				<category><![CDATA[SharePoint 2010]]></category>

		<guid isPermaLink="false">https://ybbest.wordpress.com/?p=1355</guid>
		<description><![CDATA[In this post I&#8217;d like to show you how to use SPGridview. In SharePoint2010, if you like to display data in a view like SharePoint, you can use a SharePoint Server control called SPGridview. However, there are a few tips and tricks you need to know to work around some of the known issues of [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=ybbest.wordpress.com&amp;blog=2521007&amp;post=1355&amp;subd=ybbest&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>In this post I&#8217;d like to show you how to use SPGridview. In SharePoint2010, if you like to display data in a view like SharePoint, you can use a SharePoint Server control called SPGridview. However, there are a few tips and tricks you need to know to work around some of the known issues of SPGridview.
</p>
<p>1. Fixing the group title row disappearance and the sort indicator arrow image, you can find the solution in this <a href="http://blogs.msdn.com/b/valdon/archive/2009/03/11/how-to-work-around-bugs-in-the-spgridview-control.aspx">blog post</a>.
</p>
<p>2. If you turned on grouping, you might get the following error when you do a postback &#8220;<span style="color:red;font-family:Georgia;font-size:10pt;">System.ArgumentNullException: Value canot be null</span>&#8220;. The problem happened while rendering the rows again after the postback.<span style="color:red;font-family:Georgia;font-size:10pt;"><br />
		</span></p>
<p>To solve this problem you can find the solution in this <a href="http://mossindepth.blogspot.com/2009/05/spgridview-grouping-is-it-easy-to-apply.html">blog post</a> and remember to turn off view state after applying this fix.
</p>
<p>You can download a complete solution with all of this fixes <a href="http://www.box.com/s/cvl0rtk29ra085ojez4d">here</a>.
</p>
<p>
 </p>
<p>
 </p>
<p>
 </p>
<p style="margin-left:36pt;">
 </p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/ybbest.wordpress.com/1355/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/ybbest.wordpress.com/1355/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/ybbest.wordpress.com/1355/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/ybbest.wordpress.com/1355/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/ybbest.wordpress.com/1355/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/ybbest.wordpress.com/1355/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/ybbest.wordpress.com/1355/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/ybbest.wordpress.com/1355/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/ybbest.wordpress.com/1355/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/ybbest.wordpress.com/1355/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/ybbest.wordpress.com/1355/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/ybbest.wordpress.com/1355/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/ybbest.wordpress.com/1355/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/ybbest.wordpress.com/1355/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=ybbest.wordpress.com&amp;blog=2521007&amp;post=1355&amp;subd=ybbest&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://ybbest.wordpress.com/2012/01/08/how-to-use-spgridview/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/9b67a58404adeecc0f1ef1a6d6b5ca57?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">ybbest</media:title>
		</media:content>
	</item>
		<item>
		<title>Create a parameterized report using SSRS –Part2</title>
		<link>http://ybbest.wordpress.com/2012/01/08/create-a-parameterized-report-using-ssrs-part2/</link>
		<comments>http://ybbest.wordpress.com/2012/01/08/create-a-parameterized-report-using-ssrs-part2/#comments</comments>
		<pubDate>Sun, 08 Jan 2012 02:40:19 +0000</pubDate>
		<dc:creator>ybbest</dc:creator>
				<category><![CDATA[SSRS]]></category>

		<guid isPermaLink="false">https://ybbest.wordpress.com/?p=1351</guid>
		<description><![CDATA[In the first part of the series, I have created a parameterized report using SSRS. However, you have to type in the ship Country instead of selecting it from a dropdown list. In this post, I will show you how to create that dropdown list. 1. Create a new Shared dataset called ShipCountriesDS 2. Create [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=ybbest.wordpress.com&amp;blog=2521007&amp;post=1351&amp;subd=ybbest&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>In the first part of the series, I have created a parameterized report using SSRS. However, you have to type in the ship Country instead of selecting it from a dropdown list. In this post, I will show you how to create that dropdown list.</p>
<p>1. Create a new Shared dataset called ShipCountriesDS</p>
<p><img src="http://ybbest.files.wordpress.com/2012/01/010812_0240_createapara1.png?w=450" alt="" /></p>
<p>2. Create a new report dataset using the shared dataset</p>
<p><img src="http://ybbest.files.wordpress.com/2012/01/010812_0240_createapara2.png?w=450" alt="" /></p>
<p>3. Go to the report parameter and double-click the @ShipCountry and then go to the available values properties tab. Select Get values from a query and select the dataset you created above.</p>
<p><img src="http://ybbest.files.wordpress.com/2012/01/010812_0240_createapara3.png?w=450" alt="" /></p>
<p>4. Run the report, you will see the dropdown list.</p>
<p><img src="http://ybbest.files.wordpress.com/2012/01/010812_0240_createapara4.png?w=450" alt="" /></p>
<p>5. Click the view report button and then you will see the report shown below.</p>
<p><img src="http://ybbest.files.wordpress.com/2012/01/010812_0240_createapara5.png?w=450" alt="" /></p>
<p>You can download a complete solution <a href="http://www.box.com/s/2kq5gx9fq3lcb7zzh9h7" target="_blank">here</a>.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/ybbest.wordpress.com/1351/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/ybbest.wordpress.com/1351/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/ybbest.wordpress.com/1351/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/ybbest.wordpress.com/1351/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/ybbest.wordpress.com/1351/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/ybbest.wordpress.com/1351/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/ybbest.wordpress.com/1351/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/ybbest.wordpress.com/1351/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/ybbest.wordpress.com/1351/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/ybbest.wordpress.com/1351/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/ybbest.wordpress.com/1351/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/ybbest.wordpress.com/1351/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/ybbest.wordpress.com/1351/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/ybbest.wordpress.com/1351/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=ybbest.wordpress.com&amp;blog=2521007&amp;post=1351&amp;subd=ybbest&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://ybbest.wordpress.com/2012/01/08/create-a-parameterized-report-using-ssrs-part2/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/9b67a58404adeecc0f1ef1a6d6b5ca57?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">ybbest</media:title>
		</media:content>

		<media:content url="http://ybbest.files.wordpress.com/2012/01/010812_0240_createapara1.png" medium="image" />

		<media:content url="http://ybbest.files.wordpress.com/2012/01/010812_0240_createapara2.png" medium="image" />

		<media:content url="http://ybbest.files.wordpress.com/2012/01/010812_0240_createapara3.png" medium="image" />

		<media:content url="http://ybbest.files.wordpress.com/2012/01/010812_0240_createapara4.png" medium="image" />

		<media:content url="http://ybbest.files.wordpress.com/2012/01/010812_0240_createapara5.png" medium="image" />
	</item>
	</channel>
</rss>
