programatically pull the data from particular folder in sharepoint 2007 custom list
-
hi please can any one tell me how can i pull the data from particular folder in sharepoint 2007 custom list i tried doing that but it is retrieving the data in recursive manner. i am not able to get into that particular folder created in the custom list and fetch those particular items only. regards vimal kumar
-
hi please can any one tell me how can i pull the data from particular folder in sharepoint 2007 custom list i tried doing that but it is retrieving the data in recursive manner. i am not able to get into that particular folder created in the custom list and fetch those particular items only. regards vimal kumar
Are you trying to retrieve these data from a workstation or from a SharePoint component like a SP web part, a SP workflow, SP event handler or SP timer job? The answer depends if you are executing on the SP Server or on a workstation.
Simply Elegant Designs JimmyRopes Designs
Think inside the box! ProActive Secure Systems
I'm on-line therefore I am. JimmyRopes -
Are you trying to retrieve these data from a workstation or from a SharePoint component like a SP web part, a SP workflow, SP event handler or SP timer job? The answer depends if you are executing on the SP Server or on a workstation.
Simply Elegant Designs JimmyRopes Designs
Think inside the box! ProActive Secure Systems
I'm on-line therefore I am. JimmyRopeshi thanks for your reply yes i am retrieving the data in user concrol and plugging it in the sharepoint page using webpart. i need to fetch the data from the particular folder created with in the list of the MOSS. using SPobject.
-
hi thanks for your reply yes i am retrieving the data in user concrol and plugging it in the sharepoint page using webpart. i need to fetch the data from the particular folder created with in the list of the MOSS. using SPobject.
This is some code from a web part that reads a mapping from a list.
using Microsoft.SharePoint;
SPSite site = new SPSite(SiteURL);
SPWeb web = site.OpenWeb();SPList listTeamMapping = web.GetList(SiteURL + "/Lists/<listname>");
for (int i = 0; i < listTeamMapping.ItemCount; i++)
{
if (SubSite == listTeamMapping.Items[i].GetFormattedValue("TeamName"))
{
Team = listTeamMapping.Items[i].GetFormattedValue("Mapping");
break;
} // if (SubSite == listTeamMapping.Items[i].GetFormattedValue("TeamName"))
} // for (int i = 0; i < listTeamMapping.ItemCount; i++)Simply Elegant Designs JimmyRopes Designs
Think inside the box! ProActive Secure Systems
I'm on-line therefore I am. JimmyRopes -
This is some code from a web part that reads a mapping from a list.
using Microsoft.SharePoint;
SPSite site = new SPSite(SiteURL);
SPWeb web = site.OpenWeb();SPList listTeamMapping = web.GetList(SiteURL + "/Lists/<listname>");
for (int i = 0; i < listTeamMapping.ItemCount; i++)
{
if (SubSite == listTeamMapping.Items[i].GetFormattedValue("TeamName"))
{
Team = listTeamMapping.Items[i].GetFormattedValue("Mapping");
break;
} // if (SubSite == listTeamMapping.Items[i].GetFormattedValue("TeamName"))
} // for (int i = 0; i < listTeamMapping.ItemCount; i++)Simply Elegant Designs JimmyRopes Designs
Think inside the box! ProActive Secure Systems
I'm on-line therefore I am. JimmyRopeshi thank you for your reply the code that you posted is reading all the data recursively from the list.. it does not resolve my problem folder structure is like that.. RootFolder=%2fLists%2fPartner%2fFirst11&---- i want to fetch the item which are in the First11 folder in the Partner list.. regard vimal