Hi all,
I'm using Nintex WF 2007 (11000). I have created an Infopath form which is published to a SharePoint 2007 library. All is working well, but I need to update the Infopath form with some data and have used the Update XML action.
In principal, it is working correctly as the required data is updated in the InfoPath form, however, the Update XML action adds in an extra <enter> when the XML nodes do not contain any data, see the example below:
This is the original form XML:
my:Action><my:Actions>ActionXML1</my:Actions><my:ActionImportance></my:ActionImportance><my:Priority>(2) Normal</my:Priority><my:LinkToTask></my:LinkToTask></my:Action>
When updating <my:LinkToTask></my:LinkToTask> following is the result:
<my:Action>
<my:Actions>ActionXML1</my:Actions>
<my:ActionImportance>
</my:ActionImportance>
<my:Priority>(2) Normal</my:Priority>
<my:LinkToTask>Testing</my:LinkToTask>
</my:Action>
All seems to be OK, however, the bold one (<my:ActionImportance>) is causing the form not to open in the browser anymore. InfoPath Client is fine. Changing the <my:ActionImportance> to be on the same line will resolve it.
I have a lot more optional fields in this form so the chance of them being empty is big.
Any ideas how this could be overcome?
Thanks