Icons on Element level rather than just on Type level.

Comments

6 comments

  • Official comment
    Avatar
    Jessica Robinson

    Hi Rune, 

    please can you let us know if the suggestion from Søren meets your needs, or whether you would like to discuss your requirement further?  As we haven't had this request before (that I know of), and if you are happy with the above suggestion I will close the request.  Let me know either way.

    Thank you and kind regards

    Jess

    Product Owner

    Comment actions Permalink
  • Avatar
    Matthew Dodd

    Hi Rune, at the moment you could achieve something similar using a Formatted Text field containing just the image. These can be seen in a Data Sheet column.

    The main reason we wouldn't implement this feature is performance: it would cost us database lookups every time we need to draw an icon.

    Matt.

    0
    Comment actions Permalink
  • Avatar
    Rune Frits Kjerulff

    Hi Matt

    Thank you for getting back to me on this so quickly.

    I see what you're saying, perhaps it's a bit too cumbersome to open this up to all element types, however might a compromise solution be the creation of a default "Person" element type with this kind of functionality.

    We already have the "User" type out of the box which is used for login authentication, however best practice is to create a related "Person" type that you then use for any mapping purposes, such as governance, as you want the element name to reflect the actual persons name. Moreover this data is usually imported automatically from Active Directory or a similar solution, and often this source also contains image files for all of the relevant persons.

    Given that scope is limited to a standard system defined "Person" element type, might it then be feasible to implement special logic for how this element type's icon is displayed?

    -Rune

    0
    Comment actions Permalink
  • Avatar
    Matthew Dodd

    Good idea, at least that would reduce the performance impact.

    The other problem is that icons in MooD are either 16*16 or 32*32 which would be a pretty poor quality image. I think we'd have to either introduce a new concept or reuse formatted text fields.

     

    0
    Comment actions Permalink
  • Avatar
    Soren Staun

    Another idea I used a couple of times: 

    Some companies have pictures of employees stored at e.g.http://ourpeople/imgs/c4367.png (assuming c4367 is the user id of that person), if that's the case you can use JavaScript to show the image quite easily by simple referring to it on the external resource based on the userid of the person you're looking at.

    That'd be my preferred solution rather than having them inside MooD.

    0
    Comment actions Permalink
  • Avatar
    Matthew Dodd

    Hi Soren, funnily enough we were talking the other day about making external links produced by Smart Columns easier to do. I suppose you're going a stage further and showing an image but it's similar. Nothing solid yet but it's something we'd use internally too.

    Matt.

    0
    Comment actions Permalink

Please sign in to leave a comment.