Skip to main content

Notifications

Announcements

No record found.

Business Central forum
Answered

image status icons in lists

Posted on by 80

Hi,

I have seen various extensions which utilize image icons on the list view to show status - so for example a purchase order list would contain a yellow cirlce for open an greencircle for releases etc..

in al code what is the approach to display an image/icon in the repeater section of a list?  

thanks

Categories:
  • Verified answer
    Binesh Profile Picture
    Binesh 7,885 on at
    RE: image status icons in lists

    Hello,

    To use a image for status, you have to store your Image in a table, for example see the table Structure

    Color Name Color Code Color Image
    Red #ff0000 Upload Image
    Green #008000 Upload Image
    Blue #0000ff Upload Image
    Purple #800080 Upload Image

    Now Add a field in your table and Map the color table and Instead of Status show the Color Image field in the list page.

    Note: I recommend you do not use this as it degrade the performance.

    Instead of use Style property of the field which would looks more productive as shown below.

    pastedimage1591642963114v1.png

    AL Code

    pastedimage1591643131451v1.png

    pastedimage1591643163490v2.png

Helpful resources

Quick Links

Dynamics 365 Community Update – Sep 16th

Welcome to the next edition of the Community Platform Update. This is a weekly…

Announcing Our 2024 Season 2 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 290,353 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 228,251 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,148

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans