This Q&A forum allows users to post and respond to "How Do I Do ....." questions. Please do not use to report (suspected) errors - you must use your regional help desk for this. The information contained in this forum has not been validated by LANSA and, as such, LANSA cannot guarantee the accuracy of the information.
I was wondering if it is possible to remove or clear messages if you move from one ramp screen to another? The message bar at the bottom of the axes screens seems to hold on to the messages and doesnt clear when you leave the screen. Also is there a way to hide the message bar if the axes screen is not being displayed due to navigation to another screen? Currently it flashes a message during navigation.
I did see 2 options but not sure which one is correct to use. One is in the ramp script and the other is a lansa code.
Where would the best place to add this? In the Server Module, an RP, etc? which is better to do with or without the mainform? The ramp script appears to do nothing.
If you decided to use avRAMP_SHOW_CURRENT_FORM then the current command handler reference (passed in a a parameter) should be used instead of #COM_Owner here:
This unfortunately doesn't look like it works in all cases. A message being created that is still showing up 3 screens later under another option is still an issue. Is there a persistence option on messages that might have it not clear after moving away from that screen?