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 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.
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
is working on a reply...