CodeCharge Studio
search Register Login  

Web Reporting

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

YesSoftware Forums -> Archive -> GotoCode Archive

 Recordset cursor

Print topic Send  topic

Author Message
Darren
Posted: 05/17/2002, 8:11 AM

Hi,

what type of recordset cursor does CCS assign? Is it the default forward-only? If so, is it possible to change that so I can access the RecordCount property. Also how do I access the recordset object for a particular grid?

Failing that, is there a way to get the entire SQL string that was used for the grid so I can re-execute a count on the query?

Thanks!

Darren.
Darren
Posted: 05/17/2002, 9:59 AM

Ok, on looking into this further by going through some of the code I can see that there are two key variables, either of which would really help me out if I could access them; they are RecordsCount (which holds the number of records in a grid - exactly what I want) and CountSQL which is SQL written specifically to return the RecordsCount information.

Is it possible to access either of these variables?

Thanks,

Darren.
Nicole
Posted: 05/20/2002, 2:14 AM

Darren,
from common file you'll see that cursor type is: adOpenForwardOnly

To access sql, where and order clauses and coun sql of particular grin in e.g. Before Show or Before Show row events using code like:
Dim DSource
Set DSource = New clsempsDataSource
response.write DSource.SQL & "<br>"
response.write DSource.countSQL & "<br>"
response.write DSource.Where & "<br>"
response.write DSource.Order & "<br>"


   


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

Internet Database

Visually create Web enabled database applications in minutes.
CodeCharge.com

Home   |    Search   |    Members   |    Register   |    Login


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