# Mapp View Alarm widget styling

**URL:** <https://community.br-automation.com/t/mapp-view-alarm-widget-styling/3752>\
**Category:** HMI & Visualization\
**Tags:** mapp-view, mapp-alarmx\
**Created:** [July 11, 2024, 8:50am UTC](https://community.br-automation.com/t/mapp-view-alarm-widget-styling/3752 "2024-07-11T08:50:11Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![Almida](https://avatars.discourse-cdn.com/v4/letter/a/FF8800/32.png) [@Almida](https://community.br-automation.com/u/Almida)\
**Post date:** [July 11, 2024, 8:50am UTC](https://community.br-automation.com/t/mapp-view-alarm-widget-styling/3752/1 "2024-07-11T08:50:11Z")

</div>

Hello,

In the mapp view AlarmList widget, is it possible to change the alarm items’ color or icon depending on the severity without using the configuration dialogue (explained here [B&R Online Help](https://help.br-automation.com/#/en/4/visualization%2Fmappview%2Fwidgets%2Fusecases%2Falarm_anwendungsfalle%2Falarme_styling_der_alarme.html))? This is possible to do in VC4. I would like to predefine the style depending on severity, i.e. if it is an alarm or a warning that is active, so that it’s not an option for the user during runtime. On the styleConfiguration property it is noted in the Help “Can only be adjusted via the configuration dialog box.”.

When adding an AlarmListItem and selecting the columnType to “category”, icons appear in the column in the editor, however I can’t find where these are defined or changed. It’s empty at runtime. Where can these icons be selected based on category?

 ![image](https://europe1.discourse-cdn.com/brcommunity/original/2X/0/07a5472e809d7a8d90f8a54e1a3ca27554381f9e.png)

---

<div class="post-metadata">

**Author:** ![tommi.piiparinen](https://dub1.discourse-cdn.com/brcommunity/user_avatar/community.br-automation.com/tommi.piiparinen/32/2183_2.png) [@tommi.piiparinen](https://community.br-automation.com/u/tommi.piiparinen)\
**Post date:** [July 11, 2024, 9:19am UTC](https://community.br-automation.com/t/mapp-view-alarm-widget-styling/3752/2 "2024-07-11T09:19:20Z")

</div>

Nothing prevents you from setting the styleConfiguration property manually from Automation Studio. It is however pretty tedious task to do, so a good way to do it is to use the configuration dialog box to generate the string and then copy and paste it to the widgets styleConfiguration property in Automation Studio. (You will need to bind the string generated to some variable, session or OPC UA to copy it).

The category icons can be specified by having image files with the category names in a folder specified by the “imagePrefix” property and the filetype by “imageSuffix” property.  
 ![alarmcategory](https://europe1.discourse-cdn.com/brcommunity/original/2X/f/f51eb044a5f571005b5bac491cf3ec3fbab6a0f7.png)

This for some reason is not visible in the Online Automation help, but can be found in the offline version with the following GUID. (Open AH, CTRL + G)  
9b3764e6-c1a9-4638-91a1-d580049938f2

---

<div class="post-metadata">

**Author:** ![Simon\_Stoll](https://dub1.discourse-cdn.com/brcommunity/user_avatar/community.br-automation.com/simon_stoll/32/445_2.png) [@Simon\_Stoll](https://community.br-automation.com/u/Simon_Stoll)\
**Post date:** [July 11, 2024, 9:30am UTC](https://community.br-automation.com/t/mapp-view-alarm-widget-styling/3752/3 "2024-07-11T09:30:42Z")

</div>

Hi Almida,

don’t know how to set category images but for background you have to design different styles. Names habe to be “style1”, “style2”,…

```auto
	<!-- Style for errors (severity: 100...199) -->
	<Style id="style1" xsi:type="widgets.brease.AlarmListStyle"
		textColor="#FFFFFF"
		backColor="rgba(255,0,0,0)"
	/>

```

In ContentEditor set something like following for styleConfiguration of your AlarmList:

```auto
[[{"styleNbr":1,"alarmState":5,"logicalOperator":"and","severity":[{"useState":true,"value":100,"conditionType":">="},{"useState":true,"value":200,"conditionType":"<"}]},
{"styleNbr":2,"alarmState":5,"logicalOperator":"and","severity":[{"useState":true,"value":200,"conditionType":">="},{"useState":true,"value":300,"conditionType":"<"}]},
{"styleNbr":3,"alarmState":5,"logicalOperator":"and","severity":[{"useState":true,"value":300,"conditionType":">="},{"useState":true,"value":400,"conditionType":"<"}]},
{"styleNbr":4,"alarmState":5,"logicalOperator":"or","severity":[{"useState":true,"value":400,"conditionType":">="},{"useState":true,"value":100,"conditionType":"<"}]}]; 

```

If alarm instance has severity 100…199 it will be shown in style1, if severity is 200…299 in style2 and so on.

Hope, that helps ypu 🙂

Sincerly Simon

---

<div class="post-metadata">

**Author:** ![Almida](https://avatars.discourse-cdn.com/v4/letter/a/FF8800/32.png) [@Almida](https://community.br-automation.com/u/Almida)\
**Post date:** [July 11, 2024, 11:35am UTC](https://community.br-automation.com/t/mapp-view-alarm-widget-styling/3752/4 "2024-07-11T11:35:42Z")

</div>

> [@tommi.piiparinen](#):
>
> 9b3764e6-c1a9-4638-91a1-d580049938f2

Thanks! The first part regarding styleConfiguration worked well, however this GUID number doesn’t exist in my Help. I have AH version 4.12.6.52.

---

<div class="post-metadata">

**Author:** ![tommi.piiparinen](https://dub1.discourse-cdn.com/brcommunity/user_avatar/community.br-automation.com/tommi.piiparinen/32/2183_2.png) [@tommi.piiparinen](https://community.br-automation.com/u/tommi.piiparinen)\
**Post date:** [July 11, 2024, 11:49am UTC](https://community.br-automation.com/t/mapp-view-alarm-widget-styling/3752/5 "2024-07-11T11:49:30Z")

</div>

Can you try to see this path manually:

Visualization → mapp View → Widgets → Data → AlarmList → Concept

There should be a dropdown “Defining the alarm category”.

---

<div class="post-metadata">

**Author:** ![novi](https://avatars.discourse-cdn.com/v4/letter/n/FF8800/32.png) [@novi](https://community.br-automation.com/u/novi)\
**Post date:** [February 8, 2026, 9:38pm UTC](https://community.br-automation.com/t/mapp-view-alarm-widget-styling/3752/6 "2026-02-08T21:38:52Z")

</div>

Hi Simon ,

I tried implementing your styleConfiguration example in the AlarmList widget, but I couldn’t get it to work. I created the styles as suggested, but they’re just not applying to the alarm rows.

I’m working in AS6 with mappView. Could you help me with a working example or point out what I might be missing?

Thanks in advance!

---

<div class="post-metadata">

**Author:** ![Simon\_Stoll](https://dub1.discourse-cdn.com/brcommunity/user_avatar/community.br-automation.com/simon_stoll/32/445_2.png) [@Simon\_Stoll](https://community.br-automation.com/u/Simon_Stoll)\
**Post date:** [February 9, 2026, 6:06am UTC](https://community.br-automation.com/t/mapp-view-alarm-widget-styling/3752/7 "2026-02-09T06:06:29Z")

</div>

Hi Noe,

I think it’s described quite well here:

[Alarms: Styling Alarms](https://help.br-automation.com/#/de/6/visualization/mappview/widgets/usecases/alarm_anwendungsfalle/alarme_styling_der_alarme.html)

I’m currently still working with AS4. Therefore, I don’t know for sure if there are any differences.

Regards, Simon

---

<div class="post-metadata">

**Author:** ![novi](https://avatars.discourse-cdn.com/v4/letter/n/FF8800/32.png) [@novi](https://community.br-automation.com/u/novi)\
**Post date:** [February 9, 2026, 3:48pm UTC](https://community.br-automation.com/t/mapp-view-alarm-widget-styling/3752/8 "2026-02-09T15:48:45Z")

</div>

Hi Simon.

Thanks a lot for your replay.

Regards
