Quantcast
Channel: SharePoint 2010 - General Discussions and Questions forum
Viewing all articles
Browse latest Browse all 17574

submitting person/group picker value to SP 2010 list

$
0
0

i have a person/group picker control in an infopath form , the person name is getting populated. what is the VSTA c# code to submit that person/group picker value to a sharepoint list

          object JobOwner = MainDataSource.CreateNavigator().SelectSingleNode(
                 "/my:myFields/my:JobOwner", NamespaceManager).Value;

                          item["JobOwner"] = JobOwner;

but following exception is coming

Invalid data has been used to update the list item. The field you are trying to update may be read only.


thank you


Viewing all articles
Browse latest Browse all 17574


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>