CodeCharge Studio
search Register Login  

Web Reports

Visually create Web Reports in PHP, ASP, .NET, Java, Perl and ColdFusion.
CodeCharge.com

YesSoftware Forums -> CodeCharge Studio -> ASP

 Cannot hide a checkbox control

Print topic Send  topic

Author Message
mwallace

Posts: 2
Posted: 09/07/2007, 12:42 PM

Hello,

I am trying to hide a checkbox control based on a user login. I have placed the following code in the BeforeShow event of the checkbox, but the checkbox is still visible. Here's the code:

EventCaller.Visible = CCGetGroupID() <> 20

This should make the control hidden for userid 20, but visible to all others. Can anyone explain what is happening and how to correctly hide the control? Thanks,

Mark
_________________
Mark Wallace
www.allegroinfosystems.com
View profile  Send private message
mwallace

Posts: 2
Posted: 09/07/2007, 4:40 PM

Okay, I've sorted this out. The help file was out of date and was still referring to Extended HTML. Here is what worked:

set the Visible property of the control to Dynamic

in the control's beforeshow event placed the following code:

If CCGetGroupID = 6 Then 'this is the group id that I want to hide the control from
tblADPInfo.chkAssessmentAgreed.Visible = False '(syntax is tablename.controlname.visible)
Else
tblADPInfo.chkAssessmentAgreed.Visible = True
End If

Hope this helps someone else with a similar problem.
_________________
Mark Wallace
www.allegroinfosystems.com
View profile  Send private message

Add new topic Subscribe to topic   


These are Community Forums for users to exchange information.
If you would like to obtain technical product help please visit http://support.yessoftware.com.

MS Access to Web

Convert MS Access to Web.
Join thousands of Web developers who build Web applications with minimal coding.

CodeCharge.com

Home   |    Search   |    Members   |    Register   |    Login


Powered by UltraApps Forum created with CodeCharge Studio
Copyright © 2003-2004 by UltraApps.com  and YesSoftware, Inc.