Skip to main content

Notifications

Announcements

No record found.

Small and medium business | Business Central, N...
Answered

image status icons in lists

(0) ShareShare
ReportReport
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

  • 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

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Congratulations 2024 Spotlight Honorees

Kudos to all of our 2024 community stars! 🎉

Meet the Top 10 leaders for December

Congratulations to our December super stars! 🥳

Start Your Super User Journey Pt 2

Join the ranks of our community heros! 🦹

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,904 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,605 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans