web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Small and medium business | Business Central, N...
Suggested Answer

How to insert and manage an image for status display on a role center in WebClient?

(0) ShareShare
ReportReport
Posted on by 25

Hi,

I am creating a monitoring dashboard Role Center (Dynamics NAV 2018, end-user uses WebClient and C/AL) and I would like to use two different images (i.e. red lamp and green lamp), when a BOOLEAN value changes in the background (i.e. red light image is shown, when BooleanVar is FALSE and green light, when BooleanVar is TRUE).

What is the easiest and best no-coding solution for that? I need to display it on a Role Center, so that the support team can easily identify, that there is a problem, when they see the "red light" warning.

Thank you in advance,

Best regards,

Gy.

I have the same question (0)
  • Suggested answer
    Nitin Verma Profile Picture
    21,698 Moderator on at

    Hi Csiak Gyula ,

    There is a small coding is required to accomplish this task.

    You have to write your code in OnafterGetrecord trigger as per below

    Declare StyleTextVar as text in Global Variable.

    Trigger OnafterGetrecord

    StyleTextVar := 'None'

    if <Boolean value is true> then

     StyleTextVar := 'Favorable'

    else

     StyleTextVar := 'Attention;

    Put this StyleTextVar variable in Property "StyleExpr"

    Hope it will help you.

  • Suggested answer
    YUN ZHU Profile Picture
    95,309 Super User 2025 Season 2 on at

    Hi, I think It is related to Dynamic Visibility of Controls.

    There is a simple sample for BC, hope this gives you some hink.

    https://yzhums.com/14752/

    Thanks.

    ZHU

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > Small and medium business | Business Central, NAV, RMS

#1
OussamaSabbouh Profile Picture

OussamaSabbouh 3,175

#2
Jainam M. Kothari Profile Picture

Jainam M. Kothari 2,476 Super User 2025 Season 2

#3
YUN ZHU Profile Picture

YUN ZHU 1,435 Super User 2025 Season 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans