Tell me more ×
SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. It's 100% free, no registration required.

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 ?

share|improve this question

Know someone who can answer? Share a link to this question via email, Google+, Twitter, or Facebook.

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.