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.
Hi, I think It is related to Dynamic Visibility of Controls.
There is a simple sample for BC, hope this gives you some hink.
Thanks.
ZHU
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.
Stay up to date on forum activity by subscribing. You can also customize your in-app and email Notification settings across all subscriptions.
André Arnaud de Cal... 290,522 Super User 2024 Season 2
Martin Dráb 228,441 Most Valuable Professional
nmaenpaa 101,148