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 -> General/Other

 Goto page function on grid page

Print topic Send  topic

Author Message
jhpccs

Posts: 25
Posted: 01/07/2008, 10:46 PM

The grid navigators are flexable but ... I have a grid with over 10000 pages. The user want a easy way to goto page whatever say 532. Does anyone have suggestions for how to add a goto page function.
I know you can change the page in the url.
I tried to add a textbox and a button, and put custom code in the on click event of the button. The code I tried was Response.Redirect "prospect_list.asp?facdbPage=" & text1.value
It didn't work and of course if the user does a search it removes the parameters for the search.

There must be a way to do this and I'm not seeing it.
I'm using CCS 3.2

Any ideas?

Thanks,
View profile  Send private message
Edd


Posts: 547
Posted: 01/10/2008, 1:26 PM

The trick is to capture the whole query string and remove the page number so that it doesn't duplicate and add it back in again with the new value.

Something like this is ASP
  
Dim QStr  
QStr =Request.QueryString  
QStr=CCRemoveParam(QStr,  "facdbPage")  
QStr=CCAddParamParam(QStr,  "facdbPage",  text1.value)  
Response.Redirect "prospect_list.asp?" & QStr  


Cheers Edd
_________________
Accepting and instigating change are life's challenges.

http://www.syntech.com.au
View profile  Send private message
DonB
Posted: 01/12/2008, 5:16 AM

Create a small 'Search' form with a single textbox. Name the text box
'facdbPage.' When you submit the 'search', it will (instead of modiying the
data source of facdb) select the goto page.

--
DonB



"jhpccs" <jhpccs@forum.codecharge> wrote in message
news:247831c49d6fd5@news.codecharge.com...
> The grid navigators are flexable but ... I have a grid with over 10000
> pages.
> The user want a easy way to goto page whatever say 532. Does anyone have
> suggestions for how to add a goto page function.
> I know you can change the page in the url.
> I tried to add a textbox and a button, and put custom code in the on click
> event of the button. The code I tried was Response.Redirect
> "prospect_list.asp?facdbPage=" & text1.value
> It didn't work and of course if the user does a search it removes the
> parameters for the search.
>
> There must be a way to do this and I'm not seeing it.
> I'm using CCS 3.2
>
> Any ideas?
>
> Thanks,
>
> ---------------------------------------
> Sent from YesSoftware forum
> http://forums.codecharge.com/
>

jhpccs

Posts: 25
Posted: 01/18/2008, 10:58 PM

Thanks, Guys,
I had to put that project on the back burner, but I just got back to it.
I tried Don's idea and it works, but I have a search form on the page so adding this one does remove the parameters, but it does work as a goto page great!
Now I think i'll try to combine Don's solution with Ed's and use the before submit event and see it this works, to perserve the parameters.

Thanks for putting me on the right path.
I'll let you know how it works.
View profile  Send private message
DonB
Posted: 01/19/2008, 5:39 AM

Just select 'preserve parameters' as 'GET' or 'GET AND POST" on the 'goto
page' form.

--
DonB

http://ccswiki.gotodon.net


"jhpccs" <jhpccs@forum.codecharge> wrote in message
news:247919f9cbb00c@news.codecharge.com...
> Thanks, Guys,
> I had to put that project on the back burner, but I just got back to it.
> I tried Don's idea and it works, but I have a search form on the page so
> adding
> this one does remove the parameters, but it does work as a goto page
> great!
> Now I think i'll try to combine Don's solution with Ed's and use the
> before
> submit event and see it this works, to perserve the parameters.
>
> Thanks for putting me on the right path.
> I'll let you know how it works.
>
> ---------------------------------------
> Sent from YesSoftware forum
> http://forums.codecharge.com/
>

jhpccs

Posts: 25
Posted: 01/19/2008, 8:39 AM

Don,
Thanks, that works. Its such a simple solution. You sure know your ccs.:-)
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.

PHP Reports

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

Home   |    Search   |    Members   |    Register   |    Login


Powered by UltraApps Forum created with CodeCharge Studio
Copyright © 2003-2004 by UltraApps.com  and YesSoftware, Inc.