Press Ctrl / CMD + C to copy this to your clipboard.
This post will be reported to the moderators as potential spam to be looked at
Hi
Does anyone know where I can find some documentation on creating and populating a dropdownlist datatype, where all of the items in the dropdown list are pulled from a table in my database?
I'm using Umbraco 7 and can't see anything relevant to that.
Any help gratefully recieved.
Shaun
Hi,
I’m not sure there is a built in datatype in umbraco 7.
For older version of umbraco there is the uComponent SQL Dropdownlist:
https://ucomponents.codeplex.com/wikipage?title=SQL%20DropDownList
I think it should be easy to implement it using WebApi and PetaPoco.
Have a look at the following links:
Api: http://our.umbraco.org/documentation/Reference/WebApi/
PetaPoco: http://creativewebspecialist.co.uk/2013/07/16/umbraco-petapoco-to-store-blog-comments/
Regards
Moshe
Hi Moshe
Sadly it needs to be something I can use in V7, ideally AngularJS.
Hi Shaun,
Ive created a quick package have a go at this one and let me know if its working ok.
You can download it from here
PLEASE BACKUP YOUR SITE AND DB (Nothing should happen but just incase).
Regards,
We've just migrated the Sql DropDownList from uComponents (mentioned above) into nuComponents for v7 - https://github.com/uComponents/nuComponents
(it compiles up to a single dll, which just needs to be dropped into the /bin)
HTH,
Hendy
That is marvellous! You are a saint!
is working on a reply...
Write your reply to:
Upload image
Image will be uploaded when post is submitted
Populating a datatype from a database
Hi
Does anyone know where I can find some documentation on creating and populating a dropdownlist datatype, where all of the items in the dropdown list are pulled from a table in my database?
I'm using Umbraco 7 and can't see anything relevant to that.
Any help gratefully recieved.
Shaun
Hi,
I’m not sure there is a built in datatype in umbraco 7.
For older version of umbraco there is the uComponent SQL Dropdownlist:
https://ucomponents.codeplex.com/wikipage?title=SQL%20DropDownList
I think it should be easy to implement it using WebApi and PetaPoco.
Have a look at the following links:
Api: http://our.umbraco.org/documentation/Reference/WebApi/
PetaPoco: http://creativewebspecialist.co.uk/2013/07/16/umbraco-petapoco-to-store-blog-comments/
Regards
Moshe
Hi Moshe
Sadly it needs to be something I can use in V7, ideally AngularJS.
Hi Shaun,
Ive created a quick package have a go at this one and let me know if its working ok.
You can download it from here
PLEASE BACKUP YOUR SITE AND DB (Nothing should happen but just incase).
Regards,
Moshe
Hi Shaun,
We've just migrated the Sql DropDownList from uComponents (mentioned above) into nuComponents for v7 - https://github.com/uComponents/nuComponents
(it compiles up to a single dll, which just needs to be dropped into the /bin)
HTH,
Hendy
That is marvellous! You are a saint!
is working on a reply...