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 -> PHP

 [ASK] Total Records not counting ???

Print topic Send  topic

Author Message
igan

Posts: 11
Posted: 05/16/2011, 11:27 PM

Hi All

I just set my data grid, tested by inserting few data in it..But the Total Records not counting is says only Total Records:

I did checked the total records count when setting the data grid..I just don't know where i missed so the total records not counting
View profile  Send private message
damian

Posts: 838
Posted: 05/16/2011, 11:49 PM

recreate the page or at least the grid and see if same behaviour occurs.
_________________
if you found this post useful take the time to help someone else.... :)
View profile  Send private message
igan

Posts: 11
Posted: 05/17/2011, 4:33 AM

well i edit total record properties and make data source table from my "member_id" integer field with auto incremented type.

It success showed and count all the total records that already added into the database including those that already deleted as well..But the counting is messy, so if the exist data are 10 but it will say the record it has 20 records so far. True i already added 20 data but i also deleted 10 data so it should say 10.

The counting records used MySQL auto incremented value :(

All i want just count the exist data not all data that has been added so far
View profile  Send private message
damian

Posts: 838
Posted: 05/17/2011, 6:50 AM

well.... thats not the way ccs will do it... ccs will do a count of the records returned by your grid parameters - if you let ccs build it that is.... if you modify it to do something different...
just try creating a new grid and compare the results.
_________________
if you found this post useful take the time to help someone else.... :)
View profile  Send private message
igan

Posts: 11
Posted: 05/17/2011, 7:38 AM

should i drop all my database table first and recreate new grid again ?or should I leave current database that already added ?
View profile  Send private message
damian

Posts: 838
Posted: 05/17/2011, 6:04 PM

no need to do anything to db. ccs is a rad tool - rapid application development - if the grid isnt behaving as you expect it literally takes 3 mins to recreate the grid and test. do it on a new page and that way you dont lose or change any of your existing project or data.
_________________
if you found this post useful take the time to help someone else.... :)
View profile  Send private message
igan

Posts: 11
Posted: 05/17/2011, 7:53 PM

no luck..i tried make new grid but still the same ...what did i missed?
View profile  Send private message
damian

Posts: 838
Posted: 05/17/2011, 8:46 PM

post a link to your page?
_________________
if you found this post useful take the time to help someone else.... :)
View profile  Send private message
igan

Posts: 11
Posted: 05/17/2011, 9:56 PM

here is the ccs file zipped along with my sql database exported to .SQL

http://stiegentiaras.byethost13.com/alumni3.zip

so it will easy for u to identify..Just import into your database, it's only one database with one table..i hope it wont bother u too much
View profile  Send private message
solesz

Posts: 137
Posted: 05/17/2011, 10:41 PM

Igan,

Usual error if you do not set up the record count control's type correctly to"text" or "integer" on the data tab. It could cause the problem you mentioned.

solesz
View profile  Send private message
igan

Posts: 11
Posted: 05/17/2011, 10:46 PM

i did change the data type to integer, memo, text and all the data type i tested already but still blank
View profile  Send private message
Waspman

Posts: 948
Posted: 05/18/2011, 1:00 AM

works ok for me...

http://waspmedia.co.uk/alumni/tes.php

There was a field validation issue, but I took that off, not sure what you were trying to do with that?
_________________
http://www.waspmedia.co.uk
View profile  Send private message
igan

Posts: 11
Posted: 05/18/2011, 2:03 AM

sorry fellas...for bothering you guys..Apparently something wrong with my software installation..I did clear re-installation and it works fine now. The table counted and showed the total records.

However the other problem is about the filter search..Where i used Listbox for showing the availability option and pointed to one of the tabel field. the problem is that the data shown in the listbox search filter is duplicate.

So for example one of the search filter has listbox :
table field > car_brand and so far recorded mercedes (2 record), BMW (1 record), honda (2 record)

then the filter search for Car Brand will display listbox of all car brand that in database..duplicate. I want just display per brand only and no need to be duplicate or showing all the records, How can I do that ?

I already set the data property of the listbox set the Unique option to YES, but still display duplicate
View profile  Send private message
Waspman

Posts: 948
Posted: 05/18/2011, 3:03 AM

group by the source of the listbox
_________________
http://www.waspmedia.co.uk
View profile  Send private message
igan

Posts: 11
Posted: 05/18/2011, 3:06 AM

Quote Waspman:
group by the source of the listbox

how can i do that ?is it in the listbox data properties ?
View profile  Send private message
Waspman

Posts: 948
Posted: 05/18/2011, 3:17 AM

yeah
_________________
http://www.waspmedia.co.uk
View profile  Send private message
igan

Posts: 11
Posted: 05/18/2011, 3:27 AM

but i don;t see group option in data properties...again sorry for bothering you..i am totally new with this stuff
View profile  Send private message
igan

Posts: 11
Posted: 05/18/2011, 4:51 AM

o i got it. I already found how to group it,,,just pop up the Data Source and right click to add group and choose the table field..

Thanks mate
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.

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.