Copied to clipboard

Flag this post as spam?

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


  • Lander Debeuf 23 posts 125 karma points
    Nov 21, 2018 @ 15:57
    Lander Debeuf
    0

    Forms for CRUD operation

    All, I have a question, i am fairly new to umbraco, But i have written a data layer, accessing the database. Lets take as an example 2 tables Table 1: "Country" With fields: "CountryId", "Name", "ISO3" and Table 2: "Zone" With fields "ZoneId", "CountryId", "Name", "Code"

    so basically there is a list of countries with their zones in the country.

    I would like to create an umbraco form to edit this.

    What i have done now is i created a Document Type "Edit" and "List" I created a page from that document type. and in that List page i used a surfacecontroller.

    @Html.Action("CountryList", "Country")

    Then the surfacecontroller is fechting the list and is returning a partial view with a list of countries. This is working fine.

    Now i want to Edit a country lets say if i go to the webpage http://localhost:12345/Countries/Edit/23

    Now i would like to go to the Edit page and also use a surface controller to render a partial view (showing the edit form) with the country loaded from the database. But i have no idea how this is all connected.

    If someone could give me a small example or help me on the way, that would be wonderful.

    br, L

  • 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