SharePoint Products TechCenter >
SharePoint Products and Technologies Forums
>
SharePoint - InfoPath Forms Services (pre-SharePoint 2010)
>
Removing Promoted Property Values
Removing Promoted Property Values
- Hi There
I have a simple Form library set up in MOSS 2007 that accepts InfoPath forms, the InfoPath form contains a Date Picker and a TextBox control. The form is Fully Trusted and Signed and published to MOSS as a Managed Template and is browser enabled with both data items as two-way promoted properties.
My Form Library now has the InfoPath Form as a content type and I can open a new form and submit it and MOSS displays the two properties in its List, I can right click and edit properties and change the values and they are reflected in the InfoPath form. All good so far....
Does anyone know the reason why MOSS 2007 doesn't save the users changes to a property if the text box or the date is cleared?
I have double checked the InfoPath form and the Site Columns and both allow blanks.
Cheers
Alan- Moved byMike Walsh MVPMVP, ModeratorThursday, November 19, 2009 4:22 AMInfoPath (From:SharePoint - General Question and Answers and Discussion)
All Replies
- The title doesn't seem to match your question, so Im not sure if this will help, but here goes...
Things to do:
- Make sure you are on MOSS sp2, as many IP Form svc bugs have been fixed.
- When it comes to promoted columns, after any change to the form wrt promoted cols, you will usually have to disable, then re-enable the form feature on the site collection.
/bac - Bob, in this case, I do see how his question matches the title. What's he's saying is that he has 2 promote fields that also have the check box for "allow users to edit in SharePoint" checked so that he can edit the form fields directly from SharePoint, and those changes are synced with the form the next time it is opened. However, it seems that when he sets them to blank/null, that change is not being reflected in the form. I have actually never seen this occur and will haev to test it just to be sure.
SharePoint Architect || My Blog - Hi Clayton/Bob
Thanks for clarifying the question somewhat Clayton, yes that is an accurate assessment of my problem.
However when a list property is updated by clearing the value in MOSS or programmatically setting the value to null/String.Empty (Workflow) are not reflected in the MOSS list or the InfoPath form (I am assuming the List drives the updates to the InfoPath Form). I sort of understand why I can't set the DateTime value to null (because DateTime is not nullable) but DateTime? is. I was just surprised that strings cannot be cleared.
I am running SP2 (12.0.0.6421), I don't know if this has been fixed in a later hotfix or if its a known feature of MOSS.
Thanks - You are also saying that a changing a field in InfoPath to null/blank also does not update the field in the SharePoint form library? That part is definitely not right - I will have to do some testing on my end, but I've never experienced that.
SharePoint Architect || My Blog - No, InfoPath to Sharepoint works correctly. Its just when you clear a property value in MOSS or in Workflow code.
If you submit a form to a form library, the date and string fieild appear correctly, if you update the form using InfoPath or Form Services it works correctly. If you click on the document dropdown and select edit properties and change the values it works but not if you clear the values (null/String.Empty) the list item properties don't change. I wonder if the list item change events trigger an update in the InfoPath form and this event is not getting fired. This behaviour is the same if a the properties are cleared in workflow code as well.
- Alan - Were you able to resolve the issue?
FYI, we are facing the same issue on a custom edit form within SharePoint itself. Everything works for us except the datetime field. When we clear the values (make it blank/null) the list item properties don't change. It retains the previous value (whatever valid date we had filled in before). We are not able to clear/blank out the datetime field.
http://www.elementsign.com
