CodeCharge Studio
search Register Login  

Web Reports

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

YesSoftware Forums -> Archive -> GotoCode Archive

 Show records based on location

Print topic Send  topic

Author Message
Stuart S
Posted: 06/05/2003, 10:25 AM

I am using codecharge 2.05 asp and access.

I have a grid like this.

name - position - email - city - phone

The grid contains records from different cities that I have listed in a seperate table.

e.g.

Cities Table

1 dallas
2 houston
3 austin
4 san antonio

What I would like is after somebody completes registration they login to see this grid but they will only see records for their city.

Upon registration the city name is stored in members table but the grid city name is linked to cities table.

So if meber city is Houston show only records for Houston

Thanks for any help

rrodgers
Posted: 06/06/2003, 10:31 AM

You need to decide where you will get the city information about the logged in person from. Cookie, session, url etc. (I wouldn't use the url myself.)

Modify the login function to set a session or a cookie with the logged in user location.


Click on the grid. Click on the datasource. Go to the datasource properties. Add a line to the where list box that would only show the records that match the session or cookie value.

rob


   


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.