Hello guys im doing a project on perspective, i have a button to acknowledge the alarm when the button its pressed, i used the alarm path, with not parameters and worked perfectly, but when i used my parameters it didn't work, i don't know why, could you help me please?
there is the code
def runAction(self, event):
# Obtener parámetros de la vista
AlarmFolder = self.view.params.AlarmFolder
AlarmTag = self.view.params.AlarmTag
# Construir el tagPath dinámicamente
tagPath = "prov:default:/tag:{AlarmFolder}/{AlarmTag}:/alm:AlarmaHH-LL"
# Consultar el estado de las alarmas filtradas por la ruta del tag
data = system.alarm.queryStatus(path=[tagPath], status=['ActiveUnacked'])
# Crear lista de IDs de eventos
uuidList = [str(row.getId()) for row in data]
# Comentario opcional al reconocer la alarma
note = "Acked by Jose"
# Reconocer las alarmas en la lista
system.alarm.acknowledge(uuidList, note, None)