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 12, 2012 @ 23:15
    Sebastian Dammark
    0

    Editing a document with another form than it was created with ...

    Hi

    On this website I have a signup form with basic information.  After you've signed up and been approved you'll be able to edit your profile through another form, which has more fields.

    Both forms has AllowEdit = 1 but the second form doesn't load any data.

    Can a document be edited with a form other than the one it was created with ?

  • Comment author was deleted

    Dec 13, 2012 @ 08:54

    @Sebastian nope the edit will only work for records from the form it was created with

    But you might want to look into setting default values like {member.emai} ... 

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

    Ok.

    So my current solution is to use the same form, but hiding the extra fields in the Signup process.
    But now when I try to edit the document I get this error when I try to save it.

     

  • Comment author was deleted

    Dec 13, 2012 @ 10:00

    Can you tell me the Contour version you are running?

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

    3.0.2, just downloaded it yesterday :)

  • Comment author was deleted

    Dec 13, 2012 @ 10:03

    Any chance you can send me an export of the form (tg at umbraco dot com) can't reproduce at the minute

    Also does editing records in the backoffice work or getting the same error?

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

    Yes, it also fails from the backoffice, but only if I choose other tags.

  • Comment author was deleted

    Dec 13, 2012 @ 10:41

    Ok thanks seems to be something with the checkboxlist, what db engine are you running on? 

  • Comment author was deleted

    Dec 13, 2012 @ 10:55

    Must be this bug that crept back in http://issues.umbraco.org/issue/CON-98 solution up shortly :)

  • Comment author was deleted

    Dec 13, 2012 @ 11:17

    Yup it was that bug (wasn't merged correctly to 3.x), just released a 3.0.3 that doesn't have the issue but if you are on 3.x and sql server you'll need to update the db and drop a primary key on the UFRecordDataString table sorry for the inconvenience :(

    Here is the sql to drop the constraint

    ALTER TABLE UFRecordDataString

    DROP CONSTRAINT PK_UFRecordDataString

    GO

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

    The easiest way to upgrade ?

    Uninstall and the reinstall ? or just uploading a DLL ?

  • Comment author was deleted

    Dec 13, 2012 @ 11:26

    Nope you'll need to run the sql snippet since there are no code changes it's just the db script that has been updated

    ALTER TABLE UFRecordDataString

    DROP CONSTRAINT PK_UFRecordDataString

    GO

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

    Nice ... already did that.

    Thanx for great help.

Please Sign in or register to post replies

Write your reply to:

Draft