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

 summarizing a count(*) as a lable

Print topic Send  topic

Author Message
mfratto

Posts: 34
Posted: 08/28/2005, 6:31 PM

I can't find the answer to this question. I want to add a label to a page that displays the number of rows in a table. I can get the number with "SELECT count(*) FROM table", but I can't figure out how to get that into the lable. When I select label properties, I can't select connection properties.

Any ideas?

Thx.
View profile  Send private message
DonB
Posted: 08/28/2005, 8:05 PM

I would guess that you are using a Grid control as the 'table'. Therefore,
the thing to do is create the grid and specify the "Display total number of
records" option.

For an existing grid, just add a Label control and add the "Retrieve number
of records" action to it.

--
DonB

http://www.gotodon.com/ccbth


"mfratto" <mfratto@forum.codecharge> wrote in message
news:543126577ea8d0@news.codecharge.com...
> I can't find the answer to this question. I want to add a label to a page
that
> displays the number of rows in a table. I can get the number with "SELECT
> count(*) FROM table", but I can't figure out how to get that into the
lable.
> When I select label properties, I can't select connection properties.
>
> Any ideas?
>
> Thx.
> ---------------------------------------
> Sent from YesSoftware forum
> http://forums.codecharge.com/
>

mfratto

Posts: 34
Posted: 08/29/2005, 7:32 AM

doh! I musta been way to tired last night. I looked and looked at actions and just didn't see "Retreive number of records." Now that you pointed that out, it's there.

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