Copied to clipboard

Flag this post as spam?

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


  • Jeremy 4 posts 24 karma points
    Oct 11, 2014 @ 09:18
    Jeremy
    0

    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

  • Jan Skovgaard 11280 posts 23678 karma points MVP 11x admin c-trib
    Oct 11, 2014 @ 09:38
    Jan Skovgaard
    0

    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

  • Jeremy 4 posts 24 karma points
    Oct 11, 2014 @ 10:24
    Jeremy
    0

    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

     

Please Sign in or register to post replies

Write your reply to:

Draft