Respondido InfoPath 2010 Promoted fields not updating in Form

  • sexta-feira, 27 de abril de 2012 12:15
     
     

    Hi Folks,

    The scenario:

    I have an InfoPath form which is published to a SharePoint site as a Content Type. To the Microsoft InfoPath content type, I have added various Site Columns that I have created. These site columns are then mapped to Form fields for property/field promotion. The Content Type is then enabled on a Form Library and I can fill out forms and submit and save etc.

    I also have a workflow, an integral part of that the workflow does is updates several boolean fields (promoted fields), of course, the fields were promoted with the option 'Allow users to edit data in this field...' checked. These fields are then used for tracking of the status of the form. I also need to use these fields to control which view to show in the Form.

    All straight forward stuff so far... 

    Now when view the SharePoint properties of my Form mid-workflow, I see these fields getting updated, just as I would expect. However, when I open the form, it's obvious that the fields are not being set in the form. Either that or the form-open is somehow overwriting them every time (though there are no explicit rules to do this).

    Has anybody experienced similar behaviour before? I am considering wiping the slate clean and re-creating all associated libraries and content type. But I'd like that to be a last resort.

    Thanks in advance,

    Jason


    Regards, Jason Dunbar

Todas as Respostas

  • sexta-feira, 27 de abril de 2012 13:46
     
     Respondido

    Solved.

    What I failed to mention above is the promoted fields are Boolean. SharePoint was seeing them as 1 and 0 and InfoPath new them as TRUE and FALSE. I have now changed them in InfoPath to match SharePoint's 'quirk', all is fine.

    I've come across this before and worked around it, it's a shame I let it get me again.


    Regards, Jason Dunbar

    • Marcado como Resposta Jason Dunbar sexta-feira, 27 de abril de 2012 13:46
    •