Hello,
Does anyone know if it is possible to set an attribute to a static value using a custom oneclick menu item?
This would set "TroubleTicketID" attribute on an alarm to a desired value without having to manually type in value.
For example, edit <$SPECROOT>/custom/console/config/custom-menu-config.xml
Add new menu item:
<menu name="com.aprisma.spectrum.app.swing.window.menu.Tools">
<menu name="NOC Actions">
<item name="Ticket Alarm">
<action>
<context>com.aprisma.spectrum.app.alarm.client.group.AlarmContext</context>
<param>
<expression>((String)attr(0x12022)).replaceAll( "","Ticket Alarm")</expression>
</param>
</action>
</item>
</menu>
</menu>
Is there an expression or other method which can accomplish this?
thank you
Mariusz