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 583 posts 1407 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 ... ?

  • Comment author was deleted

    Dec 13, 2012 @ 13:07

    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 583 posts 1407 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 ?

  • Comment author was deleted

    Dec 13, 2012 @ 13:36

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

  • Sebastian Dammark 583 posts 1407 karma points
    Dec 13, 2012 @ 13:40
    Sebastian Dammark
    0

    Yes

  • Comment author was deleted

    Dec 13, 2012 @ 13:47

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

  • Sebastian Dammark 583 posts 1407 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.

  • Comment author was deleted

    Dec 13, 2012 @ 14:14

    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 583 posts 1407 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.

  • Comment author was deleted

    Dec 13, 2012 @ 15:10

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

  • Comment author was deleted

    Dec 17, 2012 @ 10:42

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

  • Sebastian Dammark 583 posts 1407 karma points
    Dec 17, 2012 @ 10:46
    Sebastian Dammark
    0

    Hi Tim

    I'm mapping to the xpath CheckBoxList
     

  • Comment author was deleted

    Dec 17, 2012 @ 10:46

    Ok thanks for the details will give it a go

  • Comment author was deleted

    Dec 17, 2012 @ 11:02

    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 

Please Sign in or register to post replies

Write your reply to:

Draft