4/19/2010 2:03 PM | |
Posts: 51 Rating: (4) |
DearSiemen_Staines 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 doesn’t work with wincc7 but I think will works with wincc 6! I used "%%s%" instead of "%s" in above code but still it doesn’t work. Please help me! Regards Splitted from WinCC7.0 : WinCC Alarm Control : How to programmatically change the Class Selection?. |
Last edited by: Pioneer at: 4/19/2010 4:46 PMLast edited by: O_Moderator at: 4/19/2010 2:11 PMnew subject after splitting |
|
Follow us on