Extending Contour Form - Load data from extern umbraco datatable
Hi,
i like to use the contour to create forms for editing customer data such as customer contact address and delivery addresses. The data are saved in a non umbraco datatable.
For example i have a list of delivery addresses, and the customer can add, edit and delete some addresses. For adding and editing i want to use contour form, like "Contour member tools" example.
For saving the data i use the "Workflow Types", but how i can fill the form with the data (of the selected delivery addresses) that i want to edit?
Can i override the Default Contour Controller to fill the contour form fields with the data, that i want to edit or are there a event like "getvalue" for the umbraco form fields?
For saving the data after posting i have no problem, but how i can load the data if the user want to edit one of his delivery addresses for example? I need to define the default value of the field, before the form is rendering.
like this example : http://www.nibble.be/?p=106 but with my custom delivery addresse data that i load from my delivery addresses datatable.
Extending Contour Form - Load data from extern umbraco datatable
Hi,
i like to use the contour to create forms for editing customer data such as customer contact address and delivery addresses. The data are saved in a non umbraco datatable.
For example i have a list of delivery addresses, and the customer can add, edit and delete some addresses.
For adding and editing i want to use contour form, like "Contour member tools" example.
For saving the data i use the "Workflow Types", but how i can fill the form with the data (of the selected delivery addresses) that i want to edit?
Can i override the Default Contour Controller to fill the contour form fields with the data, that i want to edit or are there a event like "getvalue" for the umbraco form fields?
thanks
Hi Michael and welcome to our :)
I have not tried reading data from an external table myself but I've seen articles about it. Even though the articles are a bit old the concept should remain the same. Tim Geysens (Who is the mastermind behind Contour) is sharing some stuff about it here http://www.nibble.be/?p=84 also there is some old video material about it here http://umbraco.com/help-and-support/video-tutorials/umbraco-pro/contour/integration-with-other-databases-and-systems
You might alos benefit from reading the Contour documentation found here http://our.umbraco.org/projects/umbraco-pro/contour/documentation/Developer/
Cheers, Jan
Thank Jan,
For saving the data after posting i have no problem, but how i can load the data if the user want to edit one of his delivery addresses for example?
I need to define the default value of the field, before the form is rendering.
like this example : http://www.nibble.be/?p=106 but with my custom delivery addresse data that i load from my delivery addresses datatable.
Thanks
is working on a reply...