CodeCharge Studio
search Register Login  

Web Reports

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

YesSoftware Forums -> CodeCharge Studio -> PHP

 postgres error php

Print topic Send  topic

Author Message
folkerts
Posted: 02/17/2004, 7:35 AM

hi, i use the following sql for a grid form
select omschrijving,code,entypeid from en WHERE entypeid LIKE '%%' AND (code LIKE '%%' or code is null) and (omschrijving like '%%' and omschrijving like '%de%' ) group by omschrijving,code,entypeid
now the pagenavigator should determin de number of pages. this works with $formname->ds->CountSQL . this count sql based on the select sql. ($formname->ds->SQL) in the following way.
$formname->ds->CountSQL = "select count(*) from ($formname->ds->SQL) as cnt.

in my case this doesnt work. am i doing something wrong here? i guess i am but in postgres forums/docs i cnnt find sollutions for this problem
folkerts
Posted: 02/17/2004, 9:00 AM

I solved it :-) maybe handy for others
I put this in de after excecute select event of the form.
$fromname->ds->RecordsCount = pg_numrows($formname->ds->Query_ID);
it counts the number of the rows for the working sql.
why the sql made by codecharge doesnt work is still a question.

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.

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.