Copied to clipboard

Flag this post as spam?

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


  • Josh Reid 182 posts 258 karma points
    Dec 16, 2012 @ 09:43
    Josh Reid
    0

    Edit Record with RazorRenderForm- AllowEditing/SubmitButtonText

    Hi Tim

    After recently upgrading to Contour 3 and then just today 3.0.4, I connot get AllowEditing or SubmitButtonText working on the Razor Macro. The form whether it is passed a ?recordGuid=... querystring or not, forms always create a new record and don't populate with the original record values. I have added the AllowEditing / SubmitButtonText to the Macro Parameters without joy. Note: I see I will need to modify the forms.cshtml View to get the update the button text, but that is not as important as getting record editing running.

    I have Umbraco 4.11.1 + Contour 3.0.4

    Further, not sure if related or not, but the Javascript in the script view: umbraco/plugins/umbracoContour/Views/Script.cshtml - renders empty, eg: the foreach in following doesn't return anything.

     function PopulateRecordValues() {
                contourFieldValues = new Array();
               
                @foreach (var recordVal in Model.RecordValues)
                {
                    <text>
                    contourFieldValues["@recordVal.Key"] = "@recordVal.Value";
                    </text>
                }
            }
    ...

    Any thoughts?

    Thanks
    Josh

  • Comment author was deleted

    Dec 17, 2012 @ 10:42

    Hey Josh,

    Currently record editing isn't supported by the razor macro but will have a go at it this week so will post result here

  • Dave Woestenborghs 3504 posts 12135 karma points MVP 9x admin c-trib
    Feb 05, 2013 @ 14:10
    Dave Woestenborghs
    0

    Any idea when this will be available ?

  • Sergi Arbona 11 posts 52 karma points
    Feb 06, 2013 @ 10:09
    Sergi Arbona
    0

    I also have Umbraco 4.11.1 + Contour 3.0.4

    I need urgently help on this.

    Edit record isn't still available? How it's possible that such a simple thing still not working?

     

     

     

     

     

     

  • Comment author was deleted

    Feb 06, 2013 @ 10:25

    You can edit a record in the backoffice... but the option to render the razor macro in edit mode by providing a record id isnt available yet, setting this to the 3.0.8 release that get's released on 4 march

  • Comment author was deleted

    Feb 06, 2013 @ 10:35

    If you want to follow the progress: http://issues.umbraco.org/issue/CON-248

  • Comment author was deleted

    Feb 06, 2013 @ 14:24

    Of just made a change that makes it possible with the razor macro 

    just add ?recordGuid=d944a872-f3dc-4518-ab0f-3ab3ca4caa45 to the querystring and it will be possible to edit a record (proving it the correct id of the record)

    possible with 3.0.8 WIP http://nightly.umbraco.org/Umbraco%20Contour/3.0.8%20WIP/

  • Sergi Arbona 11 posts 52 karma points
    Feb 08, 2013 @ 12:35
    Sergi Arbona
    0

    Hi Tim,

     

    Thanks for efforts, but 3.0.8 WIP is not compatible with 4.11 

    It throws an error when upgrading, so I had restored 3.0.6 from backup

    Should I update umbraco to V6 ?

  • 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