CodeCharge Studio
search Register Login  

Visual PHP Web Development

Visually Create Internationalized Web Applications, Web Reports, Calendars, and more.
CodeCharge.com

YesSoftware Forums -> CodeCharge -> Programming

 Grid Builder Inquiry

Print topic Send  topic

Author Message
Graham Pearson
Posted: 06/01/2004, 11:56 AM

I have 2 Grid Builders on a page. I am wanting to only show data in
the second grid builder only when a URL Variable is being used. How
can this be done.



Example:

First Grid Builder shows all School Corporations in the State of
Indiana

Second Grid Builder will show all School Buildings associated with
the School Corporation if the URL.CorpNumber is passed to it,
otherwise it will not display anything.



Anyone?
--
Composed with Newz Crawler 1.7 http://www.newzcrawler.com/
Bruce Van Horn
Posted: 07/13/2004, 2:43 PM

You should be able to accomplish this by setting up the second grid to act like a search results grid. Depending on how capable you are with the tools, its pretty straightforward.

Set the first grid up with a link column. The link column should point back to the same page but send the parameter the second grid needs.

On the second grid set the SQL up so that it reads the incoming URL for parameters. If the param is there it'll show the results. Otherwise set the default value to something impossible and you'll get the 'no records' line in the grid.
tomasz

Posts: 11
Posted: 08/26/2004, 3:40 AM

in cc 2.0.7 you can hide grid form depending on any condition - also parameter in url
check School Corporations id, eg:

$is_param = get_param("your_param_in_url");

then put in grid (named e.g. school_bulildings) open event:

if (!$is_param) {  
  $tpl->set_var("Formschool_bulildings",""); } 

without your parameter in url, grid will be hidden
_________________
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
my windows is stable, becouse i reinstall it very often
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
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.