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