# AlarmList widget action: SelectAlarmById

**URL:** <https://community.br-automation.com/t/alarmlist-widget-action-selectalarmbyid/9317>\
**Category:** Programming\
**Tags:** mapp-alarmx\
**Created:** [December 9, 2025, 12:43pm UTC](https://community.br-automation.com/t/alarmlist-widget-action-selectalarmbyid/9317 "2025-12-09T12:43:08Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Michal\_Malek](https://avatars.discourse-cdn.com/v4/letter/m/FF8800/32.png) [@Michal\_Malek](https://community.br-automation.com/u/Michal_Malek)\
**Post date:** [December 9, 2025, 12:43pm UTC](https://community.br-automation.com/t/alarmlist-widget-action-selectalarmbyid/9317/1 "2025-12-09T12:43:08Z")

</div>

Hello,  
does anyone have experience with the AlarmList widget action SelectAlarmById? My understanding is that it should select (highlight) the alarm corresponding to the provided argument, i.e., the InstanceID.  
In my code:

 ![obrázok](https://europe1.discourse-cdn.com/brcommunity/original/2X/3/32ead366b2160fa67d9dfa2bad3158b83a8b94a9.png)  
the session variable contains the InstanceID from the MpAlarmXListUIAlarmListType structure. When that variable changes, the action is executed:  
 ![obrázok](https://europe1.discourse-cdn.com/brcommunity/original/2X/c/c78d121a351a9822a300f0c17b1489cdce25d4c9.png)  
However, the widget always highlights the first alarm regardless of the argument value passed to the action. Is there a gap in my understanding?  
Thank you  
Regards  
Michal Malek

---

<div class="post-metadata">

**Author:** ![stephan.stricker](https://dub1.discourse-cdn.com/brcommunity/user_avatar/community.br-automation.com/stephan.stricker/32/105_2.png) [@stephan.stricker](https://community.br-automation.com/u/stephan.stricker)\
**Post date:** [December 10, 2025, 7:24am UTC](https://community.br-automation.com/t/alarmlist-widget-action-selectalarmbyid/9317/2 "2025-12-10T07:24:27Z")

</div>

Hi,  
I just tried it and it worked as expected. Are you sure that the instanceID is correct? What happens when you simply make a button and then use that to set a fixed instandID?

Stephan

---

<div class="post-metadata">

**Author:** ![Michal\_Malek](https://avatars.discourse-cdn.com/v4/letter/m/FF8800/32.png) [@Michal\_Malek](https://community.br-automation.com/u/Michal_Malek)\
**Post date:** [December 10, 2025, 1:18pm UTC](https://community.br-automation.com/t/alarmlist-widget-action-selectalarmbyid/9317/3 "2025-12-10T13:18:48Z")

</div>

Hi Stephan,  
I’m pretty sure it’s correct. In the second step (not visible in the screenshot), I read the operand instanceID and it is correct.  
However, I also tried the action using a direct argument, and it behaves the same.  
These are the InstanceIDs:

 ![obrázok](https://europe1.discourse-cdn.com/brcommunity/original/2X/1/13f8aa3947b4fadf47df759580c9ca8d0e923190.png)  
and when the value 18 is written:  
 ![obrázok](https://europe1.discourse-cdn.com/brcommunity/original/2X/f/f0253965d75f35d8964df39138417f2477d763a1.png)  
the third line should be highlighted, but the first one is highlighted instead.  
So it behaves the same way as with the operand.  
 ![obrázok](https://europe1.discourse-cdn.com/brcommunity/original/2X/2/2c6c418360f3efaedb0f46d91959a9a145797289.png)

Let me know your thoughts.  
I’m using AS 6.3.4 and mapp View 6.4.1.  
Thank you  
Michal Malek

---

<div class="post-metadata">

**Author:** ![stephan.stricker](https://dub1.discourse-cdn.com/brcommunity/user_avatar/community.br-automation.com/stephan.stricker/32/105_2.png) [@stephan.stricker](https://community.br-automation.com/u/stephan.stricker)\
**Post date:** [December 11, 2025, 8:19am UTC](https://community.br-automation.com/t/alarmlist-widget-action-selectalarmbyid/9317/4 "2025-12-11T08:19:52Z")

</div>

Hi Michal,

I have tried AS6 and I can confirm that I see the same behavior that you see. Let me dig a little bit deeper if something has changed or if this is a bug.

Stephan

---

<div class="post-metadata">

**Author:** ![stephan.stricker](https://dub1.discourse-cdn.com/brcommunity/user_avatar/community.br-automation.com/stephan.stricker/32/105_2.png) [@stephan.stricker](https://community.br-automation.com/u/stephan.stricker)\
**Post date:** [December 11, 2025, 11:45am UTC](https://community.br-automation.com/t/alarmlist-widget-action-selectalarmbyid/9317/5 "2025-12-11T11:45:12Z")

</div>

Hi Michal,

I am sorry, but this seems to be a bug in AS6 line. Unfortunately, the issue does still exist in the next release, which is 6.5. The R&D team is aware of this issue, but it will take some time until a fix is published.

Stephan

---

<div class="post-metadata">

**Author:** ![Michal\_Malek](https://avatars.discourse-cdn.com/v4/letter/m/FF8800/32.png) [@Michal\_Malek](https://community.br-automation.com/u/Michal_Malek)\
**Post date:** [December 12, 2025, 8:21am UTC](https://community.br-automation.com/t/alarmlist-widget-action-selectalarmbyid/9317/6 "2025-12-12T08:21:41Z")

</div>

Thank you Stephan. We will wait for the fix.  
Michal Malek
