<?xml version="1.0" encoding="utf-8"?>
<rss xmlns:atom="https://www.w3.org/2005/Atom" xmlns:sy="https://purl.org/rss/1.0/modules/syndication/" xmlns:dc="https://purl.org/dc/elements/1.1/" xmlns:content="https://purl.org/rss/1.0/modules/content/" xmlns:wfw="https://wellformedweb.org/CommentAPI/" xmlns:slash="https://purl.org/rss/1.0/modules/slash/"
  version="2.0">
  <channel>
    <title>Xperienzz</title>
    <atom:link
      href="https://docs.microsoft.com/archive/blogs/souravnayyar/feed.xml"
      rel="self"
      type="application/rss+xml" />
    <link>https://docs.microsoft.com/archive/blogs/souravnayyar/feed.xml</link>
    <description>sharing  &amp;#039;experiences&amp;#039;</description>
    <lastBuildDate>Wed, 17 Apr 2019 03:50:33 GMT</lastBuildDate>
    <language>en-US</language>
    <sy:updatePeriod>hourly</sy:updatePeriod>
    <sy:updateFrequency>1</sy:updateFrequency>
    <item>
      <title>Getting selected columns from a sharepoint list using SPQuery.ViewFields</title>
      <link>https://docs.microsoft.com/archive/blogs/souravnayyar/getting-selected-columns-from-a-sharepoint-list-using-spquery-viewfields</link>
      <pubDate>Sun, 05 Aug 2007 04:11:00 GMT</pubDate>
      <dc:creator><![CDATA[souravnayyar]]></dc:creator>
      <guid
        isPermaLink="false">https://blogs.msdn.microsoft.com/souravnayyar/2007/08/05/getting-selected-columns-from-a-sharepoint-list-using-spquery-viewfields/</guid>
      <description><![CDATA[&nbsp;
Sometimes there is a need to query&nbsp;data pertaining&nbsp;to only&nbsp;specified columns...]]></description>
      <content:encoded><![CDATA[<P mce_keep="true">&nbsp;</P><FONT face="Segoe UI" color=black size=2>
<P>Sometimes there is a need to query&nbsp;data pertaining&nbsp;to only&nbsp;specified columns from a sharepoint list.</P>
<P>Let's say I have&nbsp;a list "<STRONG>Employee</STRONG>"&nbsp;with columns - Name, ID, &nbsp;Age, Sex, Address, SSN etc. and&nbsp;I&nbsp;just want to retrieve data corresponding to columns&nbsp;<STRONG>Name &amp; SSN </STRONG>for Employee with ID = 9<STRONG>.</STRONG></P>
<P>Syntactically, it can be&nbsp;accomplished as below -</P>
<P><EM>// Code starts here </EM></P>
<P><EM>SPListItemCollection itemCol = null;</EM></P>
<P><EM>SPSite site = new SPSite("site url");<BR>SPWeb web = site.OpenWeb();</EM></P>
<P><EM>SPList objList = web.Lists["listName"];<BR>SPQuery qry = new SPQuery();<BR>qry.Query = "&lt;Where&gt;&lt;Eq&gt;&lt;FieldRef Name='ID' /&gt;&lt;Value Type='Text'&gt;"9"&lt;/Value&gt;&lt;/Eq&gt;&lt;/Where&gt;";<BR><STRONG>qry.ViewFields</STRONG> = &lt;FieldRef Name='Name'/&gt;&lt;FieldRef Name='SSN'/&gt;</EM></P>
<P mce_keep="true"><EM>itemCol = objList.GetItems(qry);</EM></P>
<P mce_keep="true"><EM>// Code&nbsp;ends here </EM></P>
<P mce_keep="true">&nbsp;</P>
<P>&nbsp;&nbsp;</P></FONT>]]></content:encoded>
    </item>
    <item>
      <title>Compatibility meter - Share point 2007 and MS Access 2007</title>
      <link>https://docs.microsoft.com/archive/blogs/souravnayyar/compatibility-meter-share-point-2007-and-ms-access-2007</link>
      <pubDate>Sun, 10 Jun 2007 08:37:00 GMT</pubDate>
      <dc:creator><![CDATA[souravnayyar]]></dc:creator>
      <guid
        isPermaLink="false">https://blogs.msdn.microsoft.com/souravnayyar/2007/06/10/compatibility-meter-share-point-2007-and-ms-access-2007/</guid>
      <description><![CDATA[I was on this engagement where I had to make use of management information stored in MS Access 2007...]]></description>
      <content:encoded><![CDATA[<P class=MsoNormal style="MARGIN: 0cm 0cm 10pt"><SPAN lang=EN-US style="mso-ansi-language: EN-US"><FONT size=3><FONT face=Calibri>I was on this engagement where I had to make use of management information stored in MS Access 2007 and MS Excel 2007 in a share point 2007 site.<SPAN style="mso-spacerun: yes">&nbsp; </SPAN><?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" /><o:p></o:p></FONT></FONT></SPAN></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 10pt"><SPAN lang=EN-US style="mso-ansi-language: EN-US"><FONT size=3><FONT face=Calibri>It’s been 150 years since I used Access to do some basic database management stuff in a small library management application </FONT></FONT></SPAN><SPAN lang=EN-US style="mso-ansi-language: EN-US"><FONT size=3><FONT face=Calibri>and here was with some data in access, some in excel and a share point site. </FONT></FONT></SPAN></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 10pt"><SPAN lang=EN-US style="mso-ansi-language: EN-US"><FONT size=3><FONT face=Calibri>If it was not for the OOTB features of Access 2007 for integration with share point 2007, the same set of tasks would have taken ages or lots of custom coding but I didn’t have to do anything other than some cool OOTB features of Access 2007 to actually make things work.<o:p></o:p></FONT></FONT></SPAN></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 10pt"><SPAN lang=EN-US style="mso-ansi-language: EN-US"><FONT size=3><FONT face=Calibri>Some of these features are – <o:p></o:p></FONT></FONT></SPAN></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 10pt"><FONT size=3><FONT face=Calibri><B style="mso-bidi-font-weight: normal"><SPAN lang=EN-US style="mso-ansi-language: EN-US">Linked tables</SPAN></B><SPAN lang=EN-US style="mso-ansi-language: EN-US"> – This is a nice feature and has been with Access since quite a long time now. Linked tables allow Access to have a table directly linked to a share point site. This allows updating <SPAN style="mso-spacerun: yes">&nbsp;</SPAN>the sharepoint list by just updating the Access table. This helps user who are comfortable using Access to just use it and in turn update the corresponding share point lists.<o:p></o:p></SPAN></FONT></FONT></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 10pt"><FONT size=3><FONT face=Calibri><B style="mso-bidi-font-weight: normal"><SPAN lang=EN-US style="mso-ansi-language: EN-US">Appeding data from an excel file to a sharepoint list</SPAN></B><SPAN lang=EN-US style="mso-ansi-language: EN-US"> - The OOTB excel import feature of sharepoint allows to create a new list on the basis of an excel file but there Is no OOTB feature to append rows of data from excel to a share point list. <o:p></o:p></SPAN></FONT></FONT></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 10pt"><SPAN lang=EN-US style="mso-ansi-language: EN-US"><FONT size=3><FONT face=Calibri>Access 2007 comes to help here. An excel file can be imported into an Access 2007 table. This feature allows to create a new Access 2007 table based on an excel file and also allows to append rows from an excel file to an Access table. <o:p></o:p></FONT></FONT></SPAN></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 10pt"><FONT size=3><SPAN lang=EN-US style="mso-ansi-language: EN-US"><FONT face=Calibri>If you read the paragraph above and replace "table" with a "linked table", you have got a way to append excel rows to a share point list. Interesting huhhhh </FONT></SPAN><SPAN lang=EN-US style="FONT-FAMILY: Wingdings; mso-ansi-language: EN-US; mso-ascii-font-family: Calibri; mso-ascii-theme-font: minor-latin; mso-hansi-font-family: Calibri; mso-hansi-theme-font: minor-latin; mso-char-type: symbol; mso-symbol-font-family: Wingdings"><SPAN style="mso-char-type: symbol; mso-symbol-font-family: Wingdings">J</SPAN></SPAN><SPAN lang=EN-US style="mso-ansi-language: EN-US"><FONT face=Calibri>. <o:p></o:p></FONT></SPAN></FONT></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 10pt"><SPAN lang=EN-US style="mso-ansi-language: EN-US"><FONT size=3><FONT face=Calibri>Similarly there are many features in Access 2007 that allows it to integrate with sharepoint 2007. Look closely, you might be able to implement lots of your requirements using these OOTB features.<o:p></o:p></FONT></FONT></SPAN></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 10pt"><SPAN lang=EN-US style="mso-ansi-language: EN-US"><o:p><FONT face=Calibri size=3></FONT></o:p></SPAN>&nbsp;</P>]]></content:encoded>
    </item>
    <item>
      <title>Establishing relationship between two lists on a share point site</title>
      <link>https://docs.microsoft.com/archive/blogs/souravnayyar/establishing-relationship-between-two-lists-on-a-share-point-site</link>
      <pubDate>Sun, 10 Jun 2007 07:26:00 GMT</pubDate>
      <dc:creator><![CDATA[souravnayyar]]></dc:creator>
      <guid
        isPermaLink="false">https://blogs.msdn.microsoft.com/souravnayyar/2007/06/10/establishing-relationship-between-two-lists-on-a-share-point-site/</guid>
      <description><![CDATA[Before I got to know about what I am going to write here, I was pretty convinced that there is no...]]></description>
      <content:encoded><![CDATA[<P class=MsoNormal style="MARGIN: 0cm 0cm 10pt"><SPAN lang=EN-US style="mso-ansi-language: EN-US"><FONT size=3><FONT face=Calibri>Before I got to know about what I am going to write here, I was pretty convinced that there is no way to establish a relationship between two lists using lookup columns in case of the source column having multiple copies of data. <?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" /><o:p></o:p></FONT></FONT></SPAN></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 10pt"><SPAN lang=EN-US style="mso-ansi-language: EN-US"><FONT size=3><FONT face=Calibri>Using OOTB features of share point a user can only associate a single field from source list with the destination list in form of a lookup column. It should not be the ID since ID won’t be user readable and if it is only a title then it definitely fails in case of multiple copies of title with same value.<o:p></o:p></FONT></FONT></SPAN></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 10pt"><SPAN lang=EN-US style="mso-ansi-language: EN-US"><o:p><FONT face=Calibri size=3></FONT></o:p></SPAN></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 10pt"><SPAN lang=EN-US style="mso-ansi-language: EN-US"><FONT size=3><FONT face=Calibri></FONT></FONT></SPAN>&nbsp;</P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 10pt"><SPAN lang=EN-US style="mso-ansi-language: EN-US"><FONT size=3><FONT face=Calibri>Just to make things a bit more clear – <o:p></o:p></FONT></FONT></SPAN></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 10pt"><SPAN lang=EN-US style="mso-ansi-language: EN-US"><FONT size=3><FONT face=Calibri>If in case we have two lists – Account, Contract. An Account can have multiple contracts. In order to establish a relationship between the two, I associated column – Title from Account list with column Account Name from the Contract list using the look-up column type.</FONT></FONT></SPAN></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 10pt"><SPAN lang=EN-US style="mso-ansi-language: EN-US"><FONT size=+0><FONT face=Calibri><SPAN lang=EN-US style="mso-ansi-language: EN-US"><FONT size=3><BR>This relation-ship works well as long as the title column in Account list is unique. But to use this relationship in share point filters, connections etc. we need to have unique instances of title column to make it work accurately. <o:p></o:p></FONT></SPAN></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 10pt"><SPAN lang=EN-US style="mso-ansi-language: EN-US"><FONT size=3>Situation can be handled accurately if CAML and values returned by a look column are put to use while doing some customization. <o:p></o:p></FONT></SPAN></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 10pt"><SPAN lang=EN-US style="mso-ansi-language: EN-US"><FONT size=3>List of items returned by the CAML query contains values in the form ‘FieldID;#FieldName’ for lookup columns, Where FieldID and FieldName corresponds to the ID and title columns values respectively for the source list.<o:p></o:p></FONT></SPAN></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 10pt"><SPAN lang=EN-US style="mso-ansi-language: EN-US"><FONT size=3>Using the above form, the items can be searched for the corresponding ID’s. This property can be put to good use in scenarios such as<SPAN style="mso-spacerun: yes">&nbsp; </SPAN>- </FONT></SPAN><SPAN lang=EN-US style="mso-ansi-language: EN-US"><FONT size=3>populating values in a dropdown on selection change of another drop down list.<o:p></o:p></FONT></SPAN></P></FONT></FONT></SPAN>
<P class=MsoNormal style="MARGIN: 0cm 0cm 10pt"><SPAN lang=EN-US style="mso-ansi-language: EN-US"><FONT size=3><FONT face=Calibri><o:p></o:p></FONT></FONT></SPAN>&nbsp;</P>]]></content:encoded>
    </item>
    <item>
      <title>Test Page</title>
      <link>https://docs.microsoft.com/archive/blogs/souravnayyar/test-page</link>
      <pubDate>Mon, 02 Apr 2007 06:38:00 GMT</pubDate>
      <dc:creator><![CDATA[souravnayyar]]></dc:creator>
      <guid
        isPermaLink="false">https://blogs.msdn.microsoft.com/souravnayyar/2007/04/02/test-page/</guid>
      <description><![CDATA[Test Page]]></description>
      <content:encoded><![CDATA[Test Page]]></content:encoded>
    </item>
  </channel>
</rss>