<?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>Code For Future</title>
	<atom:link href="http://codeforfuture.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://codeforfuture.com</link>
	<description>Share as you code.</description>
	<lastBuildDate>Mon, 08 Aug 2011 05:41:32 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.5</generator>
		<item>
		<title>Creating custom column with complex logic</title>
		<link>http://codeforfuture.com/2011/08/08/creating-custom-column-with-complex-logic/</link>
		<comments>http://codeforfuture.com/2011/08/08/creating-custom-column-with-complex-logic/#comments</comments>
		<pubDate>Mon, 08 Aug 2011 05:41:32 +0000</pubDate>
		<dc:creator>Jayvardhan Patil</dc:creator>
				<category><![CDATA[MOSS 2007]]></category>
		<category><![CDATA[SharePoint 2010]]></category>
		<category><![CDATA[SharePoint Custom Columns]]></category>

		<guid isPermaLink="false">http://codeforfuture.com/?p=188</guid>
		<description><![CDATA[Hello Readers, I got following question from Chris Polek who happen to stumble upon my blog. I tried to answer it best of my knowledge but I am sure there can be multiple ways to achieve this. If you find a better solution, do comment! Question: I would like to create a column in a [...]]]></description>
			<content:encoded><![CDATA[<p>Hello Readers,</p>
<p>I got following question from Chris Polek who happen to stumble upon my blog. I tried to answer it best of my knowledge but I am sure there can be multiple ways to achieve this. If you find a better solution, do comment!</p>
<p><strong>Question:</strong><br />
I would like to create a column in a custom list that will sequentially assign the number 1, 2 or 3 to an item created in the list. After assigning a &#8217;3&#8242;, it will start over at &#8217;1&#8242;. Optionally, this could be a name as well, but a number will work just fine.</p>
<p>Would you be able to help me with this request?</p>
<p><strong>Answer:</strong><br />
Interesting! You can do this by using a calculated column or by using a workflow.</p>
<p><strong>Calculated column method:</strong><br />
You can base your logic with the help of ID column.<br />
For e.g. If the id of the list item is 3 or 6 or 9 or if the sum of the digits is 3/6/9 then put the column value as 3<br />
For e.g. If id =12 then 1+2= 3 hence you will print 3<br />
If all above is false then if the id is even number then print 2 else print 1</p>
<p>If above logic seems complicated then try this<br />
<strong>Workflow method:</strong><br />
Create another list, create one list item where Title = 1<br />
Now on your original list write a workflow which will read this value and print in your custom column. Once this is done the workflow will also increment the value into another list by one or reset it to one if it has reached to 3</p>
]]></content:encoded>
			<wfw:commentRss>http://codeforfuture.com/2011/08/08/creating-custom-column-with-complex-logic/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Learning Technologies in a Social Way</title>
		<link>http://codeforfuture.com/2011/05/07/learning-technologies-in-a-social-way/</link>
		<comments>http://codeforfuture.com/2011/05/07/learning-technologies-in-a-social-way/#comments</comments>
		<pubDate>Sat, 07 May 2011 02:35:23 +0000</pubDate>
		<dc:creator>Jayvardhan Patil</dc:creator>
				<category><![CDATA[Miscellaneuos]]></category>

		<guid isPermaLink="false">http://codeforfuture.com/2011/05/07/learning-technologies-in-a-social-way/</guid>
		<description><![CDATA[I hate waking up early on weekends, but even after disabling alarms I still end up waking up the same time! So I decided to put this time to help others by blogging things that I learnt throughout the week. This week I met Parag, and he has a really effective concept of learning technologies. [...]]]></description>
			<content:encoded><![CDATA[<p>I hate waking up early on weekends, but even after disabling alarms I still end up waking up the same time! So I decided to put this time to help others by blogging things that I learnt throughout the week.</p>
<p>This week I met Parag, and he has a really effective concept of learning technologies. He has a website called as “<a href="http://diycomputerscience.com/" target="_blank">Do It Yourself Computer Science</a>” where one can learn the technology with his own pace and then interact socially using twitter with others who are too learning the same course at that time. This happens by forming <a href="http://diycomputerscience.com/blog/post/3" target="_blank">online study groups</a>. This concept is called as Flipping the classroom which is a revolutionary concept that can replace the conventional classrooms. Watch this TED video about what flipping the classroom means.</p>
<p><iframe width="560" height="349" src="http://www.youtube.com/embed/gM95HHI4gLk" frameborder="0" allowfullscreen></iframe></p>
]]></content:encoded>
			<wfw:commentRss>http://codeforfuture.com/2011/05/07/learning-technologies-in-a-social-way/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to display SharePoint 2010 processing animation?</title>
		<link>http://codeforfuture.com/2011/03/19/how-to-display-sharepoint-2010-processing-animation/</link>
		<comments>http://codeforfuture.com/2011/03/19/how-to-display-sharepoint-2010-processing-animation/#comments</comments>
		<pubDate>Sat, 19 Mar 2011 16:10:00 +0000</pubDate>
		<dc:creator>Jayvardhan Patil</dc:creator>
				<category><![CDATA[SharePoint 2010]]></category>

		<guid isPermaLink="false">http://codeforfuture.com/2011/03/19/how-to-display-sharepoint-2010-processing-animation/</guid>
		<description><![CDATA[This is not a huge deal. Putting in following code on your page will help. &#60;div style=&#34;position:absolute; z-index:1000;display:block;width:100%&#34; id=&#34;divInProg&#34; &#62; &#60;table id=&#34;tblExPage&#34; style=&#34;display:block&#34; width=&#34;100%&#34; &#62; &#60;tr&#62;&#60;td align=&#34;center&#34;&#62; &#60;table width=&#34;75%&#34; &#62; &#60;tr&#62; &#60;td align=&#34;center&#34;&#62; &#60;div id=&#34;s4-simple-card&#34; class=&#34;s4-simple-gearpage&#34;&#62; &#60;div id=&#34;s4-simple-card-content&#34;&#62; &#60;h1&#62; &#60;img id=&#34;gearsImage&#34; alt=&#34;This animation indicates the operation is in progress.&#34; src=&#34;/_layouts/images/gears_anv4.gif&#34; style=&#34;width:24px; height:24px; font-size:0px;&#34; align=&#34;absmiddle&#34; /&#62; [...]]]></description>
			<content:encoded><![CDATA[<p>This is not a huge deal. Putting in following code on your page will help.</p>
<p>&lt;div style=&quot;position:absolute; z-index:1000;display:block;width:100%&quot; id=&quot;divInProg&quot; &gt;</p>
<p>&lt;table id=&quot;tblExPage&quot; style=&quot;display:block&quot; width=&quot;100%&quot; &gt;</p>
<p>&lt;tr&gt;&lt;td align=&quot;center&quot;&gt;</p>
<p>&lt;table width=&quot;75%&quot; &gt;</p>
<p>&lt;tr&gt;</p>
<p>&lt;td align=&quot;center&quot;&gt;</p>
<p>&lt;div id=&quot;s4-simple-card&quot; class=&quot;s4-simple-gearpage&quot;&gt;</p>
<p>&lt;div id=&quot;s4-simple-card-content&quot;&gt;</p>
<p>&lt;h1&gt;</p>
<p>&lt;img id=&quot;gearsImage&quot; alt=&quot;This animation indicates the operation is in progress.&quot; src=&quot;/_layouts/images/gears_anv4.gif&quot; style=&quot;width:24px; height:24px; font-size:0px;&quot; align=&quot;absmiddle&quot; /&gt;</p>
<p>Processing&#8230;</p>
<p>&lt;/div&gt;</p>
<p>&lt;/td&gt;</p>
<p>&lt;/tr&gt;</p>
<p>&lt;/table&gt;</p>
<p>&lt;/td&gt;</p>
<p>&lt;/tr&gt;</p>
<p>&lt;/table&gt;</p>
<p>&lt;/div&gt;</p>
<p>&#160;</p>
<p><a href="http://codeforfuture.com/wp-content/uploads/2011/03/Processing.png"><img style="background-image: none; border-bottom: 0px; border-left: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top: 0px; border-right: 0px; padding-top: 0px" title="Processing" border="0" alt="Processing" src="http://codeforfuture.com/wp-content/uploads/2011/03/Processing_thumb.png" width="585" height="210" /></a></p>
<p>&#160;</p>
<p>&#160;</p>
<p>&#160;</p>
<p>&#160;</p>
<p>&#160;</p>
<p>&#160;</p>
<p>&#160;</p>
<p>&#160;</p>
<p>&#160;</p>
<p>&#160;</p>
<p>&#160;</p>
<p><strong>C# Solution:</strong></p>
<p>If you need to do this using C# code then may be following link by Mano Mangaldas may help you.</p>
<p><a href="http://howtosharepoint.blogspot.com/2010/04/how-to-programatically-show-processing.html" target="_blank">Programmatically show processing screen ( Using SPLongOperation )</a></p>
]]></content:encoded>
			<wfw:commentRss>http://codeforfuture.com/2011/03/19/how-to-display-sharepoint-2010-processing-animation/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to remove all HTML tags from a string using XSLT?</title>
		<link>http://codeforfuture.com/2011/03/18/how-to-remove-all-html-tags-from-a-string-using-xslt/</link>
		<comments>http://codeforfuture.com/2011/03/18/how-to-remove-all-html-tags-from-a-string-using-xslt/#comments</comments>
		<pubDate>Fri, 18 Mar 2011 15:59:00 +0000</pubDate>
		<dc:creator>Jayvardhan Patil</dc:creator>
				<category><![CDATA[MOSS 2007]]></category>
		<category><![CDATA[SharePoint 2010]]></category>
		<category><![CDATA[XSLT Code Samples]]></category>

		<guid isPermaLink="false">http://codeforfuture.com/2011/03/18/how-to-remove-all-html-tags-from-a-string-using-xslt/</guid>
		<description><![CDATA[This is something a SharePoint programmer usually faces. I hope following solution give you help to move ahead. &#160; Removing all HTML tags from a string &#60;xsl:template name=&#34;removeHtmlTags&#34;&#62; &#60;xsl:param name=&#34;html&#34;/&#62; &#60;xsl:choose&#62; &#160;&#160;&#160; &#60;xsl:when test=&#34;contains($html, &#8216;&#38;lt;&#8217;)&#34;&#62; &#160;&#160;&#160;&#160;&#160;&#160;&#160; &#60;xsl:value-of select=&#34;substring-before($html, &#8216;&#38;lt;&#8217;)&#34;/&#62; &#160;&#160;&#160;&#160;&#160;&#160;&#160; &#60;!&#8211; Recurse through HTML &#8211;&#62; &#160;&#160;&#160;&#160;&#160;&#160;&#160; &#60;xsl:call-template name=&#34;removeHtmlTags&#34;&#62; &#160;&#160;&#160;&#160;&#160;&#160;&#160; &#60;xsl:with-param name=&#34;html&#34; select=&#34;substring-after($html, &#8216;&#38;gt;&#8217;)&#34;/&#62; &#160;&#160;&#160;&#160;&#160;&#160;&#160; &#60;/xsl:call-template&#62; [...]]]></description>
			<content:encoded><![CDATA[<p>This is something a SharePoint programmer usually faces. I hope following solution give you help to move ahead.</p>
<p>&#160;</p>
<p><strong>Removing all HTML tags from a string</strong></p>
<p>&lt;xsl:template name=&quot;removeHtmlTags&quot;&gt;   <br />&lt;xsl:param name=&quot;html&quot;/&gt;    <br />&lt;xsl:choose&gt;    <br />&#160;&#160;&#160; &lt;xsl:when test=&quot;contains($html, &#8216;&amp;lt;&#8217;)&quot;&gt;    <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; &lt;xsl:value-of select=&quot;substring-before($html, &#8216;&amp;lt;&#8217;)&quot;/&gt;    <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; &lt;!&#8211; Recurse through HTML &#8211;&gt;    <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; &lt;xsl:call-template name=&quot;removeHtmlTags&quot;&gt;    <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; &lt;xsl:with-param name=&quot;html&quot; select=&quot;substring-after($html, &#8216;&amp;gt;&#8217;)&quot;/&gt;    <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; &lt;/xsl:call-template&gt;    <br />&#160;&#160;&#160; &lt;/xsl:when&gt;    <br />&#160;&#160;&#160; &lt;xsl:otherwise&gt;    <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; &lt;xsl:value-of select=&quot;$html&quot;/&gt;    <br />&#160;&#160;&#160; &lt;/xsl:otherwise&gt;    <br />&lt;/xsl:choose&gt;    <br />&lt;/xsl:template&gt;</p>
<p>&#160;</p>
<p>Thanks.</p>
]]></content:encoded>
			<wfw:commentRss>http://codeforfuture.com/2011/03/18/how-to-remove-all-html-tags-from-a-string-using-xslt/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to remove thousand separator from a number field of SharePoint using XSLT?</title>
		<link>http://codeforfuture.com/2011/03/17/how-to-remove-thousand-separator-from-a-number-field-of-sharepoint-using-xslt/</link>
		<comments>http://codeforfuture.com/2011/03/17/how-to-remove-thousand-separator-from-a-number-field-of-sharepoint-using-xslt/#comments</comments>
		<pubDate>Thu, 17 Mar 2011 15:52:00 +0000</pubDate>
		<dc:creator>Jayvardhan Patil</dc:creator>
				<category><![CDATA[SharePoint 2010]]></category>
		<category><![CDATA[XSLT Code Samples]]></category>

		<guid isPermaLink="false">http://codeforfuture.com/2011/03/17/how-to-remove-thousand-separator-from-a-number-field-of-sharepoint-using-xslt/</guid>
		<description><![CDATA[While working with SharePoint numerical columns, we do face situations when we do not need the thousand separator from the numbers. For the same, please use the following code. &#160; &#60;xsl:variable name=&#34;MyPrice&#34;&#62; &#160;&#160;&#160; &#60;xsl:choose&#62; &#160;&#160;&#160; &#60;xsl:when test=&#34;contains(@Price, &#8216;,&#8217;)&#34;&#62; &#160;&#160;&#160;&#160;&#160;&#160;&#160; &#60;xsl:value-of select=&#34;concat(substring-before(@Price, &#8216;,&#8217;), substring-after(@Price, &#8216;,&#8217;))&#34; /&#62; &#160;&#160;&#160; &#60;/xsl:when&#62; &#160;&#160;&#160; &#60;xsl:otherwise&#62; &#160;&#160;&#160;&#160;&#160;&#160;&#160; &#60;xsl:value-of select=&#34;@Price&#34; /&#62; &#160;&#160;&#160; &#60;/xsl:otherwise&#62; [...]]]></description>
			<content:encoded><![CDATA[<p>While working with SharePoint numerical columns, we do face situations when we do not need the thousand separator from the numbers. For the same, please use the following code.</p>
<p>&#160;</p>
<p>&lt;xsl:variable name=&quot;MyPrice&quot;&gt;    <br />&#160;&#160;&#160; &lt;xsl:choose&gt;     <br />&#160;&#160;&#160; &lt;xsl:when test=&quot;contains(@Price, &#8216;,&#8217;)&quot;&gt;     <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; &lt;xsl:value-of select=&quot;concat(substring-before(@Price, &#8216;,&#8217;), substring-after(@Price, &#8216;,&#8217;))&quot; /&gt;     <br />&#160;&#160;&#160; &lt;/xsl:when&gt;     <br />&#160;&#160;&#160; &lt;xsl:otherwise&gt;     <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; &lt;xsl:value-of select=&quot;@Price&quot; /&gt;     <br />&#160;&#160;&#160; &lt;/xsl:otherwise&gt;     <br />&#160;&#160;&#160; &lt;/xsl:choose&gt;     <br />&lt;/xsl:variable&gt;</p>
<p>&#160;</p>
<p>There is always a better solution to what we do, so if you know anything better, do let me know.</p>
]]></content:encoded>
			<wfw:commentRss>http://codeforfuture.com/2011/03/17/how-to-remove-thousand-separator-from-a-number-field-of-sharepoint-using-xslt/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to compare dates using XSLT and find the largest one?</title>
		<link>http://codeforfuture.com/2011/03/16/how-to-compare-dates-using-xslt-and-find-the-largest-one/</link>
		<comments>http://codeforfuture.com/2011/03/16/how-to-compare-dates-using-xslt-and-find-the-largest-one/#comments</comments>
		<pubDate>Wed, 16 Mar 2011 15:40:00 +0000</pubDate>
		<dc:creator>Jayvardhan Patil</dc:creator>
				<category><![CDATA[SharePoint 2010]]></category>
		<category><![CDATA[XSLT Code Samples]]></category>
		<category><![CDATA[reusable code]]></category>
		<category><![CDATA[Date comparision]]></category>

		<guid isPermaLink="false">http://codeforfuture.com/2011/03/16/how-to-compare-dates-using-xslt-and-find-the-largest-one/</guid>
		<description><![CDATA[While working in SharePoint dataviews, we need to compare dates several times to find out a larger one. While I wondered around this and I see there is no direct function to do this. I found a workaround which I generally use. &#160; 1. Create 2 variables from dates. I’m converting both dates to US [...]]]></description>
			<content:encoded><![CDATA[<p>While working in SharePoint dataviews, we need to compare dates several times to find out a larger one. While I wondered around this and I see there is no direct function to do this.</p>
<p>I found a workaround which I generally use. </p>
<p>&#160;</p>
<p><strong>1. Create 2 variables from dates.</strong> I’m converting both dates to US format and then to a number with year, month and date sequence to ensure correctness.</p>
<p>&#160;</p>
<p>&lt;xsl:variable name=&quot;ExpiryDate1&quot; select=&quot;number(ddwrt:FormatDateTime(string(@ExpirationDate), 1033, &#8216;yyyyMMdd&#8217;))&quot;/&gt;</p>
<p>&lt;xsl:variable name=&quot;OtherDate2&quot; select=&quot;number(ddwrt:FormatDateTime(string(@OtherDate), 1033, &#8216;yyyyMMdd&#8217;))&quot;/&gt;</p>
<p>&#160;</p>
<p><strong>2. Compare</strong> them to find out which one is greater</p>
<p>&lt;xsl:choose&gt;   <br />&lt;xsl:when test=’ExpirationDate-OtherDate &gt;= 0&#8242;&gt;</p>
<p>&#160;&#160; // Do Something   <br />&lt;/xsl:when&gt;    <br />&lt;xsl:otherwise&gt;&#160; </p>
<p>&#160; // Do Something</p>
<p>&lt;/xsl:otherwise&gt;   <br />&lt;/xsl:choose&gt;</p>
<p>&#160;</p>
<p>I don’t claim that this the best solution I have got, while it works very well. If you know anything better, please share!</p>
]]></content:encoded>
			<wfw:commentRss>http://codeforfuture.com/2011/03/16/how-to-compare-dates-using-xslt-and-find-the-largest-one/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to remove link for SharePoint lookup column from a DataView WebPart using XSLT</title>
		<link>http://codeforfuture.com/2011/03/15/how-to-remove-link-for-sharepoint-lookup-column-from-a-dataview-webpart-using-xslt/</link>
		<comments>http://codeforfuture.com/2011/03/15/how-to-remove-link-for-sharepoint-lookup-column-from-a-dataview-webpart-using-xslt/#comments</comments>
		<pubDate>Tue, 15 Mar 2011 15:18:14 +0000</pubDate>
		<dc:creator>Jayvardhan Patil</dc:creator>
				<category><![CDATA[SharePoint 2010]]></category>
		<category><![CDATA[XSLT Code Samples]]></category>
		<category><![CDATA[reusable code]]></category>
		<category><![CDATA[dataview]]></category>
		<category><![CDATA[lookup columns]]></category>

		<guid isPermaLink="false">http://codeforfuture.com/2011/03/15/how-to-remove-link-for-sharepoint-lookup-column-from-a-dataview-webpart-using-xslt/</guid>
		<description><![CDATA[Whenever we use a lookup column into the dataview or listview, it displays a link to the lookup item it is referring to. This is the same behavior you see on the backend list views. But sometimes we just need to show data on page and do not need the link to the lookup item. [...]]]></description>
			<content:encoded><![CDATA[<p>Whenever we use a lookup column into the dataview or listview, it displays a link to the lookup item it is referring to. This is the same behavior you see on the backend list views. But sometimes we just need to show data on page and do not need the link to the lookup item.</p>
<p>Setting disable-output-escaping=&quot;no&quot; doesn’t work in this case, because then it displays the HTML coding for the link (‘a’ tag).</p>
<p>The easiest solution to get rid of ‘A’ tag is to remove it completely using sub-string function.</p>
<p>For example if you are showing a column named “Category”, in this case you can replace </p>
<p>&lt;xsl:value-of select=&quot;@Category&quot; disable-output-escaping=&quot;yes&quot;/&gt;</p>
<p>&#160;</p>
<p>with </p>
<p>&#160;</p>
<p>&lt;xsl:value-of select=&quot;substring-before(substring-after(@Category, &#8216;&amp;gt;&#8217;), &#8216;&amp;lt;&#8217;)&quot; disable-output-escaping=&quot;yes&quot;/&gt;</p>
]]></content:encoded>
			<wfw:commentRss>http://codeforfuture.com/2011/03/15/how-to-remove-link-for-sharepoint-lookup-column-from-a-dataview-webpart-using-xslt/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>How to create a custom sequential number field in MOSS list?</title>
		<link>http://codeforfuture.com/2011/01/29/how-to-create-a-custom-sequential-number-field-in-moss-list/</link>
		<comments>http://codeforfuture.com/2011/01/29/how-to-create-a-custom-sequential-number-field-in-moss-list/#comments</comments>
		<pubDate>Sat, 29 Jan 2011 06:16:29 +0000</pubDate>
		<dc:creator>Hemanth</dc:creator>
				<category><![CDATA[Miscellaneuos]]></category>
		<category><![CDATA[autonumber]]></category>
		<category><![CDATA[custom]]></category>
		<category><![CDATA[field]]></category>
		<category><![CDATA[sequential]]></category>

		<guid isPermaLink="false">http://codeforfuture.com/?p=158</guid>
		<description><![CDATA[I recently came across a requirement where in customer wanted to auto generate a custom sequential number with current date as a part of this sequential number on a SharePoint list. Although SharePoint has an inbuilt “ID” field and Issue Tracker list can Issue ID. But they simply just provide running numbers like 1, 2, [...]]]></description>
			<content:encoded><![CDATA[<p>I recently came across a requirement where in customer wanted to auto generate a custom sequential number with current date as a part of this sequential number on a SharePoint list.</p>
<p>Although SharePoint has an inbuilt “ID” field and Issue Tracker list can Issue ID. But they simply just provide running numbers like 1, 2, 3, 4.What if you need some prefix and also a choice from where the sequential numbers should start.</p>
<p>You can achieve this through different approaches, like using an event handler etc., but I think the following is the simplest of all.</p>
<p>Here is the step by step instructions on how to get this done.</p>
<p>There are two parts for this solution.</p>
<p>Part 1: Getting the desired sequential number</p>
<p>1. First of all we need to create a list which will help us in generating the numbers, let us call this list as “Unique Numbers”</p>
<p>2. Add one number field, &#8220;LastNumber&#8221; and one calculated field &#8220;NextNumber&#8221; to this list. The formula to be used for NextNumber is &#8220;[LastNumber]+1&#8243;(Note: The data type returned from this formula should be number)</p>
<p>3. Let us add a new Item to this list with the following information</p>
<p>Title : ORDERNO</p>
<p>LastNumber : 99</p>
<p>4. Now we need to create the second list I will call it “Orders”</p>
<p>5. Add a number field “OrderNo” to this new list, now we are ready to build the workflow to generate unique sequential numbers</p>
<p>6. Open your web site in SharePoint Designer (SPD) .Create a new workflow. In the File menu, select New-&gt;Workflow&#8230;</p>
<p>7. In the dialog that appears, give the workflow a name, e.g. &#8220;Assign Order Number&#8221;. In the drop-down list below, choose to connect the workflow to the list you want to assign auto sequential numbers to (In this case, this would be a list called Orders). Then check the middle option of the three check boxes below, &#8220;Start this workflow automatically when a new item is created&#8221;.</p>
<p>8. On the same dialog, there is a button at the bottom called &#8220;Variables&#8221;. Click it. Choose &#8220;Add&#8221;, name it &#8220;mNumber&#8221; and make it of type &#8220;Number&#8221;. Click OK, and OK again. Now, click &#8220;Next&#8221; in the dialog.</p>
<p>9. You can leave the step name as is (&#8220;Step 1&#8243;). Leave the &#8220;Condition&#8221; empty, and click the &#8220;Actions&#8221; button. In the menu that appears, select &#8220;Set workflow variable&#8221;. This will add an action to the list to the right of the Actions button. Now you need to set up this action. Click the link &#8220;Workflow variable&#8221;, this will open a small dropdown list. Select &#8220;Variable: mNumber&#8221;. Then click the next link, &#8220;value&#8221;. This will display a textbox and a small button in place of the link. Click the button (&#8220;Show databindings&#8221;). This will bring up a new dialog, where you will select the value to assign to the &#8220;mNumber&#8221; variable. In the &#8220;Data Source&#8221; drop down, select &#8220;Unique Numbers&#8221;. In the drop down just below (&#8220;Field:&#8221;) select &#8220;NextNumber&#8221;. Now, the dialog will be expanded with a &#8220;Find list object&#8221; section. In the drop down &#8220;Field&#8221;, select &#8220;Unique Numbers:Title&#8221;, and in the value box below, type ORDERNO. Click OK. SPD will now give a warning that the look up might return more than one value, just select &#8220;Yes&#8221; to continue here.</p>
<p>10. Now you add one more action. Click the &#8220;Actions&#8221; button and select &#8220;Set field in current object&#8221;. Click the &#8220;field&#8221; link in the new action, and in the list that appears, select the field in your list that is the target of the autonumber (e.g. &#8220;OrderNo&#8221;). Then click the &#8220;value&#8221; link, and once again click the little button that appears (&#8220;Show databindings&#8221;). This time, in the &#8220;Data Source&#8221; drop down, select &#8220;Workflow data&#8221;, and then in the next drop down, select the variable &#8220;mNumber&#8221;. Click OK.</p>
<p>11. Add yet another action, this time choose the &#8220;Update list item&#8221; action. Click the link in the new action, &#8220;update list object in this list&#8221;. This brings up another dialog, in the &#8220;List&#8221; drop down, select &#8220;Unique Numbers&#8221;. Click the &#8220;Add&#8221; button just below to the right, and in the new dialog&#8217;s first drop down (&#8220;Set this field:&#8221;), select &#8220;LastNumber&#8221; and to the right of the &#8220;To this value:&#8221; text box, click the formula button. Again, a new dialog appears, in the &#8220;Data Source&#8221; dropdown, select &#8220;Workflow data&#8221; and then in the &#8220;Field&#8221; drop down, select &#8220;Variable: mNumber&#8221;. Click OK twice to get back to the &#8220;Update list item&#8221; dialog. Now, once again in the &#8220;Find list object&#8221; section, select &#8220;Unique Numbers:Title&#8221;, and type in the value ORDERNO. SPD will give a warning again, click &#8220;Yes&#8221;.</p>
<p>12. That&#8217;s it. Click the &#8220;Finish&#8221; button, and if all is well, the workflow will be created.</p>
<p>13. Now when you create a new item in the Customers list you will see that a unique sequential “OrderNo” is generated</p>
<p>Now we have achieved our first goal of generating a desired sequential number. Now on to Part 2</p>
<p>Part 2: Adding a prefix to the sequential number, in this case current date in YYYYMMDD format</p>
<p>1. Create a field “Today’s Date” this should be of “Date and Time” type and default value should be today’s date.</p>
<p>2. Create another field “OrderID” of calculated type and use this formula</p>
<p>=TEXT(Today’s Date,&#8221;yyyymmdd&#8221;)&amp;OrderNo</p>
<p>Now when you create a new item on Orders list you will see that a new OrderID is generated .</p>
<p>Note: The field names mentioned here for example purpose, you can use any name with the same logic to make it work.</p>
]]></content:encoded>
			<wfw:commentRss>http://codeforfuture.com/2011/01/29/how-to-create-a-custom-sequential-number-field-in-moss-list/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Best mobile wallet application I would recommend</title>
		<link>http://codeforfuture.com/2010/07/18/best-mobile-wallet-application-i-would-recommend/</link>
		<comments>http://codeforfuture.com/2010/07/18/best-mobile-wallet-application-i-would-recommend/#comments</comments>
		<pubDate>Sun, 18 Jul 2010 05:10:40 +0000</pubDate>
		<dc:creator>Jayvardhan Patil</dc:creator>
				<category><![CDATA[Computer Security]]></category>
		<category><![CDATA[Online Security]]></category>

		<guid isPermaLink="false">http://codeforfuture.com/?p=159</guid>
		<description><![CDATA[Far away from Microsoft and Google technologies, this is the first time I&#8217;m going to write about some product. Recently I brought a new handset and I started out searching third party applications that are available for the same. Along with some games, opera mobile browser, gmail, nimbuzz (or skype) what I always need is [...]]]></description>
			<content:encoded><![CDATA[<p>Far away from Microsoft and Google technologies, this is the first time I&#8217;m going to write about some product. Recently I brought a new handset and I started out searching third party applications that are available for the same.</p>
<p>Along with some games, opera mobile browser, gmail, nimbuzz (or skype) what I always need is a good mobile wallet application which will store my banking details, credit card details, ATM pins, some secret notes, etc.</p>
<p>Previously I use to store all this information into password protected notes, but recently when my friend from South Africa become victim of some <a href="http://en.wikipedia.org/wiki/Spyware" target="_blank">spyware </a> and lost his PayPal balance, I got more serious about the security of my data in my PC and in my mobile. I realized that I need some tool which will store my sensitive information in an encrypted format which is not easy to break.</p>
<p>So I started my journey to search a tool which will keep my data secure in my mobile. After trying around 5-6 products, I came across a wallet application which promised all. I said &#8220;promised&#8221; because many tools promise a lot and perform much lesser. The promises were high, so I decided if this tool is able to keep it words then I&#8217;ll surely recommend it to my readers.</p>
<p><a href="http://codeforfuture.com/wp-content/uploads/2010/07/200.png"><img class="alignleft size-full  wp-image-162" title="200" src="http://codeforfuture.com/wp-content/uploads/2010/07/200.png" alt="Mobile Wallet Login Screen" width="240" height="320" /></a>Now when I&#8217;m using this tool on my mobile and PC (yes PC too) from last 6 months and I&#8217;m completely satisfied with it, its time I should introduce it to you guys.</p>
<p><strong>The tool is <a href="http://www.spb.com/symbian-software/wallet/" target="_blank">SPB Wallet</a> from SPB Software</strong></p>
<p>Using SPB Wallet, I can not only store my banking/credit card details, i can store them in a categorized fashion. All the information is encrypted using <a href="http://en.wikipedia.org/wiki/Advanced_Encryption_Standard" target="_blank">Strong 256-bit AES encryption</a>.  All the data is password protected and they have their own click keyboard which keeps <a href="http://en.wikipedia.org/wiki/Key_logging" target="_blank">key Loggers</a> (viruses which steal your data by logging your keys) guessing what you are typing. So this satisfied my purpose of having a tool which will keep my data extremely secure. More over if you forget to close the application, it locks up automatically. Man, this is amaaaazing&#8230;</p>
<p><a href="http://codeforfuture.com/wp-content/uploads/2010/07/smaller_401.png"><img class="alignright size-full wp-image-166" title="smaller_401" src="http://codeforfuture.com/wp-content/uploads/2010/07/smaller_401.png" alt="Desktop Secure Application" width="320" height="249" /></a>The best part is it also has a desktop tool which comes in the same package, which installs on your desktop and you can synchronize the data between your mobile and desktop. It also integrates with browser and then you can choose to store your email/website passwords into the wallet so that when next time you forget them, you can check them into the wallet.</p>
<p>Another security feature I love the most is, it doesn&#8217;t show the pins/passwords directly on the screen instead it shows **** and when you click on the stars, it reveals your password to you.</p>
<p><strong>Icing on the cake:</strong><br />
Above all, it has a very nice UI which gives a very rich experience. See some screen shots below</p>
<p><a href="http://codeforfuture.com/wp-content/uploads/2010/07/100.png"><img class="alignleft size-full wp-image-164" title="Mobile Wallet Credit Card Screen" src="http://codeforfuture.com/wp-content/uploads/2010/07/100.png" alt="" width="240" height="320" /> </a><a href="http://codeforfuture.com/wp-content/uploads/2010/07/300.png"><img class="alignleft size-full wp-image-165" title="Wallet First screen" src="http://codeforfuture.com/wp-content/uploads/2010/07/300.png" alt="" width="240" height="320" /></a></p>
<p><strong>Things I didn&#8217;t like about SPB Wallet:</strong></p>
<ol>
<li> While using the desktop application, and when you have connected your mobile using Bluetooth, you need to click on the Sync button twice or thrice. But being a programmer I can understand that this must be a phone-PC connectivity issue so we cannot blame the coders of this application <img src='http://codeforfuture.com/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> </li>
<li>&#8216;Search&#8217; is the feature which is used less, so instead of giving &#8216;search&#8217; button, if they would have had &#8216;Exit&#8217; then it would have saved time. Now you always need to choose &#8216;Exit&#8217; from the menu. But this may be my personal view.</li>
</ol>
<p><strong>Bad news: </strong>This is not for those who believe that best things in life are free. It has some moderate price. But I think it is worth than becoming a victim of viruses and loosing your bank balance and getting huge credit card bills. My purpose of buying SPB Wallet was &#8211; being a user of online banking, I wanted to protect my financial information.</p>
<p>You may find more information about the feature here<br />
<a href="http://www.spb.com/symbian-software/wallet/" target="_blank"> http://www.spb.com/symbian-software/wallet/</a></p>
]]></content:encoded>
			<wfw:commentRss>http://codeforfuture.com/2010/07/18/best-mobile-wallet-application-i-would-recommend/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How taking surveys can help our future?</title>
		<link>http://codeforfuture.com/2009/10/11/how-not-taking-online-surveys-can-hurt-our-future/</link>
		<comments>http://codeforfuture.com/2009/10/11/how-not-taking-online-surveys-can-hurt-our-future/#comments</comments>
		<pubDate>Sat, 10 Oct 2009 22:15:23 +0000</pubDate>
		<dc:creator>Jayvardhan Patil</dc:creator>
				<category><![CDATA[Future Technologies]]></category>
		<category><![CDATA[Importance of Online Surveys]]></category>
		<category><![CDATA[online surverys]]></category>
		<category><![CDATA[Paid surveys]]></category>

		<guid isPermaLink="false">http://codeforfuture.com/?p=142</guid>
		<description><![CDATA[Few of us do take the surveys but most of us don't.  Those few people who are answering the surveys actually decide how the future products or services will look and function. If more and more people come forward and take surveys, the companies will be in a better position to know what to deliver. This will save their time and ours too.]]></description>
			<content:encoded><![CDATA[<p><script src="http://digg.com/tools/diggthis.js" type="text/javascript"></script>Now days there are lot of companies which run campaigns where they invite people from different backgrounds, different thinking and different lifestyles to complete a simple questionnaire. On average these questionnaire <strong>do not take more than 5 minutes</strong>. But as our lives go busy, we try to avoid such opportunities thinking they are completely useless and wastage of time.</p>
<p>But think again, does taking surveys really waste our time? <strong>I do not agree.</strong> They pay us back. They pay us back so well than we ever realize. Imagine a service oriented company providing service but not listening to customer feedback! What will happen to their business? It will go lost and customers will go running to competitors. But what if all of them go deaf and no one is actually listening to the customer? <strong>Obviously we customers suffer! </strong>Same thing happens when we refuse to take surveys.</p>
<p><strong>Why does it matter?</strong></p>
<p>Few of us do take the surveys but most of us don&#8217;t.  <strong>Those few people who are answering the surveys actually decide how the future products or services will look and function. </strong>If more and more people come forward and take surveys, the companies will be in a better position to know what to deliver. This will save their time and ours too.</p>
<p><strong>Economical cause:</strong> When companies will be in a better position to deliver better products in fewer time frames, it will save their money and will reduce the product price too. Now it is only us who will benefit if the cost reduces. Imagine next morning you are able to buy iPhone 3G in a price of other less featured mobile phone models.</p>
<p><strong>power of taking surveys</strong></p>
<p><strong></strong><strong>Take one better example. </strong>After releasing Windows-XP, few years later the software giant came to know that people have a relatively higher priority to the battery life of the laptop. So with their next product Windows Vista, they come up with software changes which now enables laptops to long 30% more with the same battery. Intel too supported this and came up with energy efficient processors. Now if we would have been successful to give this feedback in the year 2002 itself, all the world&#8217;s laptops that run Windows-XP would have consumed 30% less power for more than 5 years! <strong>Imagine the kind of electricity saved. Every day we cut down 214000 acres (yes, 214,000 acres) of rainforest land most of which goes for generating electricity.<br />
</strong></p>
<p><strong>A survey is a 2 way sword. </strong>The lesser people answer it, the more deep cuts it will give. There are many social, economical benefits of taking surveys.</p>
<p>Now days some companies even <strong>pay you for answering surveys. </strong>Answering a survey is a kind of self help. Please do a favor to yourself and spend <em>at least 1 hour per month</em> answering surveys. I think we can do this much for our and upcoming generation&#8217;s better future.</p>
<p>There is much to write about surveys and how they can be better and efficient. How to build a survey which takes lesser time and yields maximum information and how they should be analyzed correctly. But before writing more, I would like to hear from you. Feel free to leave a comment.</p>
<p>Thanks!</p>
]]></content:encoded>
			<wfw:commentRss>http://codeforfuture.com/2009/10/11/how-not-taking-online-surveys-can-hurt-our-future/feed/</wfw:commentRss>
		<slash:comments>26</slash:comments>
		</item>
	</channel>
</rss>

