Copied to clipboard

Flag this post as spam?

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


  • Saied 349 posts 674 karma points
    Dec 02, 2015 @ 15:42
    Saied
    0

    Umbraco 7.3.3 UI-O-Matic UI issues and errors

    Hi,

    I installed Umbraco 7.3.3 and UI-O-Matic. I have a few questions:

    1. When I install via Nuget and I want to deploy to a stage or live server, what folders/files do I have to include in my solution and deploy?
    2. I created a ListView based on a table, but when it renders it looks like this:

    enter image description here

    How can I hide the Id column?

    Is it possible to show the paging differently instead of all the pages?

    Also, when I try to edit, I get the following error when I click on the first item in the list:

    Request error: The URL returned a 404 (not found): views/uioMaticTree/edit.html

    and I get this in the console:

    Uncaught Error: Syntax error, unrecognized expression: #/uiomatic/uioMaticTree/edit/DeriveSystems.Models.Dealer, DeriveSystems.Models, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null

    GET http://localhost:58150/umbraco/views/uioMaticTree/edit.html 404 (Not Found)

    TypeError: Cannot read property 'startsWith' of undefined at init.js?cdv=726819048:50 at Object.e.$broadcast (angular.min.js?cdv=726819048:94) at angular.min.js?cdv=726819048:85 at o (angular.min.js?cdv=726819048:80) at o (angular.min.js?cdv=726819048:80) at angular.min.js?cdv=726819048:81 at Object.e.$eval (angular.min.js?cdv=726819048:92) at Object.e.$digest (angular.min.js?cdv=726819048:90) at Object.e.$apply (angular.min.js?cdv=726819048:92) at j (angular.min.js?cdv=726819048:101)

    When I click on the others, I get a blank screen with the console error:

    GET http://localhost:58150/umbraco/backoffice/UIOMatic/Object/GetType?typeName=…ystems.Models,%20Version=1.0.0.0,%20Culture=neutral,%20PublicKeyToken=null 500 (Internal Server Error)

  • Comment author was deleted

    Dec 02, 2015 @ 15:52

    Hi Saied,

    Yes you can hide the Id column, just decorate it with UIOMaticIgnoreFromListView attribute (some details on that in the docs http://uiomatic.readthedocs.org/en/latest/02.listview/)

  • Comment author was deleted

    Dec 02, 2015 @ 15:53

    I see that your id column isn't of the type int, that is currently a know issue but I've got a pull request that fixes is so a new version will be up this week fixing the issue.

    Regards, Tim

  • Saied 349 posts 674 karma points
    Dec 02, 2015 @ 15:55
    Saied
    0

    Do you think that is what is causing the issues with the edit?

  • Comment author was deleted

    Dec 02, 2015 @ 15:57

    Yup definitly it won't work currently with a guid as id, but as you can see (check the know issues http://uiomatic.readthedocs.org/en/latest/06.KnowIssues/) but this pull request should fix it https://github.com/TimGeyssens/UIOMatic/pull/13

  • Comment author was deleted

    Dec 02, 2015 @ 15:54

    Will also do something about the paging since so it will work better with that amount of data

  • Saied 349 posts 674 karma points
    Dec 02, 2015 @ 15:59
    Saied
    0

    Thanks Tim,

    Which files do I need to include in my project if I deploy it to another server?

  • Comment author was deleted

    Dec 02, 2015 @ 15:59

    For deployment it should be everything in the \App_Plugins\UIOMatic folder and also the assemblies so thats \bin\UIOMatic.dll

  • Saied 349 posts 674 karma points
    Dec 02, 2015 @ 16:00
    Saied
    0

    Thanks Tim,

    I look forward to the update

  • Comment author was deleted

    Dec 03, 2015 @ 10:01

    Ok made the update you can update to version 1.1.0 https://www.nuget.org/packages/Nibble.Umbraco.UIOMatic/ please let me know if that does the trick

  • Saied 349 posts 674 karma points
    Dec 03, 2015 @ 12:28
    Saied
    0

    Tim,

    Thanks for the quick response.

    2 questions:

    If my table has 10 fields, but I only want to display 4 in the list, but all 10 in the edit form, is this possible?

    Also, is it possible to make certain fields dropdowns (for example, I have an int field in the database, but to make it more user friendly, I want to display values for the ints)?

  • Comment author was deleted

    Dec 03, 2015 @ 12:32

    Yes Saied, you can mark the properties that you don't want in the list with UIOMaticIgnoreFromListView and for the foreign keys that is also possible check out the example here http://www.nibble.be/?p=491

  • Saied 349 posts 674 karma points
    Dec 03, 2015 @ 14:30
    Saied
    0

    Tim,

    In this case, the column is not a foreign key to another table. It is just a column that can have 3 values 1,2, or 3, but I want to display: one, two, or three in a dropdown for example. Is it still possible if it is not a foreign key to another table?

  • Comment author was deleted

    Dec 03, 2015 @ 14:37

    Yeah in that case you can hook in a custom field view

  • Comment author was deleted

    Dec 03, 2015 @ 14:52

    Check the docs for some details on that http://uiomatic.readthedocs.org/en/latest/04.CustomPropertyViews/ (you wont need a controller in your case) just a simple angularjs view

  • Saied 349 posts 674 karma points
    Dec 03, 2015 @ 14:58
    Saied
    0

    Hi Tim,

    I just upgraded, but when I click on an item to edit, I get this error:

    Request error: The URL returned a 404 (not found): views/uioMaticTree/edit.html

    Also, is it possible to have tabs for the edit view?

  • Comment author was deleted

    Dec 03, 2015 @ 15:00

    Yes it's possible to have tabs, you can specify a tab name in the UIOMaticField attribute

  • Comment author was deleted

    Dec 03, 2015 @ 10:01

    (didn't change anything to the paging yet, so that's still on the todo)

Please Sign in or register to post replies

Write your reply to:

Draft