Copied to clipboard

Flag this post as spam?

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


  • Dante 7 posts 78 karma points
    Mar 28, 2017 @ 16:01
    Dante
    0

    Creating DropDownList data Type populated from DB

    Hi my dear, I'm porting an umbraco v 4.7.0 sito to the new Umbraco 7.5.9 version. In the old version we used a lot a User Control Wrapper to populate a DropDown list with data stored insside the DB. Now I need to remove the old code because is not compatibile with U7 but I don't know the best way to takle with the problem. I built a class inheriting from AbstractDataEditor and put it inside the App_code but u7 don't see it into the property editor list. I'm usign the right approach? I don't have competency on angular.

    Please can you help me. Thanks in advance.

  • Marc Goodson 2149 posts 14377 karma points MVP 9x c-trib
    Mar 29, 2017 @ 07:12
    Marc Goodson
    1

    Hi Dante

    Have a look at nuPickers package:

    https://our.umbraco.org/projects/backoffice-extensions/nupickers/

    this enables you to setup dropdown property editors based on an external SQL source, and lots of other options too!

    Failing that, it's a case of creating a Web API endpoint using an UmbracoAuthorizedJsonController to return your list of dropdown options in JSON format, https://our.umbraco.org/documentation/Reference/Routing/WebApi/

    combined with an AngularJs property editor

    https://our.umbraco.org/documentation/Tutorials/Creating-a-Property-Editor/

    to make the request to the api endpoint and list out the dropdown options.

    regards

    Marc

  • Dante 7 posts 78 karma points
    Mar 29, 2017 @ 10:10
    Dante
    1

    Thank you very much Marc for your support. We decided to use nuPickers and is working fine. Thanks again.

    Dante.

Please Sign in or register to post replies

Write your reply to:

Draft