Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Sebastian Dammark 547 posts 1287 karma points
    Dec 13, 2012 @ 12:14
    Sebastian Dammark
    0

    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 ... ?

  • Tim Geyssens 6562 posts 15373 karma points MVP 2x c-trib
    Dec 13, 2012 @ 13:07
    Tim Geyssens
    0

    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

  • Sebastian Dammark 547 posts 1287 karma points
    Dec 13, 2012 @ 13:30
    Sebastian Dammark
    0

    Yeah ... but it creates a new document everytime I edit the data.  How do I make it update instead ?

  • Tim Geyssens 6562 posts 15373 karma points MVP 2x c-trib
    Dec 13, 2012 @ 13:36
    Tim Geyssens
    0

    Which workflow are you using? The standard save as umbraco node one?

  • Sebastian Dammark 547 posts 1287 karma points
    Dec 13, 2012 @ 13:40
    Sebastian Dammark
    0

    Yes

  • Tim Geyssens 6562 posts 15373 karma points MVP 2x c-trib
    Dec 13, 2012 @ 13:47
    Tim Geyssens
    0

    Ok that one only creates new docs but taking a look now how it can be updated to also update docs

  • Sebastian Dammark 547 posts 1287 karma points
    Dec 13, 2012 @ 13:58
    Sebastian Dammark
    0

    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.

  • Tim Geyssens 6562 posts 15373 karma points MVP 2x c-trib
    Dec 13, 2012 @ 14:14
    Tim Geyssens
    0

    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)

  • Sebastian Dammark 547 posts 1287 karma points
    Dec 13, 2012 @ 14:53
    Sebastian Dammark
    0

    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.

  • Tim Geyssens 6562 posts 15373 karma points MVP 2x c-trib
    Dec 13, 2012 @ 15:10
    Tim Geyssens
    0

    Ok thanks for the details will take a look at that scenario

  • Tim Geyssens 6562 posts 15373 karma points MVP 2x c-trib
    Dec 17, 2012 @ 10:42
    Tim Geyssens
    0

    Could you tell me what datatype you are mapping to? Thanks :)

  • Sebastian Dammark 547 posts 1287 karma points
    Dec 17, 2012 @ 10:46
    Sebastian Dammark
    0

    Hi Tim

    I'm mapping to the xpath CheckBoxList
     

  • Tim Geyssens 6562 posts 15373 karma points MVP 2x c-trib
    Dec 17, 2012 @ 10:46
    Tim Geyssens
    0

    Ok thanks for the details will give it a go

  • Tim Geyssens 6562 posts 15373 karma points MVP 2x c-trib
    Dec 17, 2012 @ 11:02
    Tim Geyssens
    0

    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 

  • This forum is in read-only mode while we transition to the new forum.

    You can continue this topic on the new forum by tapping the "Continue discussion" link below.

Please Sign in or register to post replies