Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Web Development
  3. SharePoint
  4. programatically pull the data from particular folder in sharepoint 2007 custom list

programatically pull the data from particular folder in sharepoint 2007 custom list

Scheduled Pinned Locked Moved SharePoint
sharepointquestion
5 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • V Offline
    V Offline
    vimalkumarsinghal
    wrote on last edited by
    #1

    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

    J 1 Reply Last reply
    0
    • V vimalkumarsinghal

      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

      J Offline
      J Offline
      JimmyRopes
      wrote on last edited by
      #2

      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

      V 1 Reply Last reply
      0
      • J 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. JimmyRopes

        V Offline
        V Offline
        vimalkumarsinghal
        wrote on last edited by
        #3

        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.

        J 1 Reply Last reply
        0
        • V vimalkumarsinghal

          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.

          J Offline
          J Offline
          JimmyRopes
          wrote on last edited by
          #4

          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

          V 1 Reply Last reply
          0
          • J 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. JimmyRopes

            V Offline
            V Offline
            vimalkumarsinghal
            wrote on last edited by
            #5

            hi 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

            1 Reply Last reply
            0
            Reply
            • Reply as topic
            Log in to reply
            • Oldest to Newest
            • Newest to Oldest
            • Most Votes


            • Login

            • Don't have an account? Register

            • Login or register to search.
            • First post
              Last post
            0
            • Categories
            • Recent
            • Tags
            • Popular
            • World
            • Users
            • Groups