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 -> Tips & Solutions

 Enable LIMIT/TOP for Firebird 1.5 and up

Print topic Send  topic

Author Message
roeya


Posts: 181
Posted: 12/04/2008, 1:02 PM

Firebirds LIMIT syntax is as follows:

SELECT FIRST 20 SKIP 100 * FROM TABLE

it will select records 100 - 119 form a query

the default interbase support does not support this syntax so -
I changed Components/Databases/Interbase.xml

change line 22 from
topRecordsSyntax=""
to:
topRecordsClause=" FIRST {SqlParam_numRecords} SKIP {SqlParam_Offset}"
topRecordsSyntax="Limit"
topRecordsPlace="beforeFrom"

close CCS open it again
eanble the Top/Limit check box in the connection proerties and regenerate your project

Important for grids with Data source type = SQL you must manually add
FIRST {SqlParam_numRecords} SKIP {SqlParam_Offset} for the query or it will not work

_________________
http://www.infoneto.com/
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.