Normal Topic Hiding or greying out le's (Read 353 times)
drastixnz
Full Member
***
Offline


A Newbie....

Posts: 146
Location: New Zealand
Joined: Nov 29th, 2006
Hiding or greying out le's
Oct 25th, 2007 at 9:56pm
Print Post Print Post  
Hi all,
I know I have seen it in either inside sesame, or on this forums this is what I am wanting, I have a drop down, that had three options lets say
A,B,C, and below that drop down i have three le's labeled A,B and C, I want to be able to when I select A, for B and C to be greyed out, or hidden.

I know i have seen this some where, but i cant remember.

Help please.
Paul
  
Back to top
IP Logged
 
Bob_Hansen
Senior Member
Members
*****
Offline


WOW, They have the Internet
on computers now!

Posts: 1861
Location: Salem, NH
Joined: Nov 24th, 2002
Re: Hiding or greying out le's
Reply #1 - Oct 25th, 2007 at 11:46pm
Print Post Print Post  
Visibility(ElementName, setting)  Settings: 1=Visible, 2=Hide


Code
Select All
If ComboSelection = "A" Then {
     Visibility(BoxA,1)
     Visibility(BoxB,0)
     Visibility(BoxC,0)
     }

IF ComboSelection = "B" Then
     Visibility(BoxA,0)
     Visibility(BoxB,1)
     Visibility(BoxC,0)
     }

IF ComboSelection = "C" Then
     Visibility(BoxA,0)
     Visibility(BoxB,0)
     Visibility(BoxC,1)
     } 



You might want to make this a SubRoutine so you can call it using ComboBox sections for OnElementChange and OnFormEntry.
  



Bob Hansen
Sesame Database Manager Professional
Sensible Solutions Inc.
Salem, NH
603-898-8223
Skype ID = sensiblesolutions
Back to top
IP Logged
 
drastixnz
Full Member
***
Offline


A Newbie....

Posts: 146
Location: New Zealand
Joined: Nov 29th, 2006
Re: Hiding or greying out le's
Reply #2 - Oct 26th, 2007 at 9:19pm
Print Post Print Post  
I was almost there, thanks bob works perfectly!!!  Smiley
  
Back to top
IP Logged