Copied to clipboard

Flag this post as spam?

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


  • Sean Farrow 22 posts 42 karma points
    Oct 30, 2012 @ 15:18
    Sean Farrow
    0

    Using one data type in a second

    Hi:

    I'm currently working with a client, who need to filter data in listboxes.

    I need to write my own data type to contain all information, as the inforamtion is related to a course.

    I was wondering whether I'd have to write all the controls or whether I could use things from uCompontnet, I'm specifically thinking the sql dropdown list.

    I'm writing data types using classes.

    Any help apreciated.

    Chers

    Sean.

  • Tom Fulton 2030 posts 4998 karma points c-trib
    Oct 30, 2012 @ 15:21
    Tom Fulton
    0

    Hi Sean,

    Can you elaborate on what you need the datatype to do?

    SQL Dropdown List will give you a dropdown list populated from a DB/query of your choice.

    -Tom

  • Sean Farrow 22 posts 42 karma points
    Oct 30, 2012 @ 18:26
    Sean Farrow
    0

    Hi:

    Ok, I have a list of countries, using the counry picker from UComponents, After the user selects a country, (how is this stored?) I then need to feed the selection to a list of valid qualifications (gcse's/a-levels) pertinant to the selected counry. This kind of thing carries on, either with sql from a database or possibly from an ajax/webservice call.

    Any help apreciated.

    I'd like to write this using classes if possible.

    Cheers

    Sean.

  • SC Digital Services Team 104 posts 171 karma points
    Oct 31, 2012 @ 12:37
    SC Digital Services Team
    0

    I've built something similar recently & Mike Taylor's and Tim Geyssens blogs helped a lot -

    http://umbraco.miketaylor.eu/2011/02/10/creating-a-custom-data-editor-setting-type/

    http://www.nibble.be/?p=96

    Also this forum thread was useful for retrieving prevalues in existing data types... http://our.umbraco.org/forum/developers/api-questions/27470-Get-list-of-all-datatypes-of-type-rich-text-edit

    ... and the source code of the Opening Hours project shows how to structure your data using classes: http://our.umbraco.org/projects/backoffice-extensions/openinghours

  • 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