4/19/2010 2:06 PM | |
Posts: 51 Rating: (4) |
Dear Experts I have a problem with filtering messages. I know in WinCC 7 you must use "%" character before and after the filter statement. For example if you want filter messages that contain "XYZ" in TEXT4 of their blocks, you must write your code like as below: SetPropChar("ALARMPAGE.pdl","Control1","MsgFilterSQL","#VisibleOnly\\TEXT4 LIKE '%XYZ%'); Now, I want to use a tag for filtering and the tag valuewill be in text block 4 (TEXT4) in alarm logging, so I wrote my code like as below: ------------------------------------------------------------------------------------------------------- char strOutputChar[100]; sprintf(strOutputChar," #VisibleOnly\\TEXT4 LIKE '%s'",GetTagChar("tag")); SetPropChar("ALARMPAGE.pdl","Control1","MsgFilterSQL",strOutputChar); ------------------------------------------------------------------------------------------------------- It didn’t work with wincc7 soI used "%%s%" instead of "%s" in above code but still it doesn’t work. Please help me! Regards Splitted from Filter criteria for alarm output. |
Last edited by: O_Moderator at: 4/19/2010 2:14 PMLast edited by: O_Moderator at: 4/19/2010 2:12 PMnew subject after splitting |
|
4/19/2010 2:14 PM | |
Joined: 4/24/2009 Last visit: 2/19/2024 Posts: 2683 Rating: (135) |
Thread closed, because question is already published in the following thread I have a problem with filtering messages. Best regards O_Moderator |
Follow us on