Skip to main content

Notifications

Microsoft Dynamics NAV forum
Suggested answer

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

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.

  • Suggested answer
    YUN ZHU Profile Picture
    YUN ZHU 69,510 Super User 2024 Season 2 on at
    RE: How to insert and manage an image for status display on a role center in WebClient?

    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

  • Suggested answer
    Nitin Verma Profile Picture
    Nitin Verma 21,023 Moderator on at
    RE: How to insert and manage an image for status display on a role center in WebClient?

    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.

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

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…

Dynamics 365 Community Newsletter - September 2024

Check out the latest community news

Leaderboard

#1
André Arnaud de Calavon Profile Picture

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

#2
Martin Dráb Profile Picture

Martin Dráb 228,441 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,148

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans