External data column showing blank values on edit properties but shows values in view properties.
Hello,
I am setting external data column value using code like
ClientContext context = new ClientContext(txtDestinationSite.Text);
FileCreationInformation newFile = new FileCreationInformation();
newFile.Content = ReadToEnd(fileInfo.FileInf.OpenRead());
newFile.Url = "/" + cmbBxLibraries.Text + "/" + fileInfo.FileInf.Name;
List docs = context.Web.Lists.GetByTitle(cmbBxLibraries.Text);
Microsoft.SharePoint.Client.File uploadFile = docs.RootFolder.Files.Add(newFile);
ListItem item = uploadFile.ListItemAllFields;
item["Document_x0020_Source"] = fileInfo.Source;
item.Update();
context.Load(uploadFile);
context.ExecuteQuery();
this is uploading and setting value without error.
but when i editing file property its value is not showing instead of showing it on View properties.
and also is not showing in the document library view.
Please tell where am doing wrong?
January 4th, 2012 6:10am