Copied to clipboard

Flag this post as spam?

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


  • Arie 224 posts 675 karma points
    Feb 03, 2013 @ 05:47
    Arie
    1

    Doc2Form not saving data to node (Umbraco 6.0.0)

    Doc2Form is creating new nodes without a problem, but none of the values are saved. Could this be due to the change in Umbraco 6.0.0 that setting a property's value now requires an explicit Save()?

  • Arie 224 posts 675 karma points
    Feb 03, 2013 @ 06:04
    Arie
    0

    PS: It worked fine in 4.11.1, but after I upgraded to 6.0.0 today values are no longer being saved.

  • Sebastian Dammark 493 posts 1124 karma points
    May 26, 2013 @ 22:25
    Sebastian Dammark
    0

    I'm having the same problem ...

    Maybe this package is no longer maintained ?

  • Yannick Smits 321 posts 718 karma points
    Sep 24, 2013 @ 14:28
    Yannick Smits
    0

    Probably due to a bug in the new API. According to Morten we now need to manually map the member property to DefaultData. Haven't figured out how to do that.

    In the meantime you can vote for this issue: http://issues.umbraco.org/issue/U4-2921

  • Tim Geyssens 6410 posts 14986 karma points MVP 2x c-trib
    Sep 24, 2013 @ 14:29
    Tim Geyssens
    0

    Yup must be the same bug , guess doc2form also handles updating properties in the same way

  • Yannick Smits 321 posts 718 karma points
    Sep 24, 2013 @ 16:24
    Yannick Smits
    1

    ok found the fix:

    add this line to doc2form.ascx.cs line 801:

    d.getProperty(df.DataEditor.Editor.ID).Value = df.Data.Value;
    

    just below:

    df.Data.PropertyId = d.getProperty(df.DataEditor.Editor.ID).Id;
    df.DataEditor.Save();
    
  • Howard 1 post 21 karma points
    Feb 11, 2014 @ 23:32
    Howard
    0

    That worked, but only if "Publish submission" is checked. There are times when we don't want the submitted items to be published right away (before going through a review process). If that checkbox is not checked, the field values still don't get saved.

Please Sign in or register to post replies

Write your reply to:

Draft