I have a form which has allowEdit enabled. This form also creates a document in the nodetree but when I choose to edit the data the document in the nodtree isn't updated.
Think it's because workflows are disabled on edits you can change that in the \Umbraco\plugins\umbracoContour\UmbracoContour.config file it's the IgnoreWorkFlowsOnEdit key you need to set to False
Download 3.0.4 WIP upgrade (http://nightly.umbraco.org/Umbraco%20Contour/) and you'll only need the Umbraco.Forms.Core.Providers assembly, drop that in your bin
Now if you go to the workflow settings you should see a new setting "Update doc on edit" check that one and now contour will store a relation between the record and the created doc
Let me know if that works (it will obviously only work for new entries made after the update)
It almost there, there is a thing with the checkBoxList. It only gets updated the first time you edit the data.
First time you create the document and tags are empty because they are hidden. Second time tags are visible and are updated. Third time tags are visible with the correct data, but if you the choose something different, none of the changes in the checkBoxList are saved to the document.
Though all changes are saved to the contour table they're not transferred to the document itself.
Well contour will store a comma seperated list of node names (map to textstring and you'll see) so don't think that is the format the xpath checkbox list expect
Document not being updated
I have a form which has allowEdit enabled. This form also creates a document in the nodetree but when I choose to edit the data the document in the nodtree isn't updated.
What am I doing wrong here ... ?
Comment author was deleted
Think it's because workflows are disabled on edits you can change that in the \Umbraco\plugins\umbracoContour\UmbracoContour.config file it's the IgnoreWorkFlowsOnEdit key you need to set to False
Yeah ... but it creates a new document everytime I edit the data. How do I make it update instead ?
Comment author was deleted
Which workflow are you using? The standard save as umbraco node one?
Yes
Comment author was deleted
Ok that one only creates new docs but taking a look now how it can be updated to also update docs
Ohh ... I thought the Save document could do that by default when in Edit mode.
Looking forward to see what you're comming up with. Let me know if you need some testing.
Comment author was deleted
Ok think I got it working :)
Download 3.0.4 WIP upgrade (http://nightly.umbraco.org/Umbraco%20Contour/) and you'll only need the Umbraco.Forms.Core.Providers assembly, drop that in your bin
Now if you go to the workflow settings you should see a new setting "Update doc on edit" check that one and now contour will store a relation between the record and the created doc
Let me know if that works (it will obviously only work for new entries made after the update)
Blimey that was fast :)
It almost there, there is a thing with the checkBoxList.
It only gets updated the first time you edit the data.
First time you create the document and tags are empty because they are hidden.
Second time tags are visible and are updated.
Third time tags are visible with the correct data, but if you the choose something different, none of the changes in the checkBoxList are saved to the document.
Though all changes are saved to the contour table they're not transferred to the document itself.
Comment author was deleted
Ok thanks for the details will take a look at that scenario
Comment author was deleted
Could you tell me what datatype you are mapping to? Thanks :)
Hi Tim
I'm mapping to the xpath CheckBoxList
Comment author was deleted
Ok thanks for the details will give it a go
Comment author was deleted
Well contour will store a comma seperated list of node names (map to textstring and you'll see) so don't think that is the format the xpath checkbox list expect
Don't really see an easy way of changing this
is working on a reply...