CodeCharge Studio
search Register Login  

Web Reporting

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

YesSoftware Forums -> CodeCharge Studio -> ASP

 ASP Panel issue CCS 4 (RESOLVED)

Print topic Send  topic

Author Message
lycanhunter

Posts: 11
Posted: 04/22/2010, 1:55 PM

Fairly straight forward. adding panel.
<!-- BEGIN Panel mypanel-->
<input id="editvalue" style="WIDTH: 33px; HEIGHT: 22px" onclick="open_win('newsedit.asp?Newsletter_ID={Newsletter_ID}')" type="button" size="4" value="Edit" name="{Newsletter_ID_Name}" />
<!-- END Panel mypanel --></td>

ASP code is simple enough

Function Grid1_mypanel_BeforeShow(Sender) 'Grid1_mypanel_BeforeShow @23-09D2906D
DIM erowWho
erowWho = Session("GroupID")
If erowWho = "Admin" Then
mypanel.visible = true
Else
mypanel.visible = False
End If

End Function 'Close Grid1_mypanel_BeforeShow @23-54C34B28

Variable is declared in the main ASP file. Even though the code is in the mainpage_event.asp page.

The error is Microsoft VBScript runtime error '800a01f4'

Variable is undefined: 'mypanel'

/newsletters2_events.asp, line 26
_________________
That is not dead which can eternal Lie..
View profile  Send private message
Mango_Lier


Posts: 110
Posted: 04/22/2010, 4:26 PM

Try Grid1.mypanel.visible = true or false.

Look @ the function declaration, it is giving me a clue that mypanel is inside the Grid1. Remember the object hierarchy is same as you see when you expand the component tree on the left.
View profile  Send private message
lycanhunter

Posts: 11
Posted: 04/22/2010, 8:31 PM

I had thought I had tried it with Grid1 in front.
What I noticed was I did grid1_Panel1 note the underscore not (.)
once I changed it to Grid1.mypanel.visible it worked beautifully.

Thanks for brain jumpstart.
_________________
That is not dead which can eternal Lie..
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.