Take the 2-minute tour ×
SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. It's 100% free, no registration required.

I have an infopath form applied to a Form Library in my sharepoint site which have managed code. In that form I use a Multiple-Selection list in a section that shows items (documents) from a Sharepoint Document library through REST service. When I check the document item in the Multiple-Selection list, the changed event (XmlChangedEventHandler) in the managed code manipulated the item checked. Here is the Code:

 public void Documents_Changed(object sender, XmlEventArgs e)
    {               
    string docId = e.Site.Value;
    }

Everything works fine in InfoPath form preview, but when I pubished that to the sharepoint form library, I am not able to get the value for docId. The "e.Site.Value" is getting null.

Can anyone suggest a solution for this?

share|improve this question
    
Myself found a work around for this. Avoided relying on the e.Site.Value and brought a new Button under the the Multiple-Selection list. Thus handled my business case. But I am still looking for a good answer for this question –  Jobin Jul 22 '13 at 14:55
add comment

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.