CodeCharge Studio
search Register Login  

Visual Web Reporting

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

YesSoftware Forums -> CodeCharge Studio -> ASP

 Hide a grid

Print topic Send  topic

Author Message
astat

Posts: 5
Posted: 03/16/2006, 2:30 AM

Hi
is possible hide a grid based on a session after user login?
I want that users don't see other grids on the page when enter in member area.

Thanks
View profile  Send private message
wkempees


Posts: 1679
Posted: 03/16/2006, 2:37 AM

Yes it is possible.
Put Panel around the grids.
Hide/Unhide the panel based on the Session variable.
Panel usage is described in Helpfile and Docs.
Gettting the value of a sessionvar is also described CCGetSession().

Success.


_________________
Origin: NL, T:GMT+1 (Forumtime +9)
CCS3/4.01.006 PhP, MySQL .Net/InMotion(Vista/XP, XAMPP)

if you liked this info PAYPAL me: http://donate.consultair.eu
View profile  Send private message
Asta
Posted: 03/16/2006, 2:54 AM

Thanks from Italy
wkempees


Posts: 1679
Posted: 03/16/2006, 3:05 AM

arrividerci ciao
_________________
Origin: NL, T:GMT+1 (Forumtime +9)
CCS3/4.01.006 PhP, MySQL .Net/InMotion(Vista/XP, XAMPP)

if you liked this info PAYPAL me: http://donate.consultair.eu
View profile  Send private message
Asta
Posted: 03/16/2006, 3:36 AM

I have a problem on setting action:

I want hide menu_left component to the users with IDLev=3

I have inerted Panel1 around menu_left

Component Name: panel1
Action: Hide
Compare As: Text
Condition: Equal

then setting of parameters 1& 2???


Thanks
Rene S
Posted: 03/20/2006, 5:33 AM

Hi,

Use in "before show" of the grid

Function hoofdgroep_BeforeShow(Sender) 'hoofdgroep_BeforeShow @16-4D3F2290

'Custom Code @32-73254650
' -------------------------
'Hide non-Engels panels
If Session("locale") = "en" Then
hoofdgroep.Data_en_hoofdgroep.Visible = True
hoofdgroep.Data_hoofdgroep.Visible = False
hoofdgroep.Data_it_hoofdgroep.Visible = False
hoofdgroep.Data_de_hoofdgroep.Visible = False
hoofdgroep.Data_es_hoofdgroep.Visible = False
End if

Substitute "Session("locale") = "en"" to your own variable and change grid and panel names.

Hope it works for you,

Rene
mhope

Posts: 37
Posted: 03/21/2006, 1:41 AM

A better way would be:

If CCGetGroupID() = 3 Then
YourGrid.Visible = False
Else
YourGrid.Visible = True
End If
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.