Populating list columns in Sharepoint 2010 custom doc library
-
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.
-
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.
Did you try using the internal names for the fields while updating them?