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. Populating list columns in Sharepoint 2010 custom doc library

Populating list columns in Sharepoint 2010 custom doc library

Scheduled Pinned Locked Moved SharePoint
helpsharepointquestionannouncement
2 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.
  • A Offline
    A Offline
    Aptiva Dave
    wrote on last edited by
    #1

    Ran into an issue just now and need a little help. I have a custom document library that has two columns for text: Title and VideoLink. This document library is for our HR department to upload training documents to our intranet along with optional videos that they will link from other sites. I can get the documents to upload fine, but nothing is populating in my two text columns. Without displaying my full code, here is basically what I'm doing for both columns:

    dim eItem as splistItem = elist.AddItem()
    ...
    eItem("Title") = txtDocItem.Text.Trim
    eItem("VidLink") = txtVidLink.Text.Trim
    eItem.Update()

    Is there something I'm missing? I've used the same logic to upload pictures to a picture library, and those custom fields work fine.

    A 1 Reply Last reply
    0
    • A Aptiva Dave

      Ran into an issue just now and need a little help. I have a custom document library that has two columns for text: Title and VideoLink. This document library is for our HR department to upload training documents to our intranet along with optional videos that they will link from other sites. I can get the documents to upload fine, but nothing is populating in my two text columns. Without displaying my full code, here is basically what I'm doing for both columns:

      dim eItem as splistItem = elist.AddItem()
      ...
      eItem("Title") = txtDocItem.Text.Trim
      eItem("VidLink") = txtVidLink.Text.Trim
      eItem.Update()

      Is there something I'm missing? I've used the same logic to upload pictures to a picture library, and those custom fields work fine.

      A Offline
      A Offline
      AnandSharmaUK
      wrote on last edited by
      #2

      Did you try using the internal names for the fields while updating them?

      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