Copied to clipboard

Flag this post as spam?

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


  • Matthew Berner 27 posts 197 karma points
    Oct 11, 2019 @ 02:34
    Matthew Berner
    0

    UIOMatic Loves Form Question

    I was working with Umbraco Forms and integrating UIOMatic. I used the UIOMaticsLovesForms add on; I go use the Workflow : Save as UIOMatic Poco and Save to DB: I get two error

    Request error: The URL returned a 404 (not found): /umbraco/backoffice/UIOMatic/Object/GetAllProperties Showing Object Objest in the dropdown

    Did I forget to add something or I am missing something? I am running into the same issues another Poco so I am testing and seeing if I am doing something different.

    Here is poco I am using:

    using System;
    using System.Collections.Generic;
    using System.Linq;
    using System.Web;
    using UIOMatic.Attributes;
    using UIOMatic.Enums;
    using UIOMatic.Interfaces;
    using Umbraco.Core.Persistence;
    using Umbraco.Core.Persistence.DatabaseAnnotations;
    
    
    namespace Recipes.PetaPoco.Models 
    {
    
        [UIOMatic ("newrcipes", "Newrecipes", "NewRecipe", RenderType =UIOMaticRenderType.List)]
    
        [TableName ("NewRecipes")]
        [PrimaryKey ("Id",autoIncrement =true)]
        public class newrecipes 
        {
            public newrecipes() { }
    
            [UIOMaticListViewField (Name = "Id")]
    
            [Column ("Id")]
            [PrimaryKeyColumn (AutoIncrement =true)]
            public int Id { get; set; }
    
            [UIOMaticListViewField(Name = "Recipe")]
            [UIOMaticField (Name = "Recipe Name")]
            [Column("RecipeName")]
            [Length(200)]
            public string RecipeName { get; set; }
    
            [Column ("Directions")]
            [UIOMaticField(Name = "Directions", View =UIOMatic.Constants.FieldEditors.Textarea)]
            [SpecialDbType(SpecialDbTypes.NTEXT)]
            public string Directions { get; set; }
            [Column ("Ingredients")]
            [UIOMaticField(Name = "Ingredients", View = UIOMatic.Constants.FieldEditors.Textarea)]
            [SpecialDbType(SpecialDbTypes.NTEXT)]
            public string Ingredients { get; set; }
    
            [Column ("Author")]
            [UIOMaticField(Name = "Author")]
            [Length(250)]
            public string Author { get; set; }
    
            [Column ("Image")]
            [UIOMaticField(Name = "Picture", View = UIOMatic.Constants.FieldEditors.File)]
            [NullSetting(NullSetting = NullSettings.Null)]
            [Length(500)]
            public string Image { get; set; }
    
            public override string ToString()
            {
                return RecipeName;
            }
        }
    } 
    

    Thanks Matthew Berner

Please Sign in or register to post replies

Write your reply to:

Draft