AlarmList Widget Selected Index

Hi everybody,

I’m currently working on a hmi alarm page which allows the navigation between the active alarms section and the alarms history section. I’m using mappView, and in particular I worked with the AlarmList Widget; in this hmi page, the user should be able to skim through the active alarm section, select one of the active alarms and press a button which opens a popup, showing a brief description of the selected alarm. I used MpAlarmXCore to create the alarms and for the set/reset part, and MpAlarmXListUIConnectType to manage the alarms list and the popups bitmaps indeces via code.

My issue concerns the interaction between the Widget and the MpAlarmXListUIConnectType. The alarm list and the alarm history work properly, as well as the acknowledge, but I’m having a problem with the alarm selection part (indeed, the button I set up only shows the information popup of the most recent alarm in the list). In particular, the widget SelectedRow and the MpAlarmXListUIConnectType SelectedIndex are not linked. This kind of interaction used to work for the VC4, but I can’t find a way to make it work using mappView.

Did anybody have the same issue, or anything alike?

Thanks in advance, Matteo.

Hello @casellim Matteo welcome to the community!

Maybe a few more details are necessary like which Automation Studio version you are using because that may spark different suggestions.

Let me ask why you are using the MpAlarmXListUIConnectType if you are using mappView, yes there are some use cases were that is necessary but if I’m understanding your concept correctly I don’t think you need it.

If you click (double-click) an alarm in the AlarmList you get an event ItemClick which returns all sorts of arguments that could be used the show additional information.
Not sure where the additional data is coming from but I would utilize the AdditionalInfo1 / 2 to feed the dialog.
AlarmList - Events and action

I hope this reply is going to help you out, if not maybe share some additional details how this is supposed to work.

Hi Marcel, sorry for my late reply.

I’m working with an existing project template that’s used in my office to avoid starting a project from scratch, but it was my first time implementing this kind of interface using mappView. The template was indeed prepared for a VC4 HMI. So, your answer actually helped. Thanks again!

Matteo

1 Like