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

 [RESOLVED] Lookup Name in a Different Table from ID Number

Print topic Send  topic

Author Message
dodaniel

Posts: 43
Posted: 07/19/2016, 11:32 AM

I have a table called Badges that has a field for EmpID. When I'm entering an EmpID number in the table I would like for it to look up the EmpName based on the EmpID from a table called Employees and store the value into the.EmpName field in the Badges table.

I am using the trial version of CCS 5.1 with SQL server and ASP.

Thanks for any help you can provide me!
View profile  Send private message
eratech


Posts: 513
Posted: 07/19/2016, 10:08 PM

@dodaniel

Main question- is it an Autocomplete or Autofill (that is, you type the number and it does the lookup without sumbitting the form)
or you type the number and it gets the name after submitting (Updating/Inserting) the form?

I would suggest the Autofill is the best option as you can see the results. You would click on the EmpID field on the Badges form and click the Autofill builder which will ask for the source table and query, and which fields to update.

There is also an example project for Ajax options here:

http://examples.codecharge.com/Ajax/Default.php

and a bunch of other examples for download here:

http://examples.codecharge.com/

using CCS 5, you can open the project and change it to your preferred language (ASP) and view the examples, and copy/paste code as needed.

A word of advice with CodeCharge - most of the time there will be a built-in action or builder or function to make life easier for you. You rarely need to dig into the generated code and make changes. Changing the generated code is a Bad Idea as CCS will then not regenerate that portion of code (as it assumes you have changed it for a good reason)

Cheers

Eric
_________________
CCS 3/4/5 ASP Classic, VB.NET, PHP
Melbourne, Victoria, Australia
View profile  Send private message
dodaniel

Posts: 43
Posted: 07/21/2016, 1:46 PM

** RESOLVED **

The Autofill worked perfectly. Thank you so much!
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.