Menu

#34 Replace an OID errors flag by an empry string incase of a green colour

Unstable (example)
open
nobody
None
5
2017-03-04
2017-02-26
Wim Nelis
No

In a message template, outside a table the string '{MyOid.errors}' is replaced by '#ERRORONLY#' if the colour of MyOid is green. The documentation specifies that "If the value assigned to a data alias is green, then the value that replaces this flag (that is, flag errors) will be blank." The attached patch causes Devmon to behave as documented.

There is a related and undocumented feature in Devmon. If a line contains only someting like '{MyOid.errors}' and the colour of MyOid is green, the text '{MyOid.errors}' is replaced by an empty string and additionally, the newline following it is suppressed. After including the attached patch, this feature is still available.

1 Attachments

Discussion

  • Wim Nelis

    Wim Nelis - 2017-02-26

    In the transition from Linux to Windows, the line endings have disappeared. Attached is the same patch, however now with Windows line endings.

     
  • Wim Nelis

    Wim Nelis - 2017-03-04

    It is found that after applying the patch above, the behaviour in case the colour is yellow or red is not as documented. Attached is the improved patch.

     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.