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

 Parameters

Print topic Send  topic

Author Message
tamara

Posts: 26
Posted: 10/04/2005, 4:28 AM

Is there a way to use the page number(from the navigation)on a grid as a link parameter to an editable grid that I am using as a maintenance page. It seems it should work, but I just can't seem to get it right.
View profile  Send private message
donb

Posts: 52
Posted: 10/04/2005, 5:28 AM

If the two grids are named the same, then it should be automatic. The paging is accomplished by a URL parameter made of the grid name concatenated with "Page" and its value is the current page number.

I assume your intent is to have the two grids have the same data source and where parameters, so 'page 2' of one show the same data as 'page 2' of the other one.
_________________
http://www.gotodon.com/ccbth
View profile  Send private message
tamara

Posts: 26
Posted: 10/04/2005, 8:08 AM

Yes...that is what I need to happen and I was thinking like you in the beginning...if I named the grids the same. The problem is the grid shows 10 records and the editable grid only shows 1 record. When I create the link on the C_ID on the grid page it always goes to the first record on the editable grid page and not the C_ID link I click.
View profile  Send private message
DonB
Posted: 10/04/2005, 8:14 AM

I think you ought to use a record control on the maintenance page - not an
Editable Grid.

--
DonB

http://www.gotodon.com/ccbth


"tamara" <tamara@forum.codecharge> wrote in message
news:643429ae4c3a92@news.codecharge.com...
> Yes...that is what I need to happen and I was thinking like you in the
> beginning...if I named the grids the same. The problem is the grid shows
10
> records and the editable grid only shows 1 record. When I create the link
on
> the C_ID on the grid page it always goes to the first record on the
editable
> grid page and not the C_ID link I click.
> ---------------------------------------
> Sent from YesSoftware forum
> http://forums.codecharge.com/
>

tamara

Posts: 26
Posted: 10/04/2005, 8:23 AM

Yes I know...but I have to give the boss what he wants! Thanks for your help!
View profile  Send private message
peterr


Posts: 5971
Posted: 10/04/2005, 11:31 AM

If the editable grid shows only 1 record then there is no difference from the record form. You should use the record form, while you can change the layout to anything you like. Make it look like an editable grid, so your boss will never know...
_________________
Peter R.
YesSoftware Forums Moderator
For product support please visit http://support.yessoftware.com
View profile  Send private message
tamara

Posts: 26
Posted: 10/04/2005, 11:39 AM

True...but he wants to be able to browse the records from that screen also. He actually prefers that screen, but wants the grid also.
View profile  Send private message
peterr


Posts: 5971
Posted: 10/04/2005, 11:47 AM

Well, your initial question was "Is there a way to use the page number(from the navigation)on a grid as a link parameter to an editable grid" and the answer given by Don is the right one.
If your two grids display different number of records then I don't understand how you want to use the page number from the 1st grid on another 2nd grid. What should the 2nd grid do with that page number from the 1st grid? If both grids display different number of records then the page number from 1st seems meaningless to the 2nd grid. Could you please explain how you want to use the page number from the 1st grid?
_________________
Peter R.
YesSoftware Forums Moderator
For product support please visit http://support.yessoftware.com
View profile  Send private message
tamara

Posts: 26
Posted: 10/04/2005, 12:25 PM

I agree with Don totally. They do have the same number of records. The problem is that the grid shows 10 records and the editable grid shows 1 record making the page numbers different. I am looking for another solution. Tks
View profile  Send private message
DonB
Posted: 10/04/2005, 1:09 PM

There really isn't one. The Ed Grid doesn't track a 'current' row, thus you
can't 'point' to a specific row on that page is displayed and make it the
current one. This is not due to anything lacking in CCS, it's simply the
way web pages operate.

It sounds to me like your only other option (and perhaps best one, anyway)
is to make the maintenance function entirely an Ed Grid. Do not get mired
down in switching from a Grid page to an Ed Grid page. Direct 'bosses' or
'admins' to the Ed Grid from the start.

--
DonB

http://www.gotodon.com/ccbth


"tamara" <tamara@forum.codecharge> wrote in message
news:64342d740f20db@news.codecharge.com...
> I agree with Don totally. They do have the same number of records. The
problem
> is that the grid shows 10 records and the editable grid shows 1 record
making
> the page numbers different. I am looking for another solution. Tks
> ---------------------------------------
> Sent from YesSoftware forum
> http://forums.codecharge.com/
>

peterr


Posts: 5971
Posted: 10/04/2005, 5:46 PM

tamara,
Maybe you know of an example of another Website or Web application that works the way you intend. It may help in visualizing the solution you are trying to create.
_________________
Peter R.
YesSoftware Forums Moderator
For product support please visit http://support.yessoftware.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.

Web Database

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.