SubmitToHost not updating Site Columns for Content Type (SharePoint 2010, InfoPath 2010) - InfoPath Dev
in

InfoPath Dev

SubmitToHost not updating Site Columns for Content Type (SharePoint 2010, InfoPath 2010)

Last post 04-25-2012 12:19 PM by brichardson2001. 1 replies.
Page 1 of 1 (2 items)
Sort Posts: Previous Next
  • 03-25-2012 10:58 PM

    SubmitToHost not updating Site Columns for Content Type (SharePoint 2010, InfoPath 2010)

    Hi guys,

    I have an administrator-approved InfoPath 2010 form hosted in a XmlFormView control inside a SharePoint 2010 application page (deployed to Layouts) This form submits to a hosting environment (ASP.NET), and works great when performing an initial submit. The values for fields which I have promoted as site columns carry over their values nicely to the document library. My problem starts when I open the form for updating. The form is also opened using the application page. I can submit the form without any issues, and the form preserves its data from the update; opening up the form again shows that the fields have been updated. However, the values for fields that have been promoted as site columns do not get updated; the SharePoint columns retain the original values they had when the form was 1st submitted.

    I've tried a couple of approaches for this:
      - retrieved the file (InfoPath form) and updated it in the SubmitToHost event handler - doesn't do anything different
      - retried the item that the file is tied to and tried updating that: SharePoint will throw an error saying the item is being updated (by the current user, which makes sense).
      - simply letting the post go through, which also doesn't do anything.


    I don't want to have to open the InfoPath form via code and update the columns manually because the application page doesn't know the form at design-time, and an Xml parser isn't in the picture at the moment because we don't have control over the conventions that the InfoPath form designers will use when building their forms. I'll probably also run into the same issue above about the item currently being updated (item 2).

    So, the short question is: how do I let InfoPath update the SharePoint columns its fields are promoted to when submitting an "edited" (not new) form to a hosting environment?


    Dino
  • 04-25-2012 12:19 PM In reply to

    Re: SubmitToHost not updating Site Columns for Content Type (SharePoint 2010, InfoPath 2010)

    I'm experiencing the same issue with a non-administered approved Infopath 2010 form. When I go in and make a change to one of the fields in the form that has been promoted as a site column, the change is persisted, however, the value of the site column does not update. And that's strange, because I have a field called "Form Status" which controls the workflow state - and that is changed by actions in the form - and that value is updated as a site column.
Page 1 of 1 (2 items)
Copyright © 2003-2019 Qdabra Software. All rights reserved.
View our Terms of Use.