Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
 
					
				
		
Need to hide the chart based on selection in list box.
I had a text box, showing value. I had list box showing patients(I have 6 patients').
If 1 and 2 patients are selected only, text box should not be shown. For3, 4,5,6, text box should be shown.
I wrote in Text Box->Properties-Layout-Show
Conditional
GetFieldSelections([Patient Name])<>'1'
its working
How can I do for both 1and 2 patients?
Please reply ASAP
 
					
				
		
 alexandros17
		
			alexandros17
		
		
		
		
		
		
		
		
	
			
		
		
			
					
		Try this
Index(GetFieldSelections([Patient Name]),'1') = 0 and Index(GetFieldSelections([Patient Name]),'2')=0
Let me know
 
					
				
		
Use if(GetSelectedCount([Patient Name]) > 2, 1, 0) in your conditional show expression.
 
					
				
		
Actually Patient Names are text(A,B)
 
					
				
		
 alexandros17
		
			alexandros17
		
		
		
		
		
		
		
		
	
			
		
		
			
					
		Try this
Index(GetFieldSelections([Patient Name]),'1') = 0 and Index(GetFieldSelections([Patient Name]),'2')=0
Let me know
 
					
				
		
GetSelectedCount should still work I think.
 
					
				
		
Thanks Alessandro. Its working. 
 sarvjeet
		
			sarvjeet
		
		
		
		
		
		
		
		
	
			
		
		
			
					
		You can use match function
match( M, 'Jan','Feb','Mar')
returns 2 if M = Feb
returns 0 if M = Apr or jan
 
					
				
		
 alexandros17
		
			alexandros17
		
		
		
		
		
		
		
		
	
			
		
		
			
					
		Could you please mark my answer
Really thank you ...
