i have created an application to simplify uploading file to document library and i am having problem with 2 fields which is datetime and choice fields of the document library, the file is not uploaded although it says it's uploaded without any errors.
ServiceReference2.FieldInformation fFiledInfo3 = new ServiceReference2.FieldInformation();
fFiledInfo3.DisplayName = "Document date";
fFiledInfo3.Type = ServiceReference2.FieldType.DateTime;
fFiledInfo3.Value = lblDate.Text;
and
ServiceReference2.FieldInformation fFiledInfo5 = new ServiceReference2.FieldInformation();
fFiledInfo5.DisplayName = "Machine Number";
fFiledInfo5.Type = ServiceReference2.FieldType.Choice;
fFiledInfo5.Value = lblMachine.Text;
if i change the fieldtype for both to text, i can upload the file but those two fields are blank.
anyone know the correct way to do it ?