I have implemented an alarm procedures menu item (thanks to an earlier posting) 
and it is working as expected. However, now I would also like to filter by the 
security string of the device (using contains, as there may be multiple string 
defined with the | or & operators) but I'm not having much luck. Below is the 
configuration I'm using in the XML file.

  <menu name="Procedures">
      <item name=" Alarm Procedures">
            <toolbar-image>
                  images/alarm-procedures.png
            </toolbar-image>
            <toolbar-image-rollover>
                  images/alarm-procedures-rollover.png
            </toolbar-image-rollover>
            <action>
                  <filter>
                        <and>
                              
<has-attribute>AlarmAttrID.CAUSE_CODE</has-attribute>
                              <contains>
                                    <attribute id="0x10009">
                                          <value>"STRING1"</value>
                                    </attribute>
                              </contains>
                        </and>
                  </filter>
                  <launch-browser>
                        <url>http://{0}</url>
                        <param>
                              <expression>
                                    ("0x" + 
Integer.toHexString(attrInt(AlarmAttrID.CAUSE_CODE)))
                              </expression>
                        </param>
                  </launch-browser>
            </action>
      </item>
   </menu>


James Cooleman
Team Leader, Enterprise Management Tools

[cid:[email protected]]

Datacom Systems Ltd
106 Vincent Street
PO Box 6041, Wellesley Street
Auckland
New Zealand

email     [email protected]
mob       +64 21 347 775
tel           +64 9 303 1489
fax          +64 9 373 8810
web       www.datacom.co.nz




---
To unsubscribe from spectrum, send email to [email protected] with the body: 
unsubscribe spectrum [email protected]

<<inline: image001.gif>>

Reply via email to