CodeCharge Studio
search Register Login  

Visual PHP Web Development

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

YesSoftware Forums -> Archive -> GotoCode Archive

 Lookup a value after displaying in a grid

Print topic Send  topic

Author Message
David M
Posted: 04/05/2003, 11:25 AM

I have page(s) that I have created that retrieve purchase order data from a database based on a query. It includes first and last name, purchase date etc. Associated with the returned results is an ID (called partner_id) of the person who has made the sale. So when the grid displays the records of sales, it just shows the ID (partner_id) number of the person who has made the sale. Every ID has a corresponding username, password, first name and last name, etc. What I want to do is when the purchase records diplay, instead of showing the ID (partner_id) of the person who has made the sale, I want to do some kind of lookup to take the partner ID and match it up to the user ID (which have the same the ID number but different fields for storing) to find that persons first and last name and then display first and last name instead of the ID. I'm using ASP and CCS 1.0.7
I really need to solve this problem asap.

Steven
Posted: 04/05/2003, 12:55 PM

if the peron who keys in the order is the person who makes the sale, why not save the user_id through use of the session UserID into the sale records, then later you can use a lookup from that user_id against the firstname , lastnae for any later uses?

Steven

   


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.