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
Was wanting to just have a simple choice for the drop down that I didn't particularly want to store in a db table...
Is there a way to pass just a value/text enumeration to the fieldEditor? rather than it having to be a foreign key related db table?
Or should I look to create a Custom Field Editor View for this scenario?
Comment author was deleted
Just just a custom editor should do the trick (you'll just need the view) , let me check there was an example on the forum
Take a look at https://our.umbraco.org/projects/developer-tools/ui-o-matic/computer-says-no/77820-static-drop-down-list , let me know if you have further questions :)
So depending on where you store and how you name it you'll need to set the View param on the UIOMaticField attribute
View = "~/App_Plugins/Example/mystaticpicker.html"
Thanks Tim, swift and great answer.
UPDATE : Found the problem. There was a typo in the example.
property.Value should be property.value.
Everything is working fine. thanks.
=================================
Hi,
I am fairly new to Umbraco, but I have been developing web applications for about 17 years.
I know the topic is a bit old, but...
I like this solution, andI can't make it work. I checked the link that Tim posted, but I think I am missing something.
I created a dropdown view that looks like this.
<div> <select ng-model="property.Value"> <option value="Locale">Locale</option> <option value="A">A</option> <option value="AA">AA</option> <option value="AAA">AAA</option> <option value="Pro">Pro</option> </select>
Then, I added it in my Model :
[UIOMaticField(Name = "Niveau", Description = "Sélectionnez le niveau de compétition", View = "~/App_Plugins/MyViews/level.html")] public string Level { get; set; }
Everything's displayed fine, but I get an error when trying to save :
"The column cannot contain null values. [ Column name = Level,Table name = TEAMS ]"
Seems to me like the value selected is not sent to the DB. Am I missing something?
And on a side note : Is there a way to integrate NuPickers controls into UI-O-Matic? (still haven't built any custom editors yet)
Thanks
is working on a reply...
Write your reply to:
Upload image
Image will be uploaded when post is submitted
"UIOMatic.FieldEditors.Dropdown" pass static list?
Was wanting to just have a simple choice for the drop down that I didn't particularly want to store in a db table...
Is there a way to pass just a value/text enumeration to the fieldEditor? rather than it having to be a foreign key related db table?
Or should I look to create a Custom Field Editor View for this scenario?
Comment author was deleted
Just just a custom editor should do the trick (you'll just need the view) , let me check there was an example on the forum
Comment author was deleted
Take a look at https://our.umbraco.org/projects/developer-tools/ui-o-matic/computer-says-no/77820-static-drop-down-list , let me know if you have further questions :)
Comment author was deleted
So depending on where you store and how you name it you'll need to set the View param on the UIOMaticField attribute
View = "~/App_Plugins/Example/mystaticpicker.html"
Thanks Tim, swift and great answer.
UPDATE : Found the problem. There was a typo in the example.
property.Value should be property.value.
Everything is working fine. thanks.
=================================
Hi,
I am fairly new to Umbraco, but I have been developing web applications for about 17 years.
I know the topic is a bit old, but...
I like this solution, andI can't make it work. I checked the link that Tim posted, but I think I am missing something.
I created a dropdown view that looks like this.
Then, I added it in my Model :
Everything's displayed fine, but I get an error when trying to save :
"The column cannot contain null values. [ Column name = Level,Table name = TEAMS ]"
Seems to me like the value selected is not sent to the DB. Am I missing something?
And on a side note : Is there a way to integrate NuPickers controls into UI-O-Matic? (still haven't built any custom editors yet)
Thanks
is working on a reply...