| Message Display with SUBMIT+stay [message #2084] | 
			Thu, 21 May 2009 05:32   | 
		 
		
			
				
				
				
					
						  
						gpatti
						 Messages: 287 Registered: August 2008 
						
					 | 
					Senior Member  | 
					 | 
		 
		 
	 | 
 
	
		I'm using add an ADD2 transaction which is called from a LIST2 transaction. I have implemented a message to confirm to the user what has happened after an insert causes an update to another record. 
 
When I add a record and click the SUBMIT button I am returned to the LIST screen and my message displays correctly. 
 
However, if I add a record and click SUBMIT+stay I get multiple messages displayed: 
 
custom message 
record inserted OK (sys message) 
custom message 
custom message 
 
At first I thought I may have been inserting the message multiple times by mistake, but using the debugger confirms that I only add the message to the message array once.
		
		
		
 |  
	| 
		
	 | 
 
 
 | 
	| 
		
 | 
	| 
		
 |