CodeCharge Studio
search Register Login  

Visual PHP Web Development

Visually Create Internationalized Web Applications, Web Reports, Calendars, and more.
CodeCharge.com

YesSoftware Forums -> CodeCharge Studio -> ASP

 Simple Report by Group Headers

Print topic Send  topic

Author Message
afrausto

Posts: 66
Posted: 09/11/2005, 11:09 PM

Hello,

I've been trying to get this Simple Report by Group Headers example to work but the header always displays. The example tells you to add the following code in the Before Show Row of the Grid. Although the logic is correct, the variable DepName is always reset to nothing for each row and the comparison always fails, hence the display of duplicate group headers.

Dim DepName
Function departments_BeforeShowRow()

If DepName = departments.department_name.Value Then
departments.department_name.Visible = False
Else
departments.department_name.Visible = True
DepName = departments.department_name.Value
End If

End Function

Here's the link to sample in the docs:
http://docs.codecharge.com/studio/html/index.html?http:...eaders.html?toc

I'm using CCS / ASP.

What am I missing here? Is there a working example I can take a look at ?

Thanks for your help.
View profile  Send private message
Edd


Posts: 547
Posted: 09/12/2005, 8:17 AM

Are you sure that the
Dim DepName
is outside the function?

The reason is that it needs to be a global variable.

If it is please show your HTML for the Row.

Edd
_________________
Accepting and instigating change are life's challenges.

http://www.syntech.com.au
View profile  Send private message
afrausto

Posts: 66
Posted: 09/12/2005, 9:01 AM

Edd,

After reviewing what you wrote and testing it again, it finally worked like it's suppose to. :-D

Thanks for the fresh eyes.
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.