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

 CCDLookup select statement over two lines

Print topic Send  topic

Author Message
robn

Posts: 70
Posted: 07/10/2007, 2:29 AM

Hi

I'm sure this is something simple and straight forward to bu just can't work it out. I've used ccdlookup many times without issue, but I can't get this one to work.
The select statement is very long and therefore appears to exceed the maxium length of the row of code within CCS therefore I need to write the select
over 2 rows. But can't figure out a way to do it, I've tried &, " + at the end of the first row but can't seem to get it to carry on with the select statement onto the second row.

Basically I want to go from this (this is a cut down example)

If CCDLookUp("sum (cast (Sec2_1 as int)+ cast(Sec2_2 as int) ) as total","tblcareroles inner join dbo.tblUserRole on dbo.tblRoles.RoleID = tblUserRole.RID","UID=" & DBconnection1.ToSQL(session("userid"),ccsInteger), DBconnection1) = 0 Then    
tblSupervisionReport.Panel2.Visible = false    
End if

To something like this

If CCDLookUp("sum (cast (Sec2_1 as int)+"   
"cast(Sec2_2 as int) ) as total","tblroles inner join dbo.tblUserRole on dbo.tblRoles.RoleID = tblUserRole.RID","UID=" & DBconnection1.ToSQL(session("userid"),ccsInteger), DBconnection1) = 0 Then    
tblSupervisionReport.Panel2.Visible = false    
End if

Any help would be much appreciated

thanks in advance

RobN
View profile  Send private message
mrachow


Posts: 509
Posted: 07/10/2007, 2:49 AM

The string concatenation character is '&' and the line continuation character is '_' (underline)

So when parting your string you have to end these single lines by &_
_________________
Best regards,
Michael
View profile  Send private message
robn

Posts: 70
Posted: 07/10/2007, 3:10 AM

Michael

Many thanks that has work a treat!

I knew it was something simple

Thanks again form your help

RobN
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.

PHP Reports

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

Home   |    Search   |    Members   |    Register   |    Login


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