CodeCharge Studio
search Register Login  

Web Reporting

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

YesSoftware Forums -> Archive -> CodeCharge.Discussion

 Record number (index) of the row in Grid

Print topic Send  topic

Author Message
shidi
Posted: 02/14/2003, 6:09 AM

How can I place the record number (index) of the row in Grid page?

For example
---------------------------------------------------------
Index Item Price Unit Date
1 Oil $7.50 Per Barrel 07/07/2002
2 Beer $10.50 Per Barrel 07/08/2002

DonB
Posted: 02/23/2003, 7:16 PM

Set to zero a variable in the Before Show event of the grid. then in the
Before Row Show, increment this variable. Create a new column with an
unbound label control . Set the label to the variable value (also in the
Before Row Show event.

DonB


"shidi" <shidi@angkasa.coop> wrote in message
news:b2it9v$tm9$1@news.codecharge.com...
> How can I place the record number (index) of the row in Grid page?
>
> For example
> ---------------------------------------------------------
> Index Item Price Unit Date
> 1 Oil $7.50 Per Barrel 07/07/2002
> 2 Beer $10.50 Per Barrel 07/08/2002
>
>

Steve Wilson
Posted: 03/25/2003, 7:36 PM

Sounds cool. Unfortunately, I don't have a before row show event on the
grid. Is that just a ccstudio thing or am I not finding it.

Thanks

"DonB" <7432D63DBB01D03A196B1EDD80E8@comcast.net> wrote in message
news:b3c2pm$vbh$1@news.codecharge.com...
> Set to zero a variable in the Before Show event of the grid. then in the
> Before Row Show, increment this variable. Create a new column with an
> unbound label control . Set the label to the variable value (also in the
> Before Row Show event.
>
> DonB
>
>
> "shidi" <shidi@angkasa.coop> wrote in message
>news:b2it9v$tm9$1@news.codecharge.com...
> > How can I place the record number (index) of the row in Grid page?
> >
> > For example
> > ---------------------------------------------------------
> > Index Item Price Unit Date
> > 1 Oil $7.50 Per Barrel 07/07/2002
> > 2 Beer $10.50 Per Barrel 07/08/2002
> >
> >
>
>

DonB
Posted: 03/26/2003, 1:19 PM

Oops, sorry. I bounce back and forth between newsgroups and forgot where I
was - yes, CCS has the event I described.

DonB


"Steve Wilson" <mr_wilson@hotmail.com> wrote in message
news:b5r771$fr9$1@news.codecharge.com...
> Sounds cool. Unfortunately, I don't have a before row show event on the
> grid. Is that just a ccstudio thing or am I not finding it.
>
> Thanks
>
> "DonB" <7432D63DBB01D03A196B1EDD80E8@comcast.net> wrote in message
>news:b3c2pm$vbh$1@news.codecharge.com...
> > Set to zero a variable in the Before Show event of the grid. then in
the
> > Before Row Show, increment this variable. Create a new column with an
> > unbound label control . Set the label to the variable value (also in
the
> > Before Row Show event.
> >
> > DonB
> >
> >
> > "shidi" <shidi@angkasa.coop> wrote in message
> >news:b2it9v$tm9$1@news.codecharge.com...
> > > How can I place the record number (index) of the row in Grid page?
> > >
> > > For example
> > > ---------------------------------------------------------
> > > Index Item Price Unit Date
> > > 1 Oil $7.50 Per Barrel 07/07/2002
> > > 2 Beer $10.50 Per Barrel 07/08/2002
> > >
> > >
> >
> >
>
>

Stefan Hogedal
Posted: 04/06/2003, 12:13 PM

This could be done in the Show event i CC.
You don't even have to invent your own variable, just can use iCounter.
Create an unbound label, give it a smart name (instead of Fieldx), say Index
and then in On Show:

fldIndex = iCounter + 1

/Stefan

"Steve Wilson" <mr_wilson@hotmail.com> wrote in message
news:b5r771$fr9$1@news.codecharge.com...
> Sounds cool. Unfortunately, I don't have a before row show event on the
> grid. Is that just a ccstudio thing or am I not finding it.
>
> Thanks
>
> "DonB" <7432D63DBB01D03A196B1EDD80E8@comcast.net> wrote in message
>news:b3c2pm$vbh$1@news.codecharge.com...
> > Set to zero a variable in the Before Show event of the grid. then in
the
> > Before Row Show, increment this variable. Create a new column with an
> > unbound label control . Set the label to the variable value (also in
the
> > Before Row Show event.
> >
> > DonB
> >
> >
> > "shidi" <shidi@angkasa.coop> wrote in message
> >news:b2it9v$tm9$1@news.codecharge.com...
> > > How can I place the record number (index) of the row in Grid page?
> > >
> > > For example
> > > ---------------------------------------------------------
> > > Index Item Price Unit Date
> > > 1 Oil $7.50 Per Barrel 07/07/2002
> > > 2 Beer $10.50 Per Barrel 07/08/2002
> > >
> > >
> >
> >
>
>


   


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.