- An InfoPath form
- 2 Promoted fields linked to existing columns in the Forms Library
- A Nintex workflow to change the value of the above promoted fields in the Forms Library
- 2 InfoPath content types installed (Version 1 and Version 2)
- Version 2 promotes two different fields to the same columns in the Forms Library as Version 1 mentioned above.
- The same Nintex workflow runs against Version 1 and Version 2 of the form.
PROBLEM:
As I mentioned earlier, the Nintex workflow would be updating the Form Library columns where the InfoPath fields were promoted to. But as I ran through the system I realised that, while the workflow was still updating the promoted fields for the Version 1 form, it wasn't doing the same for Version 2 forms.
I tried everything from logging extra notes in the workflow history to make sure the workflow actually tries to update Version 2 to changing the fields that the workflow was updating, you name it! Well, it finally came to me. One connection lead to another connection and BOOM – LIGHT BULB!
SOLUTION:
When you publish an InfoPath form and you have a promoted field, by default a user cannot edit that field directly in the Form Library. It is a read-only column. But, if you modify the Column you want to promote, you will see a tick box option available to you:
"Allow users to edit data in this field by using a datasheet or properties page"When you select this option, you make the field value editable in the Form Library. For a detailed explanation of how to set this option, see David Gerhardt's blog: Promoting Editable SharePoint Columns.
My problem was that, where the InfoPath form Version 1 promoted fields had this option ticked when it was published, the new fields being promoted in Version 2 did not, and that caused the conflict.
hi ! that is exactly what I want to do !
ReplyDeletebut where do I do "if you modify the Column you want to promote" ?
in infopath form options ? on the sharepoint library ? on the field view tab ?
I don't see the option "allow users..." anywhere !
please help me =)
Hi Tiah
DeleteWhen I say "modify the column you want to promote" I am referring to when you publish the InfoPath form and you get to the Property promotion wizard page, you select your property in the list. You will notice that there is a tickbox option at the bottom to "Allow users to edit data in this field by using a datasheet or properties page".
I could not find a check box in 2010 version of InfoPath!!
ReplyDeleteThe box only appears if you do the long version of the publish. And on one of the last steps it will show the option stated.
DeleteWould like to know if anyone has been able to make fields editable from the datasheet view. I have a multiline field and it does not appear to be editable from the datasheet. Wondering if there is something else to do. (I have the forms library set to allow updates from dataview and workflows can update the fields as well as the edit properties dialog) I want to be able to update a large number of items quickly to show items reviewed.
ReplyDeleteNo succes here either w.r.t. datasheet view. The suggested settings did help me though with having a Nintex workflow edit a field and also made it possible to edit fiels in the 'Edit properties' form.
ReplyDelete